import React from 'react'; import { ScrollView, ScrollViewProps, StyleSheet, View } from 'react-native'; import { themes } from '../lib/constants'; import sharedStyles from '../views/Styles'; import scrollPersistTaps from '../utils/scrollPersistTaps'; import KeyboardView from './KeyboardView'; import { useTheme } from '../theme'; import StatusBar from './StatusBar'; import AppVersion from './AppVersion'; import { isTablet } from '../utils/deviceInfo'; import SafeAreaView from './SafeAreaView'; interface IFormContainer extends ScrollViewProps { testID: string; children: React.ReactElement | React.ReactElement[] | null; } const styles = StyleSheet.create({ scrollView: { minHeight: '100%' } }); export const FormContainerInner = ({ children }: { children: (React.ReactElement | null)[] }) => ( {children} ); const FormContainer = ({ children, testID, ...props }: IFormContainer) => { const { theme } = useTheme(); return ( {children} ); }; export default FormContainer;