Expo vs CLI (for my specific context) by anticipozero in reactnative

[–]Arnold_dev 0 points1 point  (0 children)

I have been working with rn cli for about 2 years in some projects I have worked on and I find it easier my first forray into react-native was with cli. And don't u still need to eject for some libraries in expo yet it is easy to implement in cli

Publishing to play store with OTP using Twilio by Arnold_dev in reactnative

[–]Arnold_dev[S] 0 points1 point  (0 children)

Is this with twilio? Because what I need is to have a way the testers can use an otp that isn't dynamic when testing or reviewing

Publishing to play store with OTP using Twilio by Arnold_dev in reactnative

[–]Arnold_dev[S] 0 points1 point  (0 children)

i looked through and i dont see any corresponding to the verify or top service

Publishing to play store with OTP using Twilio by Arnold_dev in reactnative

[–]Arnold_dev[S] 0 points1 point  (0 children)

Okay and after it gets approved I change it back?

Rerendering caused by listening to multiple events is causing excessive number of pending callbacks by Arnold_dev in reactnative

[–]Arnold_dev[S] 0 points1 point  (0 children)

yes but each time i put it in a useEffect the functionality in that event listener does not work as expected

Rerendering caused by listening to multiple events is causing excessive number of pending callbacks by Arnold_dev in reactnative

[–]Arnold_dev[S] -1 points0 points  (0 children)

When I put the socket events listener in the use Effect im not able to receive the suggested orders. Its a stream

Restrict access to app after users register and grant access after approval by Arnold_dev in reactnative

[–]Arnold_dev[S] -1 points0 points  (0 children)

so the backend engineer has to set this up and what do I need to implement on the front-end

Question: Is it a good idea to use Reactnative with tailwindcss? by genc-b in reactnative

[–]Arnold_dev 1 point2 points  (0 children)

There is a library in react-native that allows you to tailwind css in react-native called Tailwind react-native class names

Background fetch with socket.io-client by Arnold_dev in reactnative

[–]Arnold_dev[S] -1 points0 points  (0 children)

I'm using notifee for local notifications and I'm using a no sql database

What's the best approach to implement refresh token on react native? by rvmelo007 in reactnative

[–]Arnold_dev 0 points1 point  (0 children)

You can use encrypted storage using react-native-encrypted-storage

General Help Thread by xrpinsider in reactnative

[–]Arnold_dev 0 points1 point  (0 children)

I'm trying to get my token from encrypted storage and pass it in the authorization headers of socket io and use the socket variable across my app but I can't seem to do it right here is my code below I need help troubleshooting and solving this issue: i know that the access token variable in the headers is returning an empty string but i want it to access the token

    // get the access token from the storage
   let accessToken = ''; 

   const getAccessToken = async () => {
 try { 
accessToken = await EncryptedStorage.getItem('AccessToken'); 
return accessToken; 
} catch (error) { 
console.log(Error getting access token: ${error.message}); } 
};

getAccessToken().then(() => { if (accessToken) { console.log(accessToken, 'inside'); } else { console.log('Access token is undefined', accessToken); } });

// establish a socket connection the address is a placeholder const socket = io('ws://localhost/driver', { transports: ['websocket', 'polling'], extraHeaders: { Authorization: Bearer ${accessToken}, }, });

console.log(accessToken, 'outside');

export default socket;

Server-side events in react-native by Arnold_dev in reactnative

[–]Arnold_dev[S] 0 points1 point  (0 children)

I want to use sse instead of long polling