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
votes0
answers122
viewsReact-Native run-Ios does not work but Xcode does
I created a project RN 0.59 where everything was working. After the libraries are installed the command react-native run-ios stopped working. The simulator opens the application, staying on the…
-
0
votes1
answer411
viewsSort my flatList by the hour
I am filtering my flatlist by date (period), but want to put the hours in ascending order: <FlatList style={{backgroundColor: 'white', marginTop: 10}} data={this.state.progr.data.filter(x =>…
-
0
votes1
answer863
viewsReact Native error: Undefined is not a Function
I’m having a bug in React React Native error: Undefined is not a Function import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { connect } from…
-
0
votes1
answer528
viewsLabel position in React Native Picker
I’m using the component Picker of React Native and ta working, listing, selecting and such, only that I can not style it well, I was able to put edge, arrange the size but the text that is inside it…
-
0
votes0
answers211
viewsHooks with Infinite Loop
My Hooks is in infinite loop, charging all the time, what I intend to do is to search the api when start the screen and when there are changes of status of the tasks reload, but it keeps reloading…
-
0
votes1
answer124
viewsXcode error after update to version 11
Since my version of Xcode upgraded I can no longer run any of the projects I implemented, Below is the print of my problem, since Xcode has automatically updated to version 11 I come facing this…
-
0
votes1
answer326
viewsLive Reload not working at the Expo
When emulating an app made with expo on Genymotion, the live Reload do Expo does not work, the options menu is not even open (either using the action of shaking the smartphone or pressing the button…
-
0
votes3
answers1609
viewsWhite screen with React-Native
I am initiating a project with React-Native , but after giving the following commands: react-native init projectName react-native run-android I come across not with the React-Turn on boot screen in…
react-nativeasked 5 years, 1 month ago Israell Llopes 41 -
0
votes1
answer334
viewsUse 2 types of Drawer and Bottomtab navigation at the same time
Hello, I’m a little confused about the routes of React-Native, I mean when I need to use 2 types of routes on the same screen. Here’s my try so far: export default (isSigned = false) =>…
-
0
votes1
answer361
viewsReact Native with PHP
Good night to you all! I have an app developed in React Native and I am consuming an API made in PHP, however the file of this API is in my machine, it is not in any server. When I upload my app to…
-
0
votes0
answers20
viewsWarning: In next release Empty Section headers will be rendered - React-Native-select-Multiple
Good afternoon, can someone help me?! I have the following code: import React, { Component } from "react"; import SelectMultiple from 'react-native-select-multiple' import { Content, Card, CardItem,…
react-nativeasked 5 years, 11 months ago Vinícius Fernandes 39 -
0
votes0
answers45
viewsjustifyContent: 'flex-end' does not align at the base
I am trying to add a product value bar at the bottom of the application, using the justifyContent: 'flex-end' but the content does not go down, it is pasted in the View that comes above. The code is…
-
0
votes1
answer104
viewsHow can I fix this error? I want only gives <Text>{selectedValueState}</Text>
How can I fix this mistake? It occurs when I try to render the text with {selectedValueEstado}. When I do <Text>{selectedValueCidade}</Text> it’s quiet (I’m new, so I have no knowledge…
-
0
votes0
answers38
viewsDispatcher does not recognize payload React Native Redux
When trying to save a new state in the Redux store it says that such a variable does not exist. Dispatcher (where it points to error): export const valorMdoisD = () =>{ return{ type: ALIGN_M,…
-
0
votes1
answer98
viewsProject execution error in React Native on Windows
I’d like to know why and how to fix that mistake.…
-
0
votes1
answer699
viewsReact Scrollview is not working
I can see the components inside it, but the problem is it doesn’t slide up or down, but it has a lot of cards in it. import React from 'react'; import { StyleSheet, Text, View, ScrollView} from…
-
0
votes1
answer1055
viewsHow do I connect my RN app to a local api consuming the data in post?
Good morning guys, I’m stuck since yesterday and need help. I can’t connect the app I’m developing the api that is on my pc. 1° Error 404 2° I don’t know if I’m making the request the right way ( My…
-
0
votes1
answer853
viewsTypescript with React-navigation
I have a doubt in typing the prop Navigation of a functional component, my code is currently like this: import React from 'react'; import { Container, Button, ButtonText } from './styles'; import {…
javascript typescript react react-native react-navigationasked 4 years, 9 months ago Henrique Hermes 343 -
0
votes1
answer189
viewsHow to concatenate two React components?
I have the function sequinte, that does not work. textao() { var texto = <Text>Texto1</Text>; var texto2 = <Text>Texto2</Text>; return texto + texto2; } I want to concatenate…
-
0
votes1
answer41
viewsTitle on the back button
import React, { Component } from 'react'; import api from '../service/api'; import {View ,Text, StyleSheet, Image, FlatList, Dialog} from 'react-native'; import Cabecalho from…
-
0
votes2
answers549
viewsReact-Native code error
invariant Violation: element type is invalid: expected a string (for built-in Components) or a class/Function (for Composite Components)but got: Undefined you likely forgot to export your Component…
react-nativeasked 5 years, 8 months ago Bruno Borges 1 -
0
votes1
answer251
viewsPicker React Native stylization
Good morning, I’m using Styled Components in styling my components in an React Native app, and I’m trying to put a colorful and rounded edge on my Picker, but it’s rendered without styling. The code…
-
0
votes1
answer256
viewsBluetooth in emulator
I’m wondering if it is possible to connect a bluetooth in some emulator, because, I’m doing a project that needs to test bluetooth and I do not have an Android smartphone and I wonder if it has how…
-
0
votes1
answer161
viewsHow to install a package manually in an React Native project?
I need to install a package in my React Native project, but when using the npm command for installation: npm install react-native-threatmetrix --save I get the following error in response: npm ERR!…
-
0
votes1
answer429
viewsReact Native application performance built with Expo
I am developing a mobile application using React Native through the Expo but I have been finding a small "problem". I use my physical device (android) to carry out the tests through the Expo…
-
0
votes0
answers168
viewsImage in Drawer updating several times
I’m building an application with React Native and React Navigation, I’ve made all the settings and it’s working, however, when Drawer is triggered the image is updated multiple times without causing…
-
0
votes2
answers1102
viewsonPress does not call method in React Native
I have a TouchableOpacity that when touching does not call the method alert() in React Native, follow my code: var data = []; export default class VerOs extends React.Component { constructor(props)…
react-nativeasked 5 years, 7 months ago Emerson Barcellos 954 -
0
votes1
answer31
viewssetState outside the constructor
Devs, I created a clock that updates the state every second but I have the following question, someone could explain to me why setInterval works correctly only if it is inside the constructor? class…
react-nativeasked 4 years, 6 months ago eddev13 1 -
0
votes2
answers195
viewsMy application in React of page error not found if I type the url
Hello when I type the second url on my site Route works leading to requested page, but when I did build hospedei and repeated the same procedure the same does not work giving page not found anyone…
-
0
votes1
answer61
viewsHow do I access the iddoFeed and get all data independent of the logged in user
firebase.database().ref('feeds').once('value').then((snapshot) => { let feeds = [] snapshot.forEach((childItem) => { feeds.push({ key: childItem.key, id: childItem.val().id, id_user:…
-
0
votes1
answer511
viewsHow popular a Database Data Picker (Firebase) - React Native
I’m trying to popular this Picker with BD data (for when the person wants to delete, she choose by title), but it n fills in, and I don’t know if I’m doing it right. thanks for the help! :) export…
-
0
votes2
answers925
viewsHow to change the color of a text according to the state of the object?
How could I change the color of the text according to the state of the object, for example: const pagamento = [ { id: '1', title: '30/05/2020', state: true }, { id: '2', title: '30/06/2040', state:…
-
0
votes2
answers160
viewsError rendering Sectionlist React Native
I am having the following error in React-Native when trying to mount the component being passed from one screen to another. Below is the code to better understand the procedure. Code that searches…
-
0
votes1
answer234
viewsI’m not getting the token with Asyncstorage in React Native
I tried to use async/await and it didn’t work either. So I tried with callback. At first I can see the token with console.log(item), however console.log(token) returns undefined. How can I get the…
-
0
votes1
answer439
viewsHow to Fill In My Fields with Data Selected by Picker and Update Data - React Native
How can I make so that when the "title" of the task is selected through the Picker it fills my other fields belonging to this task and can update my data? thanks for your help ;) export default…
firebase react react-native firebase-database reactive-programmingasked 5 years, 7 months ago Nuck 35 -
0
votes1
answer900
viewsHow to Fill in My Fields through My React-Native and (Firebase) Database
How to Fill my Textinputs through my database so that the User can edit them and insert them again (replacing the old ones) for example:(take my email and password I have in BD and put in these…
-
0
votes4
answers444
viewsNavigatdraweror does not work
I performed the configuration of Drawernavigator on with the React-navigation 3.x, it seems the code is correct, but it just doesn’t work, so I swipe the finger through the screen it just doesn’t…
-
0
votes1
answer41
viewsReact Activate Swiper does not change activeDot
Good afternoon, I am creating a list with Swiper but after rendering it does not change the activeDot var obj = -1 const render = _.map(this.state.arrayFavorites, (itens) => { obj++ return…
-
0
votes2
answers52
viewsDoubt Basic variables Javascript
Good afternoon! I have a beginner’s question and unfortunately I am not able to find a language tutorial (who has a link please put in the answers), I just want to show the contents of variables…
-
0
votes1
answer516
viewsChanging the Checkbox color via Styled-Components
I need to change the color of one CheckBox when it is selected. I am using it as follows: index.js import CheckBox from '@react-native-community/checkbox'; ... <CheckBoxes>…
-
0
votes4
answers580
viewsReturn Asyncstorage value in a constant
I’ve been trying for some time to return an item stored in the Asyncstorage of React Active, but the return is always a Promise, but what I want is to make decisions with this return later, and be…
-
0
votes1
answer538
viewsReact Native - Drawer Navigation Problems Header
I’m new to React Native and I have a problem. I have an APP that uses Drawer to mount the menu. This working ok however I have the following problem. As I have screens that open in different ways, I…
-
0
votes2
answers1146
viewsHow do I pass the value to: "this.props" - React Native
I started studying React Native in version 0.55.4, and it seems to have changed a few things in the most current version (0.59.8), now I’m having difficulty passing/assigning values in the…
-
0
votes1
answer26
viewsError starting Project with React Native
when running the npx command React-Native init App The following error occurs I do not know what is happening, I installed everything right but appears this error.…
-
0
votes1
answer85
viewsHow to create React Native button that redirects to a social networking page
I need to create social network buttons inside my app to redirect to the page in question. Example: By clicking the facebook icon button I will stop at the page in question through the URL by…
react-nativeasked 3 years, 10 months ago Fabio de Andrades 13 -
0
votes1
answer554
viewsDestroy Screen when Navigating the Drawermenu in React Native
I have an application in React Native, and I use the DrawerNavigator as a navigation menu, but when I go from one screen to the other, I would like the previous one to be destroyed. So when I get…
-
0
votes1
answer989
viewsdata storage with Async Storage
Good night. my problem is this, I have a js file that stores a value of a property with Async Storage, and I want to show this value that was stored in another js file. However when I call this…
-
0
votes1
answer293
viewsUse of State and setState React Native
I’m trying to create the variables that will receive the User and Password data,I tried several ways using state and setState, but the way I built my application I’m not getting. Thanks for the help…
-
0
votes0
answers20
viewsReceive information from Google Routes with React Native
I have an application in React Activate with React-Native-google-maps-Directions and I need it to receive information from google routes in real time. For example, "turn right", "turn left". It is…
react react-native google-maps google-maps-android-api-2 bluetoothasked 3 years, 9 months ago Carlos Henrique 1 -
0
votes1
answer50
viewsReact Native - button a js file calling a function or variable in another js file
I need some help here: I have 2 js files: Header/index.js and Main/index.js In Header/index.js there is a button: <TouchableOpacity onPress={() => {}} /> In Main/index.js you have: const…