react-native-mobx
react-native-mobx copied to clipboard
I don't understand the goal of this package
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?
Okey, the goal is just wrap used components with 'observer'. So used component will not know anything about 'mobx'.
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.