Posts

Showing posts from November, 2021

counter_with_redux

 app.js import React from 'react' ; import {} from 'react-native' ; import ScreenA from './ScreenA/index' ; import { Provider } from 'react-redux' ; import { store , persistor } from './redux/Store' ; // import { PersistGate } from 'redux-persist/integration/react'; import { PersistGate } from 'redux-persist/lib/integration/react' ; const App = () => {   return (     < Provider store = { store } >       < PersistGate persistor = { persistor } loading = {null} >       < ScreenA />       </ PersistGate >       </ Provider >   ); }; export default App ; ******************************************************************** ******************************************************************* ScreenA index.js import React , { useState } from 'react' ; import { View , Text , Pressable , TextInput } from 'react-native' ; import styles from './styles'

Redux Authentication Flow

 App.js import React , { useState , useEffect } from 'react' ; import { } from 'react-native' ; import { Provider } from 'react-redux' ; import { PersistGate } from 'redux-persist/lib/integration/react' ; import { persistor , store } from './redux/Store' ; // import Screen1 from './Components/Screen1'; // import AsyncStorage from '@react-native-async-storage/async-storage'; // import Screen2 from './Components/screen2' // import Index1 from './Components/Screen2'; // import Screen5 from './Components/Screen5'; import { NavigationContainer } from '@react-navigation/native' ; import { createStackNavigator } from '@react-navigation/stack' ; // import {createSharedElementStackNavigator} from 'react-navigation-shared-element'; // import {createSharedElementStackNavigator} from import 'react-native-gesture-handler' ; import {   increment ,   decrement ,   incr