react-native icon indicating copy to clipboard operation
react-native copied to clipboard

How to reuse ReactInstanceManager

Open Ray-Ni opened this issue 10 years ago • 2 comments

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 ?

Ray-Ni avatar Jul 12 '16 09:07 Ray-Ni

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

ide avatar Jul 12 '16 19:07 ide

#15108

KingAlen avatar Apr 19 '18 08:04 KingAlen