Skip to content

Commit 9027e1a

Browse files
Gregoryskevy
authored andcommitted
Fix backAndroid warning (react-navigation#1520)
1 parent 03698c9 commit 9027e1a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/PlatformHelpers.native.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
/* @flow */
22

3-
import { BackAndroid, Linking } from 'react-native';
3+
import {
4+
BackAndroid as DeprecatedBackAndroid,
5+
BackHandler,
6+
Linking,
7+
} from 'react-native';
8+
9+
const BackAndroid = BackHandler || DeprecatedBackAndroid;
410

511
export { BackAndroid, Linking };

0 commit comments

Comments
 (0)