Browse Source

Export SafeAreaContext for use with contextType (#3)

Brent Vatne 5 years ago
parent
commit
fe17cd0143
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/index.tsx

+ 1
- 1
src/index.tsx View File

3
 import { EdgeInsets, InsetChangedEvent } from './SafeArea.types';
3
 import { EdgeInsets, InsetChangedEvent } from './SafeArea.types';
4
 import NativeSafeAreaView from './NativeSafeAreaView';
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
 export interface SafeAreaViewProps {
8
 export interface SafeAreaViewProps {
9
   children?: React.ReactNode;
9
   children?: React.ReactNode;