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

Commit b9c30d2

Browse files
authored
Merge pull request #70 from kas/patch-1
Fix #50 (Unable to resolve “./withSafeArea” from “node_modules\react-native-safe-area-view\index.js”)
2 parents 5d7d11c + d0f3c1e commit b9c30d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ const SafeAreaView = withOrientation(SafeView);
365365

366366
export default SafeAreaView;
367367

368-
const withSafeArea = function(forceInset = {}) {
368+
export const withSafeArea = function(forceInset = {}) {
369369
return WrappedComponent => {
370370
class withSafeArea extends Component {
371371
render() {
@@ -380,5 +380,3 @@ const withSafeArea = function(forceInset = {}) {
380380
return hoistStatics(withSafeArea, WrappedComponent);
381381
};
382382
};
383-
384-
export { withSafeArea };

0 commit comments

Comments
 (0)