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
-
1
votes1
answer206
viewsSave checkbox status in Asyncstorage
I have a check box which by default is marked as true (marked), but, I want to dynamically save an option when the user changes this box to false (or, cancel). As I will not have bank interaction…
-
1
votes2
answers249
viewsInput component is not changing the state value
I have an Input component that is a Textinput Wrapper (React-Native). When I type the value in my Input component and then try to show the value of the variable to which the text should have been…
-
1
votes1
answer284
viewsReact Native useState create loop input
I have an object as follows: var ItensMenu = [ {title: 'Nome', type: 'input', id: 'id1'}, {title: 'CPF', type: 'number', id: 'id2'}, {title: 'Data de Nascimento', type: 'date', id: 'id3'}, {title:…
-
1
votes2
answers365
viewsHow to render asynchronous content in React Native?
I’m new to React Native and I’m developing a test application where I need to save some data on the device using Async Storage. I was able to save the data correctly, but when I try to get the data…
-
1
votes1
answer29
viewsHow do Textinput print number 1 every time you press Buttom?
How to do the TextInput print out the number 1 every time we press the button? Example: if I press 5 times the button, I want "11111" to appear on TextInput. const App = () => { const state={…
-
1
votes1
answer1076
viewsProblem adding SVG to React Native
I am unable to add an SVG to a component (SplashScreen), follows the code: import {LinearGradient} from 'expo-linear-gradient' import React from 'react'; import {Text, View, Image} from…
-
1
votes1
answer447
viewsError running "React-Native run-android": Execution failed for task ':app:processDebugResources'
After I install some libraries from React-Native-navigation for a project, I executed the command react-native run-android cmd but it closes my server and returns the error below. How can I resolve…
-
1
votes1
answer213
viewsHow to toggle the status of only one item in Flatlist?
I have the following code: const Sounds: React.FC = () => { const [hasSelect, setHasSelect] = useState(false); return ( <Container> <FlatList data={data} keyExtractor={item =>…
-
1
votes1
answer26
viewsI’m not getting the Json data - React Native
I am unable to extract the data from the api. Here I get the data: fetch(config.baseURL + '/calendario/situacao_horarios_mes/TESTE/2020/12') .then(res => res.json()) .then(resJson => {…
-
1
votes0
answers52
viewsCustom fonts do not load in Expo
I’m trying to add custom fonts in my project with expo, but even following the documentation and Apploading returning that the fonts were loaded the text does not change font when placing the…
-
1
votes0
answers35
viewsFlatlist after creating a Scroll, to render correctly
After 7 to 9 names, when creating a Scroll for viewing, Flatlist starts rendering a name only after another is inserted, and this only happens in tests on Android, the web is working normally. GIF…
-
1
votes0
answers30
viewsPlaceholder of Textinput breaking after typing
I have a TextInput that when it starts works normal, but after the user type something and delete, the placeholder breaks into two lines. When starting the screen After typing and deleting…
-
1
votes0
answers58
viewsError running React-Native run-android
Good day to you all. I’m taking a course in React-Native and I’m already in 10th class. I’m running the course project via USB Debugging on mobile. Until then, everything worked fine but when I…
react-nativeasked 4 years ago cfreitasc 43 -
1
votes0
answers69
viewsTouchableopacity problem, negative margin and Android - React Native
I have a problem with TouchableOpacity using negative margin so that different TouchableOpacities stay a little on top of each other (I’ll post an image to better understand). These buttons are…
-
1
votes0
answers10
viewsReplacing Datepickerandroid and Timepickerandroid by Datetimepicker, but I can not use
I’m doing a project of a course I bought, but in a certain class is used the DatePickerAndroid and TimePickerAndroid, that have been discontinued (including Timepicker no more). The code was as…
-
1
votes0
answers54
viewsConsume Youtube API v3 with React Native to list videos on a Flatlist
I really need your help, I am beginner in React Native and I want to do a Flatlist with the videos of a channel of Youtube, but I don’t know how to do the integration of AXIOS or Fecht with the…
-
1
votes1
answer73
viewsTrying to send data to the api in React Native and php
I’m trying to send my app registration data in React-Turn to my PHP api. Follow my code React: const handleSignUp = useCallback(async (data: object) => { try { await…
-
1
votes0
answers35
viewsEmpty objects in Realmdb with Reactotron
I’m having problems with Realmdb objects, every query I do it returns but in Reactotron they come empty regardless of what I do with the whole object, it only appears if I dismember attribute by…
-
1
votes1
answer45
viewsIonicons are not being rendered
I’ve been building an app that uses Ionicon icons. Only when I implement in my app, simply does not render, just appears this rectangle with x crossed: I have already searched in several forums, I…
react-nativeasked 3 years, 12 months ago Lucas Vital 13 -
1
votes1
answer82
viewsCheckbox does not deselect in React Native
I’m using the hook useState, however it does not change the state when it is pressed again, it is always marked. const [isSelected, setSelection] = useState({}); const handleChange = (event) => {…
-
1
votes1
answer120
viewsHow to make two Scrollview on the same screen in React Native
I have a screen with several frames fixed height, and within each frame I have an amount of items. I need a ScrollView on the whole screen to scroll the frames, but also need another ScrollView…
-
1
votes1
answer89
views"Building Javascript Bundle" very slow to start Expo on Android
In React Native, following the official documentation (step by step) I was able to install the dependencies and everything I needed to run my first project. I created the directory using expo init…
-
1
votes0
answers68
viewsDifficulty saving checkbox status with Asyncstorage
I have an error saving checkbox status with Asyncstorage. When exiting/reloading the screen, the first checkbox is always marked and the other’s markings are removed https://imgur.com/bFxof0q I need…
-
1
votes1
answer68
viewsCalling function via direct or Arrow function
As you know I’m joining this world of Javascript/React Native... In my studies I have noticed in some examples how certain functions are called. Example 1: In this example the onCancel function is…
-
1
votes0
answers30
viewsAutomatically consume data
I’m starting my studies in JS and React-Native. I developed an app that consumes data from a Mysql server that I have hosted on Uolhost, through a REST API that I have deployed as a Firebase…
-
1
votes1
answer44
viewsHow to create a loop to list items by clicking a button?
I made a stopwatch and when clicking 'Mark Back' it shows the lap time. If you click more times, it will 'listing' the time, one below the other. What I wanted to do and I’m struggling to do is…
-
1
votes1
answer43
viewsImages with Uri from the React Native API
In the database I save the image path along with the other posting information, ai on the page I want the image to appear I use a flatlist listing the posts and showing your image if that post has:…
-
1
votes1
answer44
viewsRealmdb React Native - Empty objects in Realmdb, when creating and listing objects
Whoa, guys, all right? I’m having a problem with my Realmdb here, I’m trying to create a new object and trying to list these created objects. However, when listing or creating, it returns empty…
-
0
votes1
answer672
viewsDatabase - Images
I am very doubtful about a database that stores images and videos... I wonder if there is a database made to store only images, or I can store photos in a normal database? I’m creating a mobile app…
-
0
votes1
answer239
viewsReact Native shows error when I try to emulate Android
I have an app that should be tested on an Android emulator. After setting the React Native and Android environment (including the environment variable). I can’t run my app on Android emulator.…
-
0
votes1
answer24
viewsDisplay data from a 2d array in Reactnative
I have this array, and wanted to show the data contained within it as I do? var questions = [["test ss aa","test asdd as"],["test a","test asxc a"],["test xs aws","test scaca"]] Thank you…
-
0
votes1
answer481
viewsImage Upload with Firebase and React Native using RN Image-Picker
I am using the React-Native-image-Picker component to capture an image that must be saved in firebase. I’m using the following code: firebaseApp.storage().ref('/images/').child('teste')…
-
0
votes2
answers1561
viewsHow to return scene with mobile button
The only way my app has to come back from the scene is by the button I created, when I click the back button of my phone the app closes. Code of the button I created: <TouchableHighlight…
react-nativeasked 7 years, 7 months ago Murillo Carvalho 5 -
0
votes1
answer3253
viewsHow to use Backhandler (React-Native)?
I started learning about React-Turn on a little while ago and created an application. In it I put a button to return from scene that works normally, but when I try to use the back button of the…
react-nativeasked 7 years, 7 months ago Murillo Carvalho 5 -
0
votes1
answer215
viewsReact Native Drag and Drop Listview
I need to implement bizarre functionality in React Native. Here’s the thing, I need to be able to drag and drop to remove an item from one horizontal Listview and add it to another. The big issue is…
-
0
votes1
answer681
viewsCommand `run-android` unrecognized - After installing navigation
After creating a React-Native init project test and install the navigation (npm install --save react-navigation) simply after that the run-android command is no longer recognized. I found several…
-
0
votes1
answer605
viewsRequest when returning to previous scene in React-Native
I’m using react-native-router-flux for routes and scenes. I got scenes A and B on screen GET in an API in function componentWillMount() and display the information. On screen B I have a form and…
react-nativeasked 7 years, 6 months ago Fernando Zabin 707 -
0
votes1
answer1610
viewsRecord app data developed with React-Native in a remote Postgresql database
Good I’m developing an application in React-Activate. In this application will basically have some forms to register information, but this information must be saved in a Postgresql bd which is…
-
0
votes1
answer572
viewsReact-Native scren splash screen
I created a component class with my screen splash. And I want that after a few seconds, the navigation goes to the other screen, I have already configured the navigation const SimpleApp =…
-
0
votes2
answers1790
viewsError trying to give npm start in React-Native project
I’m starting in the development of apps with React-Native, to learn created a virtual machine running Lubuntu and followed the step by step installation of the prerequisites: sudo apt-get update #…
react-nativeasked 7 years, 5 months ago Mateus 977 -
0
votes1
answer132
viewsRN Navigation - Draw Navigator
My app will feature various types of navigation on different screens. I started using index with stacknavigator and a second page trying to configure Drawnavigator and I’m not getting. I saw in an…
-
0
votes1
answer349
viewsReact-Native Asyncstorage returna null
Good I’m having a problem when I will save some data in Asyncstorage, when I will return it comes null. salvage : export const listarRecados = () => { return dispatch => {…
-
0
votes1
answer365
viewsReact Native - Error emulating Android
I’m trying to emulate an app and this error appears preventing it to continue with work. I have a 64-bit Win 10 JDK 9.0.1 Nodejs 6.11.4…
-
0
votes1
answer154
viewsError while switching View to Scrollview
I am making a page with a menu of 6 elements, divided 2 per line. And this presents everything right the way I want on most screens, but when testing in the emulator of a screen 3,2' this cuts the…
react-nativeasked 7 years, 4 months ago Mateus 977 -
0
votes1
answer1455
viewsHow can I check the text size of an React-Native input?
hello, I need to take the text of an input in React-Turn on and check if this typed text has less q 11 characters, how could I make that check? I’m new to React
-
0
votes1
answer152
viewsAdb failure using React-Native in Ubuntu
I’m having a problem running a React-Native app on my phone. With everything configured run react-native start react-native run-android and the following error appears: 05:32:56 E/adb: adb server…
-
0
votes1
answer997
viewsReact-Activate Generated Apk not working
Good morning guys, is the following I started now in React-Native and did a small application follow as in the documentation to generate an apk…
react-nativeasked 7 years, 1 month ago Rogerio Carlos 11 -
0
votes1
answer345
viewsCode reuse in React
I have a code that repeats on every page. How can I solve this problem by reusing the script. export default class App extends Component<{}> { onMenuItemSelected = item =>{ if(item ==…
-
0
votes1
answer731
viewsReact Native build app
When creating a React project activate and I try to run it by the *React-Native run-android* command this error appears, no matter if it is direct on the physical device or AVD. I have created…
-
0
votes2
answers802
viewsExtract formatted_address from JSON return from Google Maps API
I’m using the google maps API to do the reverse geocoding but I’m not getting the formatted_address import React, { Component } from 'react'; import { Platform, Text, View } from 'react-native';…
react-nativeasked 7 years, 3 months ago Mateus 977