-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd6cfff
commit 83bbbbd
Showing
8 changed files
with
224 additions
and
458 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { View, StyleSheet } from 'react-native'; | ||
import { Input } from 'react-native-elements'; | ||
|
||
const styles = StyleSheet.create({ | ||
verticallySpaced: { | ||
paddingTop: 4, | ||
paddingBottom: 4, | ||
alignSelf: 'stretch', | ||
}, | ||
}); | ||
|
||
type UserStringInputProps = { | ||
label: string; | ||
value: string; | ||
set: React.Dispatch<React.SetStateAction<string>>; | ||
}; | ||
|
||
function UserStringInput({ label, value, set }: UserStringInputProps) { | ||
return ( | ||
<View style={styles.verticallySpaced}> | ||
<Input | ||
label={label} | ||
value={value || ''} | ||
onChangeText={text => set(text)} | ||
/> | ||
</View> | ||
); | ||
} | ||
|
||
export default UserStringInput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.