react-native-snackbar
react-native-snackbar copied to clipboard
[Test] Cannot read property 'LENGTH_LONG' of undefined
I'm getting error Cannot read property 'LENGTH_LONG' of undefined when i do yarn test
i'm using version 2.4.0
Environment react-native: 0.65.2 => 0.65.2
Steps i did so far
- yarn clean
- yarn install
- npx react-native link react-native-snackbar
how to resolve this ? any one able to find the solution ?
see this issue: https://github.com/cooperka/react-native-snackbar/issues/43. its on regular usage but you might find something
Also ensure your pods are installed (RNSnackbar (2.4.0))
.
I am getting a similar message - "Cannot read properties of undefined (reading 'LENGTH_LONG')" Functionality is all good, this issue is specific to when running tests We are on React Native "0.67.2", using "2.4.0" of react-native-snackbar Already went through issue #43 and tried everything.
I am getting a similar message - "Cannot read properties of undefined (reading 'LENGTH_LONG')" Functionality is all good, this issue is specific to when running tests We are on React Native "0.67.2", using "2.4.0" of react-native-snackbar Already went through issue #43 and tried everything.
Same issue here, works fine when using the app, however once I run Jest it will fail. Already added the package to Jest transformIgnorePatterns
, without result
I was getting this issue, uninstalling app, closing metro server and running app again worked for me.
Any working solution or fixes on this issue?