skolplattformen-backup/apps/skolplattformen-app/__mocks__/react-native-safe-area-cont...

21 lines
438 B
JavaScript

// __mocks__/react-native-safe-area-context.js
import React from 'react'
import { View } from 'react-native'
const inset = {
top: 0,
right: 0,
bottom: 0,
left: 0,
}
export const SafeAreaProvider = ({ children }) => children
export const SafeAreaConsumer = ({ children }) => children(inset)
export const SafeAreaView = ({ children }) => (
<View style={inset}>{children}</View>
)
export const useSafeAreaInsets = () => inset