Skip to content

v1.4.0 - React Native toolkit and Expo Basic example both complete

Latest

Choose a tag to compare

@batsonjay batsonjay released this 08 Jun 20:53
· 2 commits to main since this release

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:

  • useRelayaAuth rewritten to the AT/RT (access/refresh token) model. Handles OTP sign-in, token refresh, and sign-out. Stores tokens in AsyncStorage via an injected adapter so consumers control the storage implementation.
  • useRelayaChat updated 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 useRelayaAuth caused by an unstabilised callback reference inside a useEffect dependency array.
  • JWT decode path and tsconfig corrections in the Expo Basic example.
  • New Architecture (newArchEnabled: true) enabled in Expo Basic app.json to 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.