diff --git a/native/account/registration/registration-content-container.react.js b/native/account/registration/registration-content-container.react.js index 9202d349b..979164a3e 100644 --- a/native/account/registration/registration-content-container.react.js +++ b/native/account/registration/registration-content-container.react.js @@ -1,55 +1,53 @@ // @flow import { useHeaderHeight } from '@react-navigation/elements'; import * as React from 'react'; import { ScrollView } from 'react-native'; import KeyboardAvoidingView from '../../components/keyboard-avoiding-view.react.js'; -import { useStyles } from '../../themes/colors.js'; type ViewProps = React.ElementConfig; type Props = { ...ViewProps, +children: React.Node, }; function RegistrationContentContainer(props: Props): React.Node { const { children, style, ...rest } = props; const headerHeight = useHeaderHeight(); const backgroundStyle = React.useMemo( () => ({ marginTop: headerHeight, }), [headerHeight], ); - const styles = useStyles(unboundStyles); const contentContainerStyle = React.useMemo( () => [styles.scrollViewContentContainer, style], - [styles.scrollViewContentContainer, style], + [style], ); return ( {children} ); } -const unboundStyles = { +const styles = { fill: { flex: 1, }, scrollViewContentContainer: { padding: 16, }, }; export default RegistrationContentContainer;