Skip to content

Commit 3d06d19

Browse files
ericvicentibrentvatne
authored andcommitted
clean up PlatformHelpers (react-navigation#4586)
this had previously been required for old versions of react native and react-native-web
1 parent 30ef5ef commit 3d06d19

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

src/PlatformHelpers.native.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/PlatformHelpers.web.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/createNavigationContainer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React from 'react';
2-
import { AsyncStorage, Linking, Platform } from 'react-native';
2+
import { AsyncStorage, Linking, Platform, BackHandler } from 'react-native';
33
import { polyfill } from 'react-lifecycles-compat';
44

5-
import { BackHandler } from './PlatformHelpers';
65
import NavigationActions from './NavigationActions';
76
import getNavigation from './getNavigation';
87
import invariant from './utils/invariant';

src/views/Header/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
View,
1010
I18nManager,
1111
ViewPropTypes,
12+
MaskedViewIOS,
1213
} from 'react-native';
13-
import { MaskedViewIOS } from '../../PlatformHelpers';
1414
import SafeAreaView from 'react-native-safe-area-view';
1515

1616
import HeaderTitle from './HeaderTitle';

0 commit comments

Comments
 (0)