import React, { Component } from 'react'
import { Platform, StyleSheet, Text } from 'react-native'
import CardStackStyleInterpolator from 'react-navigation/src/views/StackView/StackViewStyleInterpolator'
import {
Scene,
Router,
Actions,
Reducer,
ActionConst,
<ValidatePinModal
onSubmit={(code) => this.onSubmit(code)}
// ref='ValidatePinModal'
ref={ref => {this.ValidatePinModal = ref}}
/>
must has onOpen() func
import PropTypes from 'prop-types'
import {Platform, StyleSheet, View, Text, Modal, NetInfo, TouchableWithoutFeedback} from 'react-native'
import Colors from '../../themes/Colors'
import I18n from 'react-native-i18n'
class NetState extends Component {
static propTypes = {
message: PropTypes.string,
closeOnTouch: PropTypes.bool
}
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Để 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)