React-native-router-flux: How to use wrapBy

Created on 25 Jul 2017  Â·  8Comments  Â·  Source: aksonov/react-native-router-flux


Thanks a lot for the great library, Its very helpful :), please how is wrapBy used with a store manager like mobx or redux. Thanks.

Most helpful comment

@aksonov need demostrate about this feature

All 8 comments

I have the same problem.

Just pass wrapBy={observer} for MobX. Not sure how to apply it to Redux, because Redux wrapper is different (connect(...)) for each component, so you have to wrap it within the component.

Thanks a lot, I appreciate your help, cheers. :)

On Wed, Jul 26, 2017 at 6:34 AM, Pavel Aksonov notifications@github.com
wrote:

Just pass wrapBy={observer} for MobX. Not sure how to apply it to Redux,
because Redux wrapper is different (connect(...)) for each component, so
you have to wrap it within the component.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aksonov/react-native-router-flux/issues/2113#issuecomment-317952514,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACpHG_lzHEgpxoun-T3MtNt4hoPcjf3-ks5sRs_pgaJpZM4Oi--c
.

--

RegardsRonald Maduka

@aksonov Can you explain how to combo RNRF v4 with Mobx? I want to use it, but don't known how to start :(

I'm confused as to how to use redux with RNRF4 as well. Anyone who managed to get this to work?

Just pass wrapBy={observer} for MobX. Not sure how to apply it to Redux, because Redux wrapper is different (connect(...)) for each component, so you have to wrap it within the component.

Wrap what in which component? Is there any other way to call a function when exiting or entering any scene? So like a global onEnter/onLeave.

I dont get this either, if I use wrapBy in the Router component, the store will be automatically binded to this.props inside the scene?
Because if this is the intended behavior it's not working.

@aksonov need demostrate about this feature

Any updates on this ???

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sreejithr picture sreejithr  Â·  3Comments

rafaelcorreiapoli picture rafaelcorreiapoli  Â·  3Comments

llgoer picture llgoer  Â·  3Comments

moaxaca picture moaxaca  Â·  3Comments

VictorK1902 picture VictorK1902  Â·  3Comments