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

I don't understand the goal of this package

Open benjaminb10 opened this issue 8 years ago • 2 comments

Sorry for opening an issue for that. But I don't understand the goal of this package and what does it allow more than just using mobx and react-native-router-flux (RNRF)? Is there any complication to use normally mobx with RNRF?

benjaminb10 avatar Dec 21 '16 18:12 benjaminb10

Okey, the goal is just wrap used components with 'observer'. So used component will not know anything about 'mobx'.

aksonov avatar Feb 20 '17 11:02 aksonov

I asked myself the same question and skimmed the only javascript file in this package. If I am not mistaken, up to now, it does exactly 2 things: 1. it adds listeners to action enter event, which simply logs out some notification; 2. wraps navBar property with observer and adds new property of wrapBy to original Router passing the observer. If you are not interested in debugging action changes, you can simply add wrapBy with observer to your Router and wrap navBar with observer if necessary and not bother with it.

iamawebgeek avatar May 16 '17 12:05 iamawebgeek