Update building apk
Here are the changes, I made to Errors,Fix and Help.md file and why they were made:
- Added fix for error: "Strict mode does not allow function declarations in a lexically nested statement" in debug APK
- Shift
react-native bundle
command above because it overwrites thecurl
while bundling into index.android.bundle (This was the reason for the above error). - Previously, the build method created a debug APK, which worked since the last command
react-native run-android
starts the npm server itself. Thus the APK may worked. Shifting./gradlew assembleDebug
worked way better.
Edited by Shubhkirti Sharma