xmtp / xmtp-react-native

A package you can use to build with XMTP in a React Native or Expo app.
MIT License
41 stars 19 forks source link

preCreateIdentityCallback and preEnableIdentityCallback #109

Closed nplasterer closed 10 months ago

nplasterer commented 1 year ago

Add preCreateIdentityCallback and preEnableIdentityCallback that we use during the onboarding from the JS SDK

Will likely need updates to iOS and Android.

nmalzieu commented 1 year ago

@nplasterer Adding this here since to us it's linked to the onboarding! Right now the RN SDK the canMessage method is only available on the client instance i.e. after having connected. But during onboarding we check if the current wallet is on XMTP to change the UX, so would be nice to have canMessage accessible directly on the Client class (with parameter for the network)