0.0.2 • Published 6 years ago
aria-fritta-native-plugins-mobx v0.0.2
aria-fritta-native-plugins-mobx
install
Structure the store
- copy examples folder into plugins folder in aria-fritta-native
- add the following code into plugin/index.js in aria-fritta-nativeEvent
import mobx from "aria-fritta-native-plugins-mobx";
import LanguageMobx from "./examples/lang";
import UserMobx from "./examples/user";
mobx.props = {
objects: [
{
id: "lang",
store: new LanguageMobx(),
callback: (wrapperSelf, lang) => {}
},
{
id: "user",
store: new UserMobx(),
callback: (wrapperSelf, user) => {}
}
]
};
- add into export object: mobx
for example:
export { mobx, ... };
- add into export default object: mobx
for example:
export default Object.values({
mobx,
...
});