Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 926f8b2

Browse files
committed
Back out react-native-safe-area-context
This requires linking on native
1 parent 8112708 commit 926f8b2

4 files changed

Lines changed: 9 additions & 100 deletions

File tree

flow-typed/npm/react-native-safe-area-context_vx.x.x.js

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

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"type": "git"
1111
},
1212
"dependencies": {
13-
"invariant": "^2.2.2",
14-
"react-native-safe-area-context": "^0.3.6"
13+
"invariant": "^2.2.2"
1514
},
1615
"devDependencies": {
1716
"flow-bin": "^0.108.0",
@@ -23,7 +22,6 @@
2322
],
2423
"peerDependencies": {
2524
"react": "*",
26-
"react-native-safe-area-context": "*",
2725
"react-navigation": "*",
2826
"redux": "*"
2927
}

src/create-redux-container.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import type {
1010
} from 'react-navigation';
1111

1212
import * as React from 'react';
13-
import { SafeAreaProvider } from 'react-native-safe-area-context';
1413
import { ThemeProvider, NavigationProvider } from 'react-navigation';
1514

1615
import {
@@ -89,16 +88,14 @@ function createReduxContainer<
8988
this.getCurrentNavigation,
9089
);
9190
return (
92-
<SafeAreaProvider>
93-
<ThemeProvider value={this.theme}>
94-
<NavigationProvider value={this.currentNavProp}>
95-
<Navigator
96-
{...props}
97-
navigation={this.currentNavProp}
98-
/>
99-
</NavigationProvider>
100-
</ThemeProvider>
101-
</SafeAreaProvider>
91+
<ThemeProvider value={this.theme}>
92+
<NavigationProvider value={this.currentNavProp}>
93+
<Navigator
94+
{...props}
95+
navigation={this.currentNavProp}
96+
/>
97+
</NavigationProvider>
98+
</ThemeProvider>
10299
);
103100
}
104101

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ prop-types@^15.6.0:
105105
loose-envify "^1.3.1"
106106
object-assign "^4.1.1"
107107

108-
react-native-safe-area-context@^0.3.6:
109-
version "0.3.6"
110-
resolved "https://registry.yarnpkg.com/react-native-safe-area-context/-/react-native-safe-area-context-0.3.6.tgz#666bf581b59aa49a9685aea4e76dfd6e1c8a8a52"
111-
integrity sha512-5wlaJplOlWxBNnjmCtY/FAlsgRDuoKzmLQzbWUw4NDuOa3H2uq1kTdqTWOw78Nzm5FRqGWe1ZSLWU9+nSaN+vA==
112-
113108
react@^16.4.0:
114109
version "16.4.0"
115110
resolved "https://registry.yarnpkg.com/react/-/react-16.4.0.tgz#402c2db83335336fba1962c08b98c6272617d585"

0 commit comments

Comments
 (0)