|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
// screens/moves/MoveFormScreen.tsx
|
|
|
|
|
|
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
import { Button, StyleSheet, Text, TextInput, View } from 'react-native';
|
|
|
|
|
import { Button, StyleSheet, Text, TextInput } from 'react-native';
|
|
|
|
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
|
|
|
import { RootStackParamList } from "../../navigation/navigationTypes";
|
|
|
|
|
import { useDispatch } from 'react-redux';
|
|
|
|
@ -15,6 +15,7 @@ import { ItemValue } from "@react-native-communi
|
|
|
|
|
import { MoveCategoryName } from "../../entities/MoveCategoryName";
|
|
|
|
|
import { TypeName } from "../../entities/TypeName";
|
|
|
|
|
import MultiSelect from "react-native-multiple-select";
|
|
|
|
|
import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
|
|
|
|
|
|
|
|
|
|
type MoveFormScreenNavigationProp = StackNavigationProp<RootStackParamList, typeof MOVE_FORM>;
|
|
|
|
|
type MoveFormScreenRouteProp = RouteProp<RootStackParamList, typeof MOVE_FORM>;
|
|
|
|
@ -67,7 +68,7 @@ const MoveFormScreen = ({ navigation, route }: Props) => {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<View style={styles.container}>
|
|
|
|
|
<KeyboardAwareScrollView style={styles.container}>
|
|
|
|
|
<Text style={styles.label}>Name: </Text>
|
|
|
|
|
<TextInput
|
|
|
|
|
value={move.name}
|
|
|
|
@ -135,7 +136,8 @@ const MoveFormScreen = ({ navigation, route }: Props) => {
|
|
|
|
|
displayKey="name"
|
|
|
|
|
/>
|
|
|
|
|
<Button title="Save" onPress={handleSave}/>
|
|
|
|
|
</View>
|
|
|
|
|
|
|
|
|
|
</KeyboardAwareScrollView>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|