react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

Jest error when using react-native-picker-select

Open sandberg75 opened this issue 3 years ago • 1 comments

Hi, I have just started to try to write some tests using Jest, but my tests complains, ` ● Test suite failed to run

TypeError: (0 , _reactNative.requireNativeComponent) is not a function

  at Object.<anonymous> (node_modules/react-native-picker-select/node_modules/@react-native-community/picker/js/RNCPickerNativeComponent.js:45:20)
  at Object.<anonymous> (node_modules/react-native-picker-select/node_modules/@react-native-community/picker/js/PickerIOS.ios.js:18:1)

` Any idea how I can resolve this? I have tried to mock it but without success.

sandberg75 avatar May 06 '21 08:05 sandberg75

@sandberg75 this issue was automatically closed because it did not follow one of the available issue templates. See here for available options.

lfkwtz avatar May 06 '21 08:05 lfkwtz