mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-18 08:20:38 +08:00
0.87.0 in xplat/js
Summary: allow-large-files Reviewed By: samwgoldman Differential Revision: D13230018 fbshipit-source-id: f07e2371a3b7382de0592cc7c7b20e7f4faa6889
This commit is contained in:
committed by
Facebook Github Bot
parent
585f7b916d
commit
ef2084c6bd
@@ -231,6 +231,9 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
|
||||
return (
|
||||
<AndroidDrawerLayout
|
||||
{...props}
|
||||
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
|
||||
* suppresses an error found when Flow v0.87 was deployed. To see the
|
||||
* error, delete this comment and run Flow. */
|
||||
ref={this._nativeRef}
|
||||
drawerWidth={this.props.drawerWidth}
|
||||
drawerPosition={this.props.drawerPosition}
|
||||
@@ -322,18 +325,30 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
|
||||
* Native methods
|
||||
*/
|
||||
blur() {
|
||||
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
|
||||
* suppresses an error found when Flow v0.87 was deployed. To see the
|
||||
* error, delete this comment and run Flow. */
|
||||
nullthrows(this._nativeRef.current).blur();
|
||||
}
|
||||
|
||||
focus() {
|
||||
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
|
||||
* suppresses an error found when Flow v0.87 was deployed. To see the
|
||||
* error, delete this comment and run Flow. */
|
||||
nullthrows(this._nativeRef.current).focus();
|
||||
}
|
||||
|
||||
measure(callback: MeasureOnSuccessCallback) {
|
||||
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
|
||||
* suppresses an error found when Flow v0.87 was deployed. To see the
|
||||
* error, delete this comment and run Flow. */
|
||||
nullthrows(this._nativeRef.current).measure(callback);
|
||||
}
|
||||
|
||||
measureInWindow(callback: MeasureInWindowOnSuccessCallback) {
|
||||
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
|
||||
* suppresses an error found when Flow v0.87 was deployed. To see the
|
||||
* error, delete this comment and run Flow. */
|
||||
nullthrows(this._nativeRef.current).measureInWindow(callback);
|
||||
}
|
||||
|
||||
@@ -342,6 +357,9 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
|
||||
onSuccess: MeasureLayoutOnSuccessCallback,
|
||||
onFail?: () => void,
|
||||
) {
|
||||
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
|
||||
* suppresses an error found when Flow v0.87 was deployed. To see the
|
||||
* error, delete this comment and run Flow. */
|
||||
nullthrows(this._nativeRef.current).measureLayout(
|
||||
relativeToNativeNode,
|
||||
onSuccess,
|
||||
@@ -350,6 +368,9 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
setNativeProps(nativeProps: Object) {
|
||||
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
|
||||
* suppresses an error found when Flow v0.87 was deployed. To see the
|
||||
* error, delete this comment and run Flow. */
|
||||
nullthrows(this._nativeRef.current).setNativeProps(nativeProps);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user