Relative Content

Tag Archive for react-native

The Component Isn’t Displaying Any Text

I am familiar with react-native & decided to give it another try. I started by creating the Bottom Navigation. The problem occurred when I made a screen for the first bottom tab, which is supposed to display simple text. But for some reason the text will not show.

UI not updating after items deleted from list

I have a React Native Typescript app, which will show numerous video players on the screen similar to Instagram or other apps. I get a list of data from a REST API, and as the user scrolls, the app will populate 5 items (video players) of that data. I want to restrict around 25 results in the ScrollView at a time. So as the limit of 25 is reached, it should delete the first 5 items and append 5 new items. I have to do this because my screen becomes very slow and laggy with the increasing number of video players. The code currently does not update the UI:

React Native ViewManager getCommandsMap

When I have to communicate between native and rn, I have to list up command id and name on getCommandsMap of ViewManager. And then, I can receive the command from receiveCommand. I found out that receiveCommand method which has commendId of Int Type is deprecated, and It seems that only command name(String) makes communication work well.

Permission d’accéder à la galerie des émulateurs

J’utilise la version 7.1.0 de react-native-image-picker dans une application React Native. Le problème est que l’accès à la galerie fonctionne sur certains émulateurs, mais pas sur d’autres. J’ai déjà ajouté les permissions nécessaires dans le fichier AndroidManifest. Comment résoudre ce problème ?”

Can’t login metro

I can’t log in Metro to connect it to my emulator what should I do to fix this as you can see I have provided the image and I tried numerous methods to resolve it but still a problem