在 React Native 中使用 Expo SecureStore
Using Expo SecureStore in React Native
我用 React Native CLI 创建了一个应用程序。
现在,我想存储敏感数据,SecureStore 提供了一个 API 来保护手机上的数据。
正如我提到的,该应用程序是使用 React Native CLI 创建的。我是否必须进行额外的配置才能在应用程序上使用 SecureStore,或者只是 npm i expo-secure-store
它会起作用。
如果我要使用 EXPO,则不需要额外的配置。
AFAK 如果您使用的是 none expo 项目,则必须先安装 unimodules。
我用 React Native CLI 创建了一个应用程序。 现在,我想存储敏感数据,SecureStore 提供了一个 API 来保护手机上的数据。
正如我提到的,该应用程序是使用 React Native CLI 创建的。我是否必须进行额外的配置才能在应用程序上使用 SecureStore,或者只是 npm i expo-secure-store
它会起作用。
如果我要使用 EXPO,则不需要额外的配置。
AFAK 如果您使用的是 none expo 项目,则必须先安装 unimodules。