-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from souvik-ghosh/2.0.1
2.0.1
- Loading branch information
Showing
30 changed files
with
8,071 additions
and
8,270 deletions.
There are no files selected for viewing
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
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,60 @@ | ||
import React from 'react'; | ||
import { View, Text, TextInput, StyleSheet } from 'react-native'; | ||
|
||
interface InputProps extends React.ComponentPropsWithoutRef<typeof TextInput> { | ||
label: string; | ||
value: string; | ||
placeholder?: string; | ||
onChangeText?: (text: string) => void; | ||
} | ||
|
||
const Input: React.FC<InputProps> = ({ label, value, placeholder, onChangeText }) => { | ||
return ( | ||
<View style={styles.container}> | ||
<Text style={styles.label}>{label}</Text> | ||
<View style={styles.inputContainer}> | ||
<TextInput | ||
style={styles.input} | ||
value={value} | ||
placeholder={placeholder} | ||
keyboardType="numeric" | ||
onChangeText={onChangeText} | ||
/> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
marginBottom: 20, | ||
}, | ||
label: { | ||
fontSize: 16, | ||
color: '#7A7A7A', | ||
marginBottom: 5, | ||
}, | ||
inputContainer: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
backgroundColor: '#ffffff', | ||
borderRadius: 10, | ||
paddingHorizontal: 10, | ||
paddingVertical: 8, | ||
width: '100%', | ||
height: 70, | ||
}, | ||
input: { | ||
flex: 1, | ||
fontSize: 20, | ||
fontWeight: 'bold', | ||
color: '#2E2E2E', | ||
}, | ||
currency: { | ||
fontSize: 16, | ||
color: '#7A7A7A', | ||
marginLeft: 8, | ||
}, | ||
}); | ||
|
||
export default Input; |
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
Oops, something went wrong.