redbadger/pride-london-app

View on GitHub
src/components/KeyboardAvoidingView.ios.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow
import React from "react";
import type { Node } from "react";
import { KeyboardAvoidingView as RnKeyboardAvoidingView } from "react-native";
import type { ViewStyleProp } from "react-native/Libraries/StyleSheet/StyleSheet";

type Props = {
  children: Node,
  style: ViewStyleProp
};

const KeyboardAvoidingView = ({ children, style }: Props) => (
  <RnKeyboardAvoidingView behavior="padding" enabled style={style}>
    {children}
  </RnKeyboardAvoidingView>
);

export default KeyboardAvoidingView;