Hello,
I’ve run into a strange issue while trying to use react-native-reanimated
in my Expo app. Everything seems to work fine with the reanimated hooks but when I try and use any ‘math’ functions it runs out of memory.
To reproduce, spin up a new expo app, add reanimated and in App.tsx
add:
import { add } from 'react-native-reanimated'
console.log('add', add(1, 2))
This causes the app to consume 7gb+ of memory and then crash… Sometimes it gives me an error saying it ran out of memory for the console.log
, but most of the time it just gives up. The same does not happen in a standard react-native
app, where it works fine.
- SDK Version: 42
- Platforms(Android/iOS/web/all): iOS (only one tested)
Cheers!