Posts

Showing posts with the label static-linking

React Native Linking Library

I wanted to use the Native IOS search bar from https://github.com/umhan35/react-native-search-bar and when I run npm install --save (http://facebook.github.io/react-native/docs/linking-libraries-ios.html) I get error bash: library-with-native-dependencies: No such file or directory. I tried to link the library manually but it fails without showing any error. Can some one help? I hope you did not type npm install <library-with-native-dependencies> --save -bash: library-with-native-dependencies: No such file or directory In case you did, it should have been npm install react-native-search-bar --save If you managed to link it manually and run it, try setting a width and height for the SearchBar ......... render(){ return (<SearchBar style={styles.searchBar} ref='searchBar' placeholder='Search'/>); } ......... const styles = StyleSheet.create({ searchBar:{ width: 200, height: 40 } }); Check whether module pres...