diff --git a/src/components/Form.tsx b/src/components/Form.tsx index 377e7548..d99be890 100644 --- a/src/components/Form.tsx +++ b/src/components/Form.tsx @@ -5,6 +5,7 @@ import { StyleProp, ViewStyle, InputAccessoryView, + ScrollView, } from "react-native"; import { View, Item, Text, Label, Icon } from "native-base"; import { blixtTheme } from "../native-base-theme/variables/commonColor"; @@ -44,37 +45,39 @@ export default function Form({ behavior={"padding"} keyboardVerticalOffset={77} > - - {items.map(({ key, title, component, success, active }, i) => - active ?? true ? ( - 0 ? 16 : 8, - }} - success={success} - > - - {component} - - ) : null, - )} - {noticeText && ( - - {noticeIcon == "info" && ( - - )} - {noticeText} - - )} - + + {component} + + ) : null, + )} + {noticeText && ( + + {noticeIcon == "info" && ( + + )} + {noticeText} + + )} + + <> {buttons.map((button, i) => { @@ -103,6 +106,9 @@ const styles = StyleSheet.create({ display: "flex", justifyContent: "space-between", }, + scrollContent: { + flexGrow: 1, + }, itemContainer: { padding: 16, }, @@ -110,9 +116,6 @@ const styles = StyleSheet.create({ width: 105, }, buttonContainer: { - // position: "absolute", - // width: "100%", - // bottom: 0, marginHorizontal: 2, marginBottom: 10, },