Skip to content

Latest commit

 

History

History

react-native-webview

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

React Native WebView + Sensors test

This is an example on how to load a page using React Native WebView, read data from accelerometer using React Native Sensors and sending data between the native app (Android) and the web page.

web

See web README.md file.

native

See native README.md file.

Change the uri variable on App.js to your local address (in the future will use environment variables to control this):

const uri = 'http://192.168.0.1:3000';

If starting a new project, you can install RNWebView and RNSensors running the following:

$ npm install --save react-native-webview
$ npm install --save react-native-sensors
$ npx react-native link react-native-sensors