mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Upgrade fbsource/xplat/js to Flow v0.53.0
Reviewed By: avikchaudhuri Differential Revision: D5648819 Ninja: T20988071 fbshipit-source-id: 66e5b6747c79ae66b6eb69d40ede5e982c26174f
This commit is contained in:
committed by
Facebook Github Bot
parent
1ce7e4c1e5
commit
90eaeb019b
@@ -30,7 +30,7 @@ exports.framework = 'React';
|
||||
exports.title = '<Modal>';
|
||||
exports.description = 'Component for presenting modal views.';
|
||||
|
||||
class Button extends React.Component {
|
||||
class Button extends React.Component<$FlowFixMeProps, $FlowFixMeState> {
|
||||
state = {
|
||||
active: false,
|
||||
};
|
||||
@@ -52,9 +52,6 @@ class Button extends React.Component {
|
||||
onHideUnderlay={this._onUnhighlight}
|
||||
onPress={this.props.onPress}
|
||||
onShowUnderlay={this._onHighlight}
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb) This comment suppresses an
|
||||
* error found when Flow v0.53 was deployed. To see the error delete
|
||||
* this comment and run Flow. */
|
||||
style={[styles.button, this.props.style]}
|
||||
underlayColor="#a9d9d4">
|
||||
<Text style={[styles.buttonText, colorStyle]}>{this.props.children}</Text>
|
||||
@@ -72,7 +69,7 @@ const supportedOrientationsPickerValues = [
|
||||
[],
|
||||
];
|
||||
|
||||
class ModalExample extends React.Component {
|
||||
class ModalExample extends React.Component<{}, $FlowFixMeState> {
|
||||
state = {
|
||||
animationType: 'none',
|
||||
modalVisible: false,
|
||||
|
||||
Reference in New Issue
Block a user