https://github.com/facebookarchive/sublime-react
https://stackoverflow.com/a/45409223
Saat membuat project baru misal "react-native init reactNavigate" lalu terjadi error (gagal install) maka gunakan perintah
npm cache clear --force
npm uninstall --save babel-preset-react-native
npm install --save babel-preset-react-native@2.1.0
- http://www.kodingindonesia.com/tutorial-react-native-bahasa-indonesia/
- https://www.youtube.com/watch?v=OgLaGWBI3Mw&list=PL-Ra8U0JXtVWmizDdKf7WPubFkpdHv6vS
- https://facebook.github.io/react-native/docs/navigation.html
- https://medium.com/@stowball/a-dummys-guide-to-redux-and-thunk-in-react-d8904a7005d3
Semacam session yang pendefinisiannya di dalam class
-> STATIC
this.state ={
nama:'irul'
}
-> DYNAMIC
this.setState({nama:text})
{this.state.nama}
Semacam session yang pendefinisiannya di luar class
<Object_gue nama="joni"/>
{this.props.nama}
Press ⌘+D on iOS simulator, ⌘+M on Android emulator
ref : https://codeburst.io/react-native-debugging-tools-3a24e4e40e4
saat ingin menggunakan genymotion sebagai emulator :
- buka genymotion
- pilih setting -> adb -> use custom android sdk tools -> browse Android SDK nya, contoh : D:/Android/sdk
- pilih start untuk menjalankan emulator
- react-native run-android
- Buka Android Virtual Device/AVD Manager
- pilih salah satu emulator
- edit
- check hardware keyboard present
var add = require('lib').add; //method add class lib
console.log(add(1,2));
import {add} from 'lib';
console.log(add(1,2));
var libku = require('lib');
import libku from 'lib';
1. saat Instansiasi object, awalan nama object harus huruf besar contoh
import Gs from './components/global_state';
harus "Gs" tidak bole "gs"
2. untuk set vertical/horizontal sebuah komponen gunakan flexbox
https://facebook.github.io/react-native/docs/flexbox.html
Rubah Bundle ID dari aplikasi
https://stackoverflow.com/a/44481467
https://www.npmjs.com/package/react-native-rename
Lokasi dari npm global
- C:\Users\Iruel\AppData\Roaming\npm\node_modules
- npm list -g --depth=0