Skip to content

A simple tutorial repository demonstrating how to integrate MobX state management with persistent storage in a React Native app.

Notifications You must be signed in to change notification settings

vinivitin/react-native-mobx-persist

Repository files navigation

react-native-mobx-persist

Install mobx

yarn add mobx mobx-react mobx-persist

Add decorators support

yarn add --save-dev @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators

Configure babel.config.js

module.exports = function (api) {
  api.cache(true);
  return {
    ...
    plugins: [
      ["@babel/plugin-proposal-decorators", { legacy: true }],
      ["@babel/plugin-proposal-class-properties", { loose: false }],
    ],
  };
};

🚀🚀🚀

Additional info

About

A simple tutorial repository demonstrating how to integrate MobX state management with persistent storage in a React Native app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published