UNPKG

react-native-worklets

Version:
17 lines 862 B
/** * Currently there seems to be a bug in the JSI layer which causes a crash when * we try to copy some of the console methods, i.e. `clear` or `dirxml`. * * The crash happens only in React Native 0.75. It's not reproducible in neither * 0.76 nor 0.74. It also happens only in the configuration of a debug app and * production bundle. * * I haven't yet discovered what exactly causes the crash. It's tied to the * console methods sometimes being `HostFunction`s. Therefore, as a workaround * we don't copy the methods as they are in the original console object, we copy * JavaScript wrappers instead. */ export declare function getMemorySafeCapturableConsole(): typeof console; export declare function setupConsole(boundCapturableConsole: typeof console): void; export declare function init(): void; //# sourceMappingURL=initializers.native.d.ts.map