Connect your Expo and React Native applications using mobile AsyncStorage adapters.
Run npx create-kroxt-app and select **React Native (Expo)**.
npx expo install @react-native-async-storage/async-storageConfigure AsyncStorage to allow the SDK to persist session state securely on the device:
import { Kroxt } from "@kroxt/baas-sdk";
import AsyncStorage from "@react-native-async-storage/async-storage";
import { KROXT_PROJECT_ID, KROXT_API_KEY } from "./config";
export const baas = new Kroxt({
projectId: KROXT_PROJECT_ID,
apiKey: KROXT_API_KEY,
storage: AsyncStorage,
});
export default baas;