Skip to content

fix(android_imports): added missing '.android' #614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
Expand Down Expand Up @@ -30,6 +28,7 @@ format.bracket_spacing=false
module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js
; module.file_ext=.android.js

munge_underscores=true

Expand Down
2 changes: 1 addition & 1 deletion src/DateTimePickerAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
timeZoneOffsetDateSetter,
validateAndroidProps,
} from './androidUtils';
import pickers from './picker';
import pickers from './picker.android';

function open(props: AndroidNativeProps) {
const {
Expand Down
2 changes: 1 addition & 1 deletion src/androidUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @flow strict-local
*/
import {ANDROID_DISPLAY, ANDROID_MODE, MIN_MS} from './constants';
import pickers from './picker';
import pickers from './picker.android';
import type {AndroidNativeProps, DateTimePickerResult} from './types';
import {sharedPropsValidation} from './utils';
import invariant from 'invariant';
Expand Down
7 changes: 4 additions & 3 deletions src/picker.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
* @format
* @flow strict-local
*/
import DatePickerAndroid from './datepicker';
import TimePickerAndroid from './timepicker';
import DatePickerAndroid from './datepicker.android';
import TimePickerAndroid from './timepicker.android';
import {ANDROID_MODE} from './constants';

const pickers = {
// $FlowFixMe Flow: Unclear type. Using `any`, `Object`, or `Function` types is not safe!
const pickers: any = {
[ANDROID_MODE.date]: DatePickerAndroid,
[ANDROID_MODE.time]: TimePickerAndroid,
};
Expand Down