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
1 answer

ReactJS, Red Screen Unable to download JS Bundle

My generated reactjs native project compiles and starts correclty - almost, because I'm getting a red screen with the following message What is wrong with my configuration?
Łukasz Rzeszotarski
  • 5,791
  • 6
  • 37
  • 68
0
votes
1 answer

Can I assign a value from ReactJS Native to a Swift global variable? If so, how?

Is there any (straightforward) way to assign the value of a Swift global variable (of double_t type) from ReactJS Native JavaScript? Or (scaling back from an XY question) is there any other way to make a (floating-point) Number computed in ReactJS…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
0
votes
0 answers

How can I convert a mixed Objective-C and Swift project using ReactJS Native to replace all (boilerplate) Objective-C with Swift code?

I have a ReactJS Native project and am developing only for iOS now. The initial, basic project has Objective-C classes for development, and I would like to use Swift (partly because Swift and Objective-C interoperate to some degree but I cannot work…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
0
votes
1 answer

How can I initialize low-precision geolocation under React Native for iOS?

My code has, in the React.createClass() call: watchID: (null: ?number), componentDidMount: function() { navigator.geolocation.getCurrentPosition( (initialPosition) => this.setState({initialPosition}), (error) =>…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
0
votes
1 answer

Can React Native app (means same codebase) be turned into mobile web app?

Whether the same REACT codebase can be shared across mobile web and mobile app?
Hari
  • 383
  • 1
  • 3
  • 9
0
votes
2 answers

Variable declaration in reactjs documentation

react.js documentation has following variable declarations: var { Image, StyleSheet, Text, View } = React; Could you tell what does it meant? Thank you.
code1n
  • 136
  • 1
  • 4
0
votes
1 answer

BundleURL error when trying to generate pre-bundled file

When trying to build ios client in react-native, I modified part of AppDelegate.m file as shown below (i.e., replaced option 1 with option 2): // OPTION 1 // Load from development server. Start the server from the repository root: // // $ npm…
Sal
  • 4,312
  • 1
  • 17
  • 26
-1
votes
1 answer

How to use ReactJS components defined in one .js file in a html file

I have defined my reactjs components in my HTML file like the following: