We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92123fb commit 79fd31eCopy full SHA for 79fd31e
.gitignore
@@ -2,3 +2,4 @@ node_modules
2
npm-debug.log
3
coverage
4
target
5
+.expo
__mocks__/react-native.js
@@ -49,6 +49,10 @@ const Platform = {
49
const PixelRatio = {
50
roundToNearestPixel: n => n,
51
}
52
+const BackHandler = {
53
+ addEventListener: jest.fn(),
54
+ removeEventListener: jest.fn(),
55
+}
56
57
ReactNative.View = View;
58
ReactNative.ScrollView = ScrollView;
@@ -65,5 +69,6 @@ ReactNative.Animated = Animated;
65
69
ReactNative.I18nManager = I18nManager;
66
70
ReactNative.Platform = Platform;
67
71
ReactNative.PixelRatio = PixelRatio;
72
+ReactNative.BackHandler = BackHandler;
68
73
74
module.exports = ReactNative;
0 commit comments