Getting started:
Related tutorials:
Alert.alert( | |
'Qubikal', | |
'Delete Image?', | |
[ | |
{ text: 'No', onPress: () => console.log('Cancel Pressed'), style: 'cancel' }, | |
{ | |
text: 'Yes', | |
onPress: () => { | |
api.setToken(this.props.user.token) | |
api.deleteImage(this.props.image._id).then(response => { |
export class SyncPath { | |
constructor(rootRef, path) { | |
this._rootRef = rootRef; | |
this.user = this._rootRef.getAuth(); | |
this._userDataRef = this._rootRef.child(path).child(this.user.uid); | |
this.data = {}; | |
this._userDataRef.on('value', (snap) => this.data = snap.val() || {}); | |
} | |
keys() { | |
return Object.keys(this.data); |
Getting started:
Related tutorials:
Để release cho google signin phải add mã sha1 release chứ không phải mã sha1 như lúc debug.
Bước 1: tạo my-release-key.keystore
tạo key này như hướng dẫn của bên docs (https://facebook.github.io/react-native/docs/signed-apk-android.html)
thì phải vô đường dẫn này C:\Program Files\Java\jdkx.x.x_x\bin
. (trên windows)
còn trên mac sẽ là /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/keytool
(trên mac)
https://facebook.github.io/react-native/docs/linking-libraries-ios.html | |
https://useyourloaf.com/blog/privacy-settings-in-ios-10/ | |
Privacy - Media Library Usage Description |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
A problem occurred configuring project ':app'. | |
> Could not resolve all dependencies for configuration ':app:_debugApk'. | |
> Configuration with name 'default' not found. | |
* Try: | |
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. |
import PropTypes from 'prop-types' | |
const propTypes = { | |
codeLength: PropTypes.number.isRequired | |
} | |
const defaultProps = { | |
codeLength: 5 | |
} |
<ValidatePinModal
onSubmit={(code) => this.onSubmit(code)}
// ref='ValidatePinModal'
ref={ref => {this.ValidatePinModal = ref}}
/>
must has onOpen() func
in some case, you cant call refs and get error:
undefined is not a function(evaluating'_this.refs.ModalPicker.onOpen()')
to solve this issue.
comment this lines