I am implementing a provider which helps me to have the state of my user in different views, the main function of this provider is to render different one or the other stack navigator depending on whether the variable is full or empty, this in order to be able to generate two groups of screens depending on whether the user
Tag: react-native
Component is not rerendering even i used useeffect and state is changing?
i am using react native and creating a chat app. Now i have few messages objects in array and i’m rendering them in flatlist now when i type message and click on send. my typed message gets clear after adding the message in array of messages. but message does not add on screen with rest of messages. as it seems
How to handle multiple FlatLists in React Native
These red marks areas are 3 FlatLists. The first and Second are horizontally scrolling FlatLists while the last FlatList is scrolling vertically.My problem arise when scrolling the last FlatList. It not going to the bottom it stays in the same position but scrolls (Like it has a fixed height). How to get rid of such thing. I’m trying a way
How to add in react-native script in python?
Also i have got a new project, where nedded make a voice recognition (speech-to-text) , but i have’t find a worked library in react-native. How can i connect scripts in python to react native project? I only find how to make autorizathion in python, but by me it was maked in JS Answer If your python app is going to
ReferenceError Can’t find variable: Image – React Native, create-expo-app. Can’t create an HTMLImageElement with Image()
The Error I’m early in learning to use React-Native, working with create-expo-app. When I run npm start, I run into an error giving this output: ERROR ReferenceError: Can’t find variable: Image I expect that the second two errors are caused by the first error. ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered
Error: Call to function ‘ExponentImagePicker.launchCameraAsync’ has been rejected
I’m trying to to make the user take a photo with “expo-image-picker” module using the “launchCameraAsync” function, and at first everything worked out fine, but now when trying to make the user take a photo, expo throws an warning and does not activate the camera, the warning is: Possible Unhandled Promise Rejection (id: 0): Error: Call to function ‘ExponentImagePicker.launchCameraAsync’ has
React: Get all data from Table from a onclick function
I have react app with a react-spreadsheet component and a button. I am trying to get the data from the spreadsheet on the onclick() event of the button. I am trying to get the data added to the spreadsheet via the webpage inside a JavaScript function. Is there a way to get the react-spreadsheet data(if any added via frontend) inside
How to Store and Update then again store in useState
I’m using here useState to store data, update current value, by using this it’s not store previous data, it’s only store update current value which do useState. But I want to store previous data and update data all of them, somethings like, i have 10 api’s data and i want to call them end of my api using ids. i
Easy problem : Trying to change content when button is press React native
I’m actualy coding a mobile app for school and I have problems when try to change content of a Text when I’m pressing a TouchableOpacity button. I want that : When I press the button (actualy a text button) it change the content of a Text by the actual text of the button (imagine menu where you have to chose
Unable to resolve module [external url] within the project or in these directories: node_modules
Im doing a project in react native I have an object of exercises that include images and videos, everything is fine when the object was created, but when I imported into another file I get this error undefined Unable to resolve module https://assets.soysuper.fit/cutted+mvp+mp4s/bodyweight_squats.mp4 from /mnt/c/Users/USER/Documents/superfit/app/src/screens/Patient/Workouts/ExercisesList.ts: https://assets.soysuper.fit/cutted+mvp+mp4s/bodyweight_squats.mp4 could not be found within the project or in these directories: node_modules This is