I have two different ReactNative-Projects: a) a project from januar 2016 b) a complete new react-native project from now (march 20th 2016) Within the new project the cli tool of react-native contains the command "run-ios" next two "run-android", but not on the older project from januar 2016. On the older one there is not "run-ios" command available: $ react-native run-ios Command `run-ios` unrecognized Usage: react-native <command> I already ran "react-native upgrade" without any issues. How can i get the command "run-ios" also in older projects?
Just update the version of react native in your project with the following command: $> npm install --save react-native@latest
What caused this for me was running npm install --save [package] when actually the system has previously been using yarn instead of npm . To solve this I just deleted the node_modules folder and ran: yarn install and afte...
I'm about to develop offline dictionary app with React Native. But I'm not sure which storage is the best in React Native between SQLite & AsyncStorage . As I read some online documentation and tutorials, when I use SQLite I must need to configure SQLite library in each app iOS and android . And when I look through AsyncStorage not sure it can be handle or not million records inside it. That's why I like to know which one should I use between SQLite & AsyncStorage or some cool library out there for React Native?
For that case, I recommend using Realm. It is simply much faster than AsyncStorage and SQLite. Read this and this for more info. AsyncStorage has slow runtime and has no indexing capabilities. It accepts only strings as its value and you need to serialize data before inserting and deserialize when reading. So it's not good for large amount of data. It also has 6MB limitation for Android devices.
After upgrading to React Native 0.57 i am facing an issue when genrating APK in react-native-router-flux.when executing the .\gradlew assembleRelease i get below error :- FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeReleaseResources'. > [drawable-mdpi-v4/node_modules_reactnativerouterflux_images_back_chevron] R:\Workings\lisecapps\androidrepo\test-react- native\venutest\android\app\src\main\res\drawable- mdpi\node_modules_reactnativerouterflux_images_back_chevron.png [drawable-mdpi-v4/node_modules_reactnativerouterflux_images_back_chevron] R:\Workings\lisecapps\androidrepo\test-react- emirnative\venutest\android\app\build\generated\res\react\release\drawable- mdpi-v4\node_modules_reactnativerouterflux_images_back_chevron.png: Error: Duplicate resources [drawable-mdpi-v4/node_modules_reactnativerouterflux_images_menu_burger] R:\Workings\lisecapps\androidrepo\test-react-nat ive\venutest\android\app\src\...
Comments
Post a Comment