blob: d83f6f559bce8e5fb08dedd221f40a9c0064905b (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import * as React from "react"
import { ViewStyle, KeyboardAvoidingView, Platform } from "react-native"
const ROOT: ViewStyle = { backgroundColor: "#f0f0f0", flex: 1 }
export interface StoryScreenProps {
children?: React.ReactNode
}
const behavior = Platform.OS === "ios" ? "padding" : undefined
export const StoryScreen = (props: StoryScreenProps) => (
<KeyboardAvoidingView style={ROOT} behavior={behavior} keyboardVerticalOffset={50}>
{props.children}
</KeyboardAvoidingView>
)
|