From c3bed9ba177af1ecd4b14b9739d85c9e8331d7db Mon Sep 17 00:00:00 2001 From: Hope Tambala Date: Tue, 6 Oct 2020 00:28:19 -0400 Subject: [PATCH] feat: change styling of forms view --- .../FormikFields/PaperInputPicker/index.js | 40 +++---------------- .../PaperInputPicker/index.style.js | 29 ++++++++++++++ .../Forms/IdentificationForm/config/config.js | 38 +++++++++--------- package-lock.json | 14 +++---- 4 files changed, 60 insertions(+), 61 deletions(-) diff --git a/components/FormikFields/PaperInputPicker/index.js b/components/FormikFields/PaperInputPicker/index.js index 3306c2e96..1029c4987 100644 --- a/components/FormikFields/PaperInputPicker/index.js +++ b/components/FormikFields/PaperInputPicker/index.js @@ -1,16 +1,18 @@ import * as React from 'react'; import { - View, Text, StyleSheet + View, Text } from 'react-native'; import { - TextInput, Button, Title + TextInput, Button, Headline } from 'react-native-paper'; import AutoFill from './AutoFill'; import HouseholdManager from './HouseholdManager'; import getLocation from '../../../modules/geolocation'; + import { theme, layout } from '../../../modules/theme'; +import styles from './index.style'; const PaperInputPicker = ({ data, formikProps, scrollViewScroll, setScrollViewScroll, ...rest @@ -103,20 +105,9 @@ const PaperInputPicker = ({ /> )} - {fieldType === 'topLabel' && ( - - {label} - - - )} {fieldType === 'header' && ( - - {label} + {label} @@ -127,7 +118,7 @@ const PaperInputPicker = ({ {label} {data.options.map((result) => ( - +