Closed rincethomas closed 5 years ago
Are you using expo?
No
Couldn't replicate this. I just created a new project and it worked as normal.
react-native init Test
cd Test
npm install react-native-search-bar && react-native link react-native-search-bar
react-native run-ios
Works as expected.
I've just encountered this issue too. My package file deps look like this, incase there are any similarities:
"axios": "^0.18.0",
"react": "16.4.1",
"react-native": "0.56.0",
"react-native-i18n": "^2.0.15",
"react-native-keyboard-aware-scroll-view": "^0.6.0",
"react-native-maps": "^0.22.0",
"react-native-navigation": "^2.0.2631",
"react-native-picker-select": "^4.2.0",
"react-native-safe-area-view": "^0.11.0",
"react-native-search-bar": "^3.4.2"
As said above, it's usually an issue with linking the library. Try going through the manual steps to setup, and of course restarting your package and running react-native run-ios
I had to add the following to the Podfile
for it to work:
pod 'ReactNativeSearchBar', :path => '../node_modules/react-native-search-bar'
Type Error Undefined is not an object. react native. RNSearchBarManager.ComponentHeight