Most voted "react-native" questions
React Native is a framework based on the React library, developed by Facebook engineers that consists of a series of tools that enable the creation of mobile applications with native interfaces for the iOS and Android platform using Javascript.
Learn more…700 questions
Sort by count of
-
0
votes1
answer155
viewsChange a Component Class React to a hook useState React-Native
I want to transform this code of class in a code of useState hook, wanted the same functionality as this code class has become the Hook export default class App extends Component {…
-
0
votes0
answers14
viewsAudio Expo does not pause the music
The sound plays normally, but the pause doesn’t work. I tried several algorithms and nothing worked. I think it’s something with the Promisses, because I don’t know much about asynchrony. But when I…
-
0
votes0
answers323
viewserror when executing application in React Native
I’ve been having these mistakes for a couple of days and I did a lot of research before opening this question here, I couldn’t solve it at all, I’m a beginner in the area someone can help me? the…
-
0
votes0
answers36
viewsPermission to open camera denied on Android SDK 29
After changing the SDK to 29, the camera that used to open normally on the 28th is now denied permission. My project is developed in "React-Native": "0.59.9". Here are some additional information:…
-
0
votes0
answers179
viewsError with JSON.parse in React-Native + Xios
I’m using Aces to fetch data from a PHP API. I get a reply with the data expected in React-Native, however when using the function JSON.parse() get the bug: "[Syntaxerror: JSON Parse error:…
-
0
votes3
answers238
viewsRendered content behind the Statusbar
I’m taking a course where the app screen should be this way, with the component at the top not exceeding the layout limit: But in my code it was like this: You can see until the icon has been cut.…
-
0
votes1
answer152
viewsError with . splice, is removing the first element and not specified
I have a problem trying to remove a specific element from AsyncStorage, is always being removed first element. Adding element: async function adicionar() { if (produto === '') { alert('Informe um…
-
0
votes0
answers63
viewsButton does not call onsubmit in formik - React Native
all good? I have a Validator with Yup, and a formik, but somehow onsubmit is not called, when I click the button, I already checked in the Debugger if something is called and nothing :( This is my…
-
0
votes0
answers108
viewsWF: _Webfilterisactive returning: NO
I have a problem in the following scenario: I am consuming data from a Json API, I am inserting this data into an html file that is in my project to be displayed in a webview. When I open webview…
-
0
votes0
answers191
viewsHooks: Usestate with dynamic array manipulation in React Native
Good morning/afternoon/evening, I need your help if possible... I own a hook const [itens, setItens] = React.useState([ { id: 1, nome: "Item 1" }, { id: 2, nome: "Item 2" } ]); In fact it is blank,…
-
0
votes0
answers39
viewsHow can I use lib 'websocket' in React Native?
I have a chunk of code that I can connect to my websocket server using it: var WebSocketClient = require('websocket').client; var client = new WebSocketClient(); var token = "##############";…
-
0
votes1
answer53
viewsCannot scroll to Flat List
I’m building a recipe app with React Native, Expo and Firebase... I’m creating a Flatlist to render cards from an array of objects, but when the cards exceed the height of the screen I can’t see…
-
0
votes0
answers44
viewsError running React-Native run-android - another error
Good morning everyone. I’m taking a React-Native course and I’m already in the 10th class. I’m running the course project via USB Debugging on mobile. Until then, everything was running well but now…
-
0
votes0
answers25
viewsErrors when rendering a Sectionlist with an object array
I’m trying to insert a SectionList, but is returning in the console, in order, the following errors: Uncaught TypeError: Cannot read property 'length' of undefined The above error occurred in the…
-
0
votes0
answers343
viewsUnhandled Promise rejection: Typeerror: Undefined is not an Object (evaluating '_context.t0.data.error') at expo
my expo is giving this error on my login page, can you help me? here is my code export default class Signin extends Component { state ={ errorMessage: null } here I use apisauce to post on my api…
-
0
votes0
answers84
views[Unhandled Promise rejection: Typeerror: null is not an Object (evaluating 'bleManager.scan')]
I have the following error in bluetooth connection with React Native, I am using the library react-native-ble-manager and the expo for the construction of this app. The error occurs when I try to…
-
0
votes1
answer142
viewsReact Native - How to show value saved with Asyncstorage in a Text component
I would very much like to be able to render in a text component the value saved and changed with the Async Storage. In showData I can get the new value with: console.log(`novo valor: ${newValue}`)…
react-nativeasked 3 years, 10 months ago Jhonatan Bergmann Dias 9 -
0
votes0
answers38
viewsError calling localhost API in . Net Core and React Native. Returns (Network Request File) error
I’m trying to connect a request from my app using React Native calling this Api that was made on Dot Net Core. This is the desired result. But when access Android Virtual Device returns me an error…
-
0
votes0
answers21
viewsHow to allow youtube video to be expanded on mobile MI 8 SE?
I have an app made in React-Note that there is a video embedded in a webview. A client complained that she can not expand the youtube video on the full screen of her mobile phone, I took the model…
-
0
votes1
answer46
viewsReact-Native: Flatlist does not render JSON data on mobile with installed apk
Hello I have a problem a little weird... I have an apk generated in release mode with signature everything ok,but when I install in my cell a Xiomi 7 on the home screen does not redenrize the…
-
0
votes0
answers20
viewsHow to pass the counter " i " of the cycle for a function parameter?
Hello I am trying to implement a dynamic table with React Native, and the table data should be dynamic, so far so good. But the records of one of the columns must be a button that calls a function.…
-
0
votes0
answers24
viewsproblem when implementing custom React source
Speak devs, good afternoon. I’m having a problem implementing a custom font in my React-Native app. The problem is this:: **fontFamily "open-sans" is not a system font and has not been loaded…
react-nativeasked 3 years, 9 months ago Lucas Vital 13 -
0
votes0
answers11
viewsProblem with state React
I cannot use state helps once the page is rendered. The following error appears: TypeError: undefined is not an object (evaluating 'this.state.ajudas['0']['tipo']') My code: class AjudaScreen…
-
0
votes0
answers14
viewsError climbing IPA - New applications using Uiwebview are no longer accepted - React Native
I’m going up an IPA to Testflight on https://appstoreconnect.apple.com/ and I got the following mistake: Use of obsolete API - New applications that use Uiwebview are no longer accepted. Instead,…
-
0
votes0
answers129
viewsError generating apk with expo "expo build:android Currently only Supports Managed workflow apps"
I created a project from scratch using the following instructions https://blog.rocketseat.com.br/expo-sdk-38-melhorias-que-fazem-do-expo-uma-opcao-ainda-melhor/ but after 2 months of work trying to…
-
0
votes0
answers30
viewsWhat is the best way to register users in the app via Oauth login (facebook, google and Apple) or login and password
I’m creating an app with Expo (React Native) where do I login Oauth no facebook, google and apple using the Oauth and also via login and password. However I will only work with the registration UID…
-
0
votes1
answer78
viewsMake a global useState variable in React
I’m making an app through the expo with React-Turn on.I’m making a button that when I click I want it to change the height of a Component . I thought of carrying out an export of a variable useState…
-
0
votes0
answers74
views@React-Native-firebase/admob does not work
I am trying to insert ads into my code in React Native via the @React-Native-firebase/admob library. I took the whole step by step of the Admob platform to create my account and create my first…
-
0
votes0
answers27
viewsAxios can’t get data from my PHP server
I’m trying to make the connection between my php server and Axios . I had already used Axios but with Node.js. I’m trying to get him to pull the database data and print it on the screen, but when I…
-
0
votes0
answers30
viewsError serving Expo + React Native Maps
Well I am in the exhaustive attempt to get the React-Native-Maps and finally, to serve it, I made the code (for now simple): import React from 'react'; import { StyleSheet, Text, View } from…
-
0
votes1
answer23
viewsHow to access properties of a custom component in React-Native.ts?
In the React-Native.js you can simply access any property as follows: const meuComponent = (props)=>{ return(...); } Inside the component, you can access any property transferred to it, provided…
-
0
votes0
answers14
viewsProps.route.params is not changed by clicking on Drawer Navigation item
I’m having the following problem using React Navigation (version 5.x): I have a Drawer Navigation where I use two routes, one of Home and one of Registration/ Details. How I use the Register screen…
-
0
votes0
answers23
viewsError in Carousel React-Native
Good People, I’m trying to implement Carousel using React-Native-Anchor-Carousel, when I do with still images, I create an array by passing the images and it works 100%, but when fetching these…
-
0
votes0
answers29
viewsProblem with hook in Reacnative
I am starting my studies in Reactnative and I am having difficulties with an exercise I created to train the use of hook useState. I basically created the following component Contador.js: import…
-
0
votes0
answers42
viewsDoubt about how "import" works
I am learning JS and Reactnative and for that I am studying about the creation of a backend in Node.js and a frontend in React Native and one thing caught my attention. In my backend when the user…
-
0
votes0
answers9
viewsBehavior of the Tabnavigator
I created a project in React Native where I return the following Container: const Tab = createBottomTabNavigator() authRouter = () => { return ( <Stack.Navigator initialRouteName={Login}>…
react-nativeasked 3 years, 5 months ago Bruno Nobre 75 -
0
votes0
answers43
viewserror using one Signal React Nenable
I’m trying to use onesignal with typescript but I can’t. Every time I run the application it error and the vs code itself keeps pointing error but I can’t resolve... I followed the tutorial in…
-
0
votes0
answers37
viewsDoubt about where to declare variable
I have a query on an object that is in a functional component in React Native. I have created a main matrix (arrayholder) to store all data while filter the information in the status variable…
-
0
votes1
answer19
viewsInsert elements into an Array with Hooks and display in a list
Hello, people. I’m new to React-Native and I’m still learning some basic concepts. My current problem is this: I want to make a screen of newly searched items, so that when the user clicks to type…
react-nativeasked 3 years, 5 months ago Kelvin P. 23 -
0
votes0
answers15
viewsVideo control with expo
I’m trying to do the react-native-media-controls control my video of the av expo and in no way works, below I will leave the code of the component complete import React, { useState, useRef } from…
-
0
votes0
answers35
viewsHow do I iterate through Textinput in React Native useRef with typescript
I have a Textinput that will be divided into 4 password entries. What I need is: 1 - Adding a number automatically switches to the next focus entry; 2 - when I delete the entry, I go back to the…
-
0
votes1
answer50
viewsFirestore React error on
I’m trying to get the information from my collection in firebase but am getting the following error: Typeerror: Undefined is not an Object (evaluating '_firebaseConnection.default.db.Collection')…
-
0
votes0
answers26
viewsImage Tag does not render image from device, only from outside Native React device
I’m trying to make a kind of gallery in React Native but I found a problem when accessing local files (in case only images), I used the Cameraroll library that is now in the React Native Comunity…
-
0
votes0
answers41
viewsGenerated apk with zero bytes
Personal talk I’m having trouble generating an apk with React Native. It comes to build the project and run in the simulator, but the app-release.apk file that is generated in the…
-
0
votes0
answers17
viewshow to pass props within constants in React-Native
Hi, I’m developing an app in React Native and I have this convert function that gets 3 props(code, codein and name) they all get a String and I want to put the prop code in place of USD, so it…
-
0
votes0
answers13
viewsError when synchronizing data from local database implemented with watermelonDB in APP React-Native
I was recently developing an app that simulated car rental. In one of the steps of the app, I should implement a local database that every time the user was online, it would take the API data and…
-
0
votes1
answer31
viewsHow to pass more than one value to the value attribute?
I am working with user authentication, I have created two types of users within the same context, the common user and the admin user, both are registering, logging and loaning. I’m having a hard…
-
0
votes0
answers40
viewsReact Native - React-Native-bluetooth-escpos-Printer
I am implementing the printing of a ticket via the React-Native-bluetooth-escpos-Printer lib. I can connect and print. The problem is that in printing, is added the characters &M before any text…
-
0
votes0
answers10
viewsI can’t return to my expo go app after sharing an image on Facebook using expo-sharing?
I’m using expo-sharing (Android) to share images. When I share for Whatsapp, a new window is opened with the Whatsapp app, but when I share with Facebook Lite, I can no longer return in the Expo…
-
0
votes1
answer12
viewsHow to reset firebase password?
Good afternoon, I am trying to create a function that allows the user to reset his password when informing his email. According to the firebase documentation the user only needs to provide the email…