react-native-snackbar icon indicating copy to clipboard operation
react-native-snackbar copied to clipboard

[Test] Cannot read property 'LENGTH_LONG' of undefined

Open vijaemanlapaz opened this issue 3 years ago • 7 comments

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

vijaemanlapaz avatar Feb 18 '22 00:02 vijaemanlapaz

how to resolve this ? any one able to find the solution ?

viral-synoverge avatar Mar 08 '22 07:03 viral-synoverge

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)).

joseananio avatar Mar 18 '22 21:03 joseananio

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.

atul898 avatar Mar 24 '22 21:03 atul898

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

GewoonJaap avatar Jun 11 '22 09:06 GewoonJaap

I was getting this issue, uninstalling app, closing metro server and running app again worked for me.

ZeeshanAhmadKhalil avatar Sep 18 '22 10:09 ZeeshanAhmadKhalil

Any working solution or fixes on this issue?

aravi365 avatar Nov 16 '23 07:11 aravi365