浏览代码

Export SafeAreaContext for use with contextType (#3)

Brent Vatne 5 年前
父节点
当前提交
fe17cd0143
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/index.tsx

+ 1
- 1
src/index.tsx 查看文件

@@ -3,7 +3,7 @@ import { StyleSheet } from 'react-native';
3 3
 import { EdgeInsets, InsetChangedEvent } from './SafeArea.types';
4 4
 import NativeSafeAreaView from './NativeSafeAreaView';
5 5
 
6
-const SafeAreaContext = React.createContext<EdgeInsets | null>(null);
6
+export const SafeAreaContext = React.createContext<EdgeInsets | null>(null);
7 7
 
8 8
 export interface SafeAreaViewProps {
9 9
   children?: React.ReactNode;