Skip to content

Commit 591f0d8

Browse files
committed
fix: global.__reanimatedWorkletInit is not a function
fix #159, fix #182
1 parent f88ab6a commit 591f0d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
if (!('__reanimatedWorkletInit' in global)) {
2+
Object.assign(global, { __reanimatedWorkletInit: () => {} });
3+
}
4+
15
export type { TCarouselProps, ICarouselInstance } from './types';
26
import Carousel from './Carousel';
37

0 commit comments

Comments
 (0)