Skip to content

Tag: react-native

How to Map objects inside an array – Javascript

This is for a React Native Chat app. My data should be something like this: I am listing the Chat list using a FlatList: The messages shows like this all stacked up and I am not what is the workaround. What I am trying to achieve is displaying the last message based on timestamp. Answer To get the last messag…

Expo listen for browser dismiss

In my expo react native app, the user is directed to a URL in a WebBrowser. I would like to be able to listen for when the user closes/ dismisses the WebBrowser and then execute a function. Is this possible? Answer I solved this by using an authentication session (openAuthSessionAsync) instead of a standard w…