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

How to build React Native Expo app using env variables from eas secret?

I have a .env file: REACT_APP_URL={value} REACT_APP_API_URL={value} REACT_APP_VEHICLE_IMAGE_URL={value} REACT_APP_NAME={value} REACT_APP_GA_TRACKING_ID={value} REACT_APP_WEBSITE_URL={value} That is my current file of eas.json: { "cli": { "version": ">= 10.0.2" }, "build": { "development": { "developmentClient": true, "distribution": "internal", "ios": { "simulator": true } }, "preview":…

VIEW QUESTION
Back To Top
Search