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

How to reuse ReactInstanceManager #8710

Closed
Ray-Ni opened this issue Jul 12, 2016 · 2 comments
Closed

How to reuse ReactInstanceManager #8710

Ray-Ni opened this issue Jul 12, 2016 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Ray-Ni
Copy link

Ray-Ni commented Jul 12, 2016

As the document has said:

A ReactInstanceManager can be shared amongst multiple activities and/or fragments. You will want to make your own ReactFragment or ReactActivity and have a singleton holder that holds a ReactInstanceManager. When you need the ReactInstanceManager (e.g., to hook up the ReactInstanceManager to the lifecycle of those Activities or Fragments) use the one provided by the singleton.

ReactInstanceManager can be reuse in diffrent activity or fragment.
But it seems one ReactInstanceManager can only load one js bundle.

So how can I reuse ReactInstanceManager to load another js bundle ?

@ide
Copy link
Contributor

ide commented Jul 12, 2016

ReactInstanceManager can use only one bundle. The document is just saying that you can share that bundle across several activities if you want.

@ide ide closed this as completed Jul 12, 2016
@KingAlen
Copy link

#15108

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 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

4 participants