Revert "Merge branch 'master' into 0.58-stable"

This reverts commit 696bd89013, reversing
changes made to a525941ab6.
This commit is contained in:
Mike Grabowski
2018-11-22 17:53:44 +01:00
parent 696bd89013
commit b864e7e63e
135 changed files with 1214 additions and 2522 deletions
@@ -5,18 +5,13 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
* @flow
*/
'use strict';
const TimePickerModule = require('NativeModules').TimePickerAndroid;
import type {
TimePickerOptions,
TimePickerResult,
} from './TimePickerAndroidTypes';
/**
* Opens the standard Android time picker dialog.
*
@@ -57,18 +52,22 @@ class TimePickerAndroid {
* still be resolved with action being `TimePickerAndroid.dismissedAction` and all the other keys
* being undefined. **Always** check whether the `action` before reading the values.
*/
static async open(options: TimePickerOptions): Promise<TimePickerResult> {
static async open(options: Object): Promise<Object> {
return TimePickerModule.open(options);
}
/**
* A time has been selected.
*/
static +timeSetAction: 'timeSetAction' = 'timeSetAction';
static get timeSetAction() {
return 'timeSetAction';
}
/**
* The dialog has been dismissed.
*/
static +dismissedAction: 'dismissedAction' = 'dismissedAction';
static get dismissedAction() {
return 'dismissedAction';
}
}
module.exports = TimePickerAndroid;