Questions tagged [reactjs-native]

React Native is an open source framework created by Facebook to enable the development of apps for iOS and Android with React delivering the same performance as purely native apps do.

React Native is an open source framework created by Facebook to enable the development of apps for iOS and Android with React delivering the same performance as purely native apps do. The idea behind React Native can be best be captured by the slogan "Learn once, write anywhere", enabling developers to use the same development approach for both desktop/browser and mobile apps.

Technically React Native runs the JavaScript code for a React app in a background thread. Updates to the virtual dom are collected, and all changes are sent through an API into the native portion of the app. By doing this, React Native avoids slowing down the FPS rate of the app by making the app wait for unfinished JavaScript operation.

React Native was announced at React.js Conf 2015, the source code will be made available shortly after the conference. The presentation with the announcement of React Native is available on Youtube.

53 questions
0
votes
3 answers

Why isn't button changing from x to y in react?

I am trying to make a button that toggles between x and y. However, the following code isn't working. Why isn't this working? Sorry if it is an easy solution, I am new to react. Right now, all that is appearing is a button that says X, and when I…
helloworld12345
  • 176
  • 1
  • 4
  • 22
0
votes
1 answer

How to make my Profile name appear on my Dashboard using Firetore collection?

noob question regarding Firestore. I am new to firebase and I am creating a simple app but could not get to show the profile name or any subcollection on my dashboard the only thing showing was the email address. Login and signup has no problem as…
0
votes
1 answer

Invalid use of hooks when calling component with onPress

I'm trying to work with modals when I click on a button from the header. Say I have this component List, and List is using custom navigation options: import { CustomModal } from './components/Modal'; const List = (props) => { const [enteredUrl,…
hellomello
  • 8,219
  • 39
  • 151
  • 297
0
votes
3 answers

React-Native state undefined

I'm using classes for the first time in react-native but for some reason I can not change a state. I checked if it was the API but the API works fine. The bootstrap and everything else works fine to but the this.setState({ name: response.data.name…
Bluetodark
  • 15
  • 8
0
votes
0 answers

Unexpected token '<' Error when installing a module

Note: before you mark the question as duplicate please let me know where the actual answer is. I have gone through 10 different questions but none of them seems to truly address the issue in hand. Hi all, I have installed the module called…
K007
  • 1
  • 1
0
votes
1 answer

How to pass context and props to component in Reactjs

This is my requirement. When a route /xyz (displays xyz Component) is hit on browser, I need to navigate to separate route /abc (displays abc component). I also need to pass new props and context to the target component on navigation. I am looking…
Haritha
  • 1
  • 1
0
votes
2 answers

getting access token after signing up in loopback

Is it possible to get access token immediately after signing up a user in loopback without having to log in the user? If so how do you go about that? Am using loopback 3
0
votes
2 answers

Dynamically create Content React

In my React project, I need to add rows dynamically. I code I use to do it as follows let Para=GetPara(); React.createElement("p", { style: { color: "black" } }, Para[0]), React.createElement("p", { style: { color: "black" } },…
user1339913
  • 1,017
  • 3
  • 15
  • 36
0
votes
1 answer

Getting error wihle settng enviroment for ReactJS in my ubuntu 18.04

I am trying to set environment for ReactJS in my Ubuntu 18.04 and I followed this link instructions. After installation used command 'start npm' (as instructed in the link) in terminal to start but getting this error(see the img). After this I…
0
votes
0 answers

map not rendering content

I have no idea, the map does not render, but the console.log is…
Débora Gonçalves
  • 137
  • 1
  • 2
  • 10
0
votes
1 answer

ReactJs - Pass Parameters to Event handler

I've just started looking basics of ReactJs. Following is my component to show list of buses. What I want exactly is I want to perform edit/delete operations over buses. But not able to pass busId of corresponding bus to my edit/delete…
Fakhar Zaman
  • 71
  • 2
  • 5
0
votes
1 answer

React Native conditionally accepting props

I am making an autocomplete component which does live search. These are its props:
EmreG
  • 135
  • 2
  • 7
0
votes
0 answers

Geo complete for ReactJS

I need longitude and latitude, for that user need to enter their places and then depend on that location I need to take lat and lang. I searched the internet and I found some geo-auto-complete libraries but I'm not able to use them, is there any…
rakcode
  • 2,256
  • 4
  • 19
  • 44
0
votes
1 answer

How to add functions to ReactElement

I'm trying to use an internal Javascript library which is normally used for the web and which contains millions of lines of code (hence why I would really like to use it rather than change anything in it :D) with React Native. This library has some…
Julien Fouilhé
  • 2,583
  • 3
  • 30
  • 56
0
votes
1 answer

What do these two files reactjs and reactDOM do?

Today I'm done with my hello world example with ReactJS, Above two…