![]() ![]() This tells gradle to actually bundle the JS code and assets and package those files into the APK instead of serving them up from the dev server. Look for the map (should be right after the commented out block) in your gradle configuration file and add the bundleInDebug: true entry to the map: = [ The one that is interesting to us is bundleInDebug: true. ![]() In your app/adle file you should see a large commented out block that explains which settings you can set in the map inside your gradle file: There are two ways of accomplishing this: bundleInDebug If however, you find yourself in need of a debug APK which can run without the development server, you can manually package the debug bundle along with the generated APK. By default React Native debug builds require the development server to run, as the server is responsible for providing the JS bundle and the assets in debug mode.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |