Creating the Store
Learn how to set up MobX store and integrate it with React Native App.
We will start with setting up a store; this will be the source of truth for the app. But before adding and removing images, there’s one more step we need to take. We need to hook up the store!
Creating an empty store
Let’s go to our store.js
file and tell it to use the User
and LikedImages
models. We’ll start by importing all the necessary files and creating an empty store:
Get hands-on with 1200+ tech skills courses.