Questions tagged as 'react-native'

1
answer

Space at the end of a word

I created an application in react native and it does online searches via POST. It works fine, the point is that some gadgets include a space at the end of words, eg: The user types natação , but the cell phone sends natação_ with...
asked by 28.01.2018 / 14:18
3
answers

Convert string to number

How to convert string into number into rect native? I have a function that receives two parameters of type number (2.6), but when I send them from one screen to another it is received as a string. How do I do the conversion?     
asked by 12.01.2018 / 11:51
1
answer

How to use substring in React Native?

How to use substring in React Native? if (total >= 1000){ const total2 = total.substr(total.lenght - 3, total.lenght); total = total2 + '.' + total.substr(total.lenght - (total.lenght - 1), total.lenght - 3); } Error:...
asked by 05.01.2018 / 05:16
1
answer

How to pass phrases to a variable and then show randomly

Well, I started programming yesterday in React Native and I still do not understand very well how to do things .... I need to pass a series of sentences to multiple variables, each variable a phrase, and then present them in a way random. onPla...
asked by 17.05.2017 / 10:37
2
answers

Return address through geolocation

In the application I'm developing I would like to put a button that when pressed returns the current address where it is. I was able to do the part of the geolocation and I get the current latitude and longitude of the device, and now what do...
asked by 04.10.2017 / 20:29
2
answers

How to identify the size (lenght) of the text with a state

I was trying to do a CPF validation, with a quantity to be entered equal to 11, otherwise a message would appear and the text would be erased. The problem is how to identify the number of lines being typed; I have been trying for a while, as...
asked by 05.12.2018 / 17:34
1
answer

How to use state in a function?

I have the following code: export default class App extends React.Component { constructor(props) { super(props); this.state = { xsemana: '0', meses: '1', minutos: '1', }; } calcula(){ const total = this...
asked by 05.01.2018 / 04:35
1
answer

Create modal window

I'm starting an app: import React, { Component } from 'react'; import { StyleSheet, Text, View, StatusBar } from 'react-native'; import Button from 'react-native-button'; import { Actions } from 'react-native-router-flux'; export def...
asked by 25.09.2017 / 22:48
1
answer

App in react native does not update

Hello. I'm making the app, but the application does not update when I modify the code. It only stays on the standard test screen ... With the message of pressing the "R" twice. I'm using the phone to run the application. During compilation...
asked by 09.08.2017 / 21:10
2
answers

Database - SQLite

I'm developing an application that needs a database, I chose SQLite. How do I create a database with SQLite and React Native? As I am new and I have no experience in SQLite I ask you:     
asked by 25.02.2017 / 04:06