skip to Main Content

Is Expo supports react-native-encrypted-storage? or How to store sensitive data (like token) in react native that built with expo?

ERROR Error: RNEncryptedStorage is undefined, js engine: hermes at ContextNavigator (http://192.168.0.105:8081/node_modules%5Cexpo-router%5Centry.bundle//&platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app:148715:24) .... ... .. . It gives an error when I try to execute this: const token = await EncryptedStorage.getItem("user-token"); await EncryptedStorage.removeItem("user-token");

VIEW QUESTION

React native – How to set different indicator colors for active and inactive tabs in Material Top Tabs Navigator 6.x of react-navigation/native?

I'm using Material Top Tabs Navigator from React Navigation. Here's an example: import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs'; const Tab = createMaterialTopTabNavigator(); function MyTabs() { return ( <Tab.Navigator> <Tab.Screen name="Chat" component={ChatScreen} /> <Tab.Screen name="Contacts" component={ContactsScreen} /> <Tab.Screen name="Albums" component={AlbumsScreen} />…

VIEW QUESTION
Back To Top
Search