UNPKG

681 BPlain TextView Raw
1'use strict';
2/* eslint-disable no-var */
3export {};
4
5declare global {
6 /**
7 * This global variable is a diagnostic/development tool.
8 *
9 * It is `true` on the UI thread and `false` on the JS thread.
10 *
11 * It used to be necessary in the past for some of the
12 * functionalities of react-native-reanimated to work
13 * properly but it's no longer the case. Your code
14 * shouldn't depend on it, we keep it here
15 * mainly for backward compatibility for our users.
16 */
17 var _WORKLET: boolean | undefined;
18
19 /**
20 * This ArrayBuffer contains the memory address of `jsi::Runtime`
21 * which is the Reanimated UI runtime.
22 */
23 var _WORKLET_RUNTIME: ArrayBuffer;
24}