react-native bundle?
See original GitHub issueI’m trying to create a complete build to generate .ipa
/ .apk
files.
The README specifies that tsc
will not actually generate a build. I believe this is probably because of the noEmit
rule in tsconfig.json
.
I’m trying to use --transformer
as well which appears to be an undocumented flag for build
, but then I get this output:
Unable to resolve module `./src/App` from `/Users/acrites/projects/personal/rnts3/index.js`: The module `./src/App` could not be found from `/Users/acrites/projects/personal/rnts3/index.js`. Indeed, none of these files exist:
* `/Users/acrites/projects/personal/rnts3/src/App(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
* `/Users/acrites/projects/personal/rnts3/src/App/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
--sourceExts
is not a flag for build
.
Is there any way to generate a bundle with a react-native TypeScript project using this transformer? If so, should this be documented in the README?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
RAM Bundles and Inline Requires - React Native
We can optimize the loading of the bundle by using the RAM format and requiring those features and screens inline (when they are...
Read more >What is React Native's bundle, and its purpose? - Stack Overflow
The bundle is indeed 'the javascript'. In development the bundle likely will come from your react-native start development server. That way if your...
Read more >Bundling | React Native Developer Tools
When you're done here, you'll be able to bundle and ship your apps with Metro, the React Native bundler. The tools you'll use...
Read more >Bundling React Native during Android release builds
These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets ...
Read more >Bundling React Native during Android release builds
Older versions of React Native's docs (0.19) recommended running the bundling command manually before building your app if you don't have a react.gradle...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I added a note about the
--config
option to the readme, so will close this issue for now. Please feel free to open it again if you’re still having troubles.@ds300 Yep, the
--config
option did the trick. Thanks!