Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure react native android jscodelocation #2727

Closed
Matthew-C opened this issue Sep 15, 2015 · 2 comments
Closed

Configure react native android jscodelocation #2727

Matthew-C opened this issue Sep 15, 2015 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Matthew-C
Copy link

How am I suppose to configure jscodelocation for react native android in real product? Is it doable?

@ide
Copy link
Contributor

ide commented Sep 15, 2015

During development you can set a key in SharedPreferences called "debug_http_host" to configure the host of the packager server.

SharedPreferences preferences =
   PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
preferences.edit().putString("debug_http_host", "localhost").apply();

Currently you can curl/wget your JS from the packager, include it with your APK, and tell the ReactInstanceManager to load the JS from an asset (see setBundleAssetName). That is the extent to which you can customize things for now. See #2703 (comment) for specifics.

@ide ide closed this as completed Sep 15, 2015
@Matthew-C
Copy link
Author

Thanks, will try.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants