I’m trying to navigate to my page “CameraPage.js” but I’m getting this error “undefined is not an object (evaluating ‘navigation.navigate’)”. Can anybody see the problem? This ismy first question here so please tell me if I can be more specific. Here’s my App.js: Here is my CameraPage.js file: Here is my navigation file: Answer Your navigation container must be wrapped
Tag: react-native
React Native – Variable does not update correctly when retrieving data from AsyncStorage
I’m trying to store and get data that I fetch from an API. The user is supposed to get a token on the login screen, and the token will be shown in an Alert dialog on home screen when the user press a button. But the token is not shown in the Alert dialog. the token is shown after I
Share QR React Native
I’m new in react/react native. I’m trying to share a QR Code as image. Generate QR works, but I want to share it as an image (whatsapp, bluetooth, etc). I tried “get base64 string encode of the qrcode” from official documentation, but I just don’t get it What I tried to do (all my code): get error svg.toDataURL is not
React Native how to pass a function with a parameter inside a for-loop
I have the code below for a React Native app using Javascript and Im creating an array of objects that are data for a context menu. When the user selects a project from the menu it should call handleSelectedProject which it does and pass the selected project object but I get undefined for the project variable. Any ideas what the
React Native, passing data between screens when using BottomTabsNavigator
I am trying to make a react native application. I am using Bottom Tab Navigation, and I have 2 screens. On the first screen, a qr code is first scanned, it contains a string, which is written on the screen. Then I would like to write out the afformentioned string on the second tab. How can I pass this data
Get only undefined value from my global variable configured with Context
I have an React Native app with two pages. On the first page I have a picker from which I need the data from in the second page. I try to use Context for making sate globally available but I didn’t get it to work till now because I only get undefined types at the position where I wanna insert
Storing API Keys in react-native app with expo library
I have a question, please, if possible explain in simple terms. Im new to react native, what’s the best way to store API keys in a secure way where they can’t reverse engineer it and get the keys right away. Can I just retrieve it from the server side using a restapi to get the apikey only if user is
Is it possible to get JSON from a URL and save it as json file with a custom name inside a specified path/folder through the front end?
My issue is simple on paper – I have a React Native project and I’m trying to make a script that will run on build and fetch JSON from a URL, then save it as JSON file with a custom name inside a specified path/folder. For example, I want to access the JSON at www.example.com and save it as a
React Native : nested JSON object shallow copy (reference) not working
I have a nested JSON objects that looks like {“name”, “children”: [JSON objects]}. I am trying to add a new child to the object found with a variable path, an array of names. My code doesn’t work in my React Native app, however it does in the Chrome console, which makes me really confused. Does it have to do with
state is not getting updated for a new user in react native
My app has a test sheet, if a user passes the test he is shown a passing screen and then the state is saved using asyncstorage. But the problem here is, let’s say i have user A and user B and user A is currently logged in, he passed the test and the app shows him passing screen and the