forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Spec for DatePickerAndroid (facebook#24916)
Summary: This PR solves part of this issue: facebook#24875 ## Changelog [General] [Added] - TM Spec for DatePickerAndroid Pull Request resolved: facebook#24916 Reviewed By: RSNara Differential Revision: D15425864 Pulled By: fkgozali fbshipit-source-id: 964412d9d8daedfe265cf277f9fe5896856e47f8
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
20 changes: 20 additions & 0 deletions
20
Libraries/Components/DatePickerAndroid/NativeDatePickerAndroid.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
|
||
'use strict'; | ||
|
||
import type {TurboModule} from 'RCTExport'; | ||
import * as TurboModuleRegistry from 'TurboModuleRegistry'; | ||
|
||
export interface Spec extends TurboModule { | ||
+open: (options: Object) => Promise<Object>; | ||
} | ||
|
||
export default TurboModuleRegistry.getEnforcing<Spec>('DatePickerAndroid'); |