|
|
|
|
18
|
|
18
|
|
19
|
## Sharing a store between multiple screens
|
19
|
## Sharing a store between multiple screens
|
20
|
|
20
|
|
21
|
-In the example bellow we will be creating a small Counter app. We will learn how to integrate Mobx with React-Native-Navigation and demonstrate how updating the store from one component, triggers renders in other components connected to the same store.
|
|
|
|
|
21
|
+In the example below we will be creating a small Counter app. We will learn how to integrate Mobx with React-Native-Navigation and demonstrate how updating the store from one component, triggers renders in other components connected to the same store.
|
22
|
|
22
|
|
23
|
Once you finish implementing the example, your screen should look similar to this:
|
23
|
Once you finish implementing the example, your screen should look similar to this:
|
24
|
<img width="30%" src={useBaseUrl('/img/mobx_counter.png')} />
|
24
|
<img width="30%" src={useBaseUrl('/img/mobx_counter.png')} />
|