create-react-native-app install & using
create-react-native-app error
android navigator.geolocation.getCurrentPosition(succes, error, options)..
componentDidMount() {
var options = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
};
function success(pos) {
var crd = pos.coords;
console.log(pos);
console.log('Your current position is:');
console.log('Latitude : ' + crd.latitude);
console.log('Longitude: ' + crd.longitude);
console.log('More or less ' + crd.accuracy + ' meters.');
};
function error(err) {
console.warn('ERROR(' + err.code + '): ' + err.message);
};
navigator.geolocation.getCurrentPosition(success, error, options);
}
ERROR<E_LOCATION_DISABLED>........
enable using location on your device 장치의 위치정보 확인을 사용 가능하게한다.
The reason why React Native HMR doesn't work with stateless functional components is because it uses react-transform-hmr which doesn't support them (it says so in the README).
React Native will either have to use something like react-hot-loader (which I'm not sure it can since it doesn't use Webpack but could still implement some of its features in the packager) or roll up their own solution that works for stateless functional components.
How to Roll up :)
Device >>settings>>general >>applications>>Expo >> Delete data ( Not a delete application) >>
rerun your react-native project
Module HMRClient is not a registered callable module (calling enable)
packager 또는 컴퓨터를 다시 시작하여 도움이되는지 확인하십시오. 또한 package.json과 app.json이 동일한 sdk를 가리키고 있는지 확인하십시오.
Error: google chrome exited with error error spawn cmd enoent
- Close Expo app of device and react-native project
- Device >>settings>>general >>applications>>Expo >> Delete data ( Not a delete application)
- Open Chrome browser and move localhost:19001/debugger-ui and F12( Don't hide windows state separate window to see)
- Run react-native project on computer and Expo app
- Run your react-native application in Expo app on your device
- Shake a device or use menu
- Tohch Debug JS Remotely
Uncaught Error: 23.0.0 is not a valid sdk version.
Options are 15.0.0 ........ UNVERSIONED Fatal Error
'my_lesson > _NodeJSmongoDB' 카테고리의 다른 글
Django (0) | 2017.12.03 |
---|---|
create-react-app +react-hot-loader 사용하기 (0) | 2017.10.21 |
React +Express + Node JS (0) | 2017.09.13 |
Atom -기본 사용법 shortcuts sftp단축키 필수packages (1) | 2017.09.07 |
Node JS (0) | 2017.08.29 |
댓글