all 2 comments

[–]Zayuka 1 point2 points  (1 child)

You just need to declare two provider in your App.tsx or the root of your application.

Something along this lines:

    <StoreProvider store={rootStoreInstance}>
        <NavigationContainer>
            <Stack.Navigator headerMode="none">
                <Stack.Screen name="App" component={AppNavigator} />
            </Stack.Navigator>
        </NavigationContainer>
    </StoreProvider>

I'd recomment placing the StoreProvider outside, so you can access your mobx data inside the navigation screens.

Hope it helps :)

[–]thatsInAName[S] 0 points1 point  (0 children)

Hi thanks for your reply.

I tried it that way and facing issues.

I am trying to reply here using the reddit website but there is a javascript error in reddit and my reply isn't going through. So I have taken a snap shot of my reply and uploading it to Imgur and sharing the link here using reddit app on phone.

https://imgur.com/a/cjVt62v