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 use wrapBy #2113

Closed
rollymaduk opened this issue Jul 25, 2017 · 8 comments
Closed

How to use wrapBy #2113

rollymaduk opened this issue Jul 25, 2017 · 8 comments

Comments

@rollymaduk
Copy link

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

@keith527
Copy link

I have the same problem.

@aksonov
Copy link
Owner

aksonov commented Jul 26, 2017

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.

@rollymaduk
Copy link
Author

rollymaduk commented Jul 26, 2017 via email

@aksonov aksonov closed this as completed Jul 30, 2017
@scriptfans
Copy link

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

@mvanroon
Copy link
Contributor

mvanroon commented Oct 6, 2017

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.

@avishayil
Copy link

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.

@dustturtle
Copy link

@aksonov need demostrate about this feature

@fkanout
Copy link

fkanout commented Feb 10, 2019

Any updates on this ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants