mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Fix errors uncovered by v0.19.0
Reviewed By: mroch Differential Revision: D2706663 fb-gh-sync-id: 017c91bab849bf18767cacd2ebe32d1a1b10c715
This commit is contained in:
committed by
facebook-github-bot-9
parent
d4d41f9523
commit
892dd5b86a
@@ -74,7 +74,7 @@ type State = {
|
||||
fromIndex: number;
|
||||
toIndex: number;
|
||||
makingNavigatorRequest: boolean;
|
||||
updatingAllIndicesAtOrBeyond: number;
|
||||
updatingAllIndicesAtOrBeyond: ?number;
|
||||
}
|
||||
|
||||
type Event = Object;
|
||||
@@ -592,7 +592,7 @@ var NavigatorIOS = React.createClass({
|
||||
|
||||
_routeToStackItem: function(route: Route, i: number) {
|
||||
var Component = route.component;
|
||||
var shouldUpdateChild = this.state.updatingAllIndicesAtOrBeyond !== null &&
|
||||
var shouldUpdateChild = this.state.updatingAllIndicesAtOrBeyond != null &&
|
||||
this.state.updatingAllIndicesAtOrBeyond >= i;
|
||||
|
||||
return (
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule TabBarItemIOS
|
||||
* @noflow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
|
||||
@@ -335,8 +335,12 @@ var TextInput = React.createClass({
|
||||
*/
|
||||
mixins: [NativeMethodsMixin, TimerMixin],
|
||||
|
||||
viewConfig: ((Platform.OS === 'ios' ? RCTTextField.viewConfig :
|
||||
(Platform.OS === 'android' ? AndroidTextInput.viewConfig : {})) : Object),
|
||||
viewConfig:
|
||||
((Platform.OS === 'ios' && RCTTextField ?
|
||||
RCTTextField.viewConfig :
|
||||
(Platform.OS === 'android' && AndroidTextInput ?
|
||||
AndroidTextInput.viewConfig :
|
||||
{})) : Object),
|
||||
|
||||
isFocused: function(): boolean {
|
||||
return TextInputState.currentlyFocusedField() ===
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule ToastAndroid
|
||||
* @noflow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ type Event = Object;
|
||||
|
||||
type State = {
|
||||
animationID: ?number;
|
||||
scale: Animated.Value;
|
||||
};
|
||||
|
||||
var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule TouchableHighlight
|
||||
* @noflow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @providesModule TouchableOpacity
|
||||
* @noflow
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user