lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 497 forks source link

Jest error when using react-native-picker-select #438

Open sandberg75 opened 3 years ago

sandberg75 commented 3 years ago

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.

lfkwtz commented 3 years ago

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