v1.4.0 - React Native toolkit and Expo Basic example both complete
What's New
@relaya-chat/react-native is now production-ready with a complete auth model:
useRelayaAuthrewritten to the AT/RT (access/refresh token) model. Handles OTP sign-in, token refresh, and sign-out. Stores tokens inAsyncStoragevia an injected adapter so consumers control the storage implementation.useRelayaChatupdated to AT/RT model — WebSocket connections attach a fresh access token on each connect attempt; auth failures close the socket cleanly for a re-auth cycle.- Expo Basic example app (
packages/react-native/examples/expo-basic): a runnable demo with sign-in, message list, message composer, and presence bar.
Fixed
- Re-render loop in
useRelayaAuthcaused by an unstabilised callback reference inside auseEffectdependency array. - JWT decode path and
tsconfigcorrections in the Expo Basic example. - New Architecture (
newArchEnabled: true) enabled in Expo Basicapp.jsonto suppress Expo Go warnings.
Documentation
- Server minimum-version requirements added to all three package READMEs.
- React Native package README rewritten to reflect the AT/RT auth model.