import React from 'react'; import { ScrollView, ScrollViewProps, StyleSheet, View } from 'react-native'; import { themes } from '../constants/colors'; import sharedStyles from '../views/Styles'; import scrollPersistTaps from '../utils/scrollPersistTaps'; import KeyboardView from '../presentation/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;