Gathering detailed insights and metrics for react-native-element-textinput
Gathering detailed insights and metrics for react-native-element-textinput
Gathering detailed insights and metrics for react-native-element-textinput
Gathering detailed insights and metrics for react-native-element-textinput
npm install react-native-element-textinput
Typescript
Module System
Node Version
NPM Version
44
Supply Chain
59.1
Quality
67
Maintenance
50
Vulnerability
93.6
License
TypeScript (93.08%)
JavaScript (6.56%)
Shell (0.36%)
Total Downloads
32,270
Last Day
17
Last Week
159
Last Month
962
Last Year
10,680
56 Stars
62 Commits
13 Forks
2 Watching
1 Branches
1 Contributors
Latest Version
2.2.0
Package Id
react-native-element-textinput@2.2.0
Unpacked Size
243.28 kB
Size
33.87 kB
File Count
96
NPM Version
9.2.0
Node Version
19.4.0
Publised On
18 Jan 2023
Cumulative downloads
Total Downloads
Last day
-65.3%
17
Compared to previous day
Last week
-49.5%
159
Compared to previous week
Last month
-24.5%
962
Compared to previous month
Last year
-12.1%
10,680
Compared to previous year
1
2
19
A react-native TextInput, TagsInput and AutoComplete component easy to customize for both iOS and Android.
1 npm install react-native-element-textinput --save
or
1 yarn add react-native-element-textinput
Props | Params | isRequire | default |
---|---|---|---|
mode | default or numeric or password | No | Switch mode textinput |
style | ViewStyle | No | Styling for container view |
label | String | No | Label for textinput |
labelStyle | TextStyle | No | Styling for label text |
placeholderStyle | TextStyle | No | Styling for placeholderStyle text |
inputStyle | TextStyle | No | Styling for input view |
textError | String | No | Text error |
textErrorStyle | TextStyle | No | Styling for text error |
showIcon | Boolean | No | Show or hide icon clear text |
iconStyle | ImageStyle | No | Styling for icon clear text |
focusColor | String | No | Color when focus to textinput |
fontFamily | String | No | Customize font style |
renderLeftIcon | () => JSX.Element | No | Customize left icon for textinput |
renderRightIcon | () => JSX.Element | No | Customize right icon for textinput |
Props | Params | isRequire | default |
---|---|---|---|
style | ViewStyle | No | Styling for container view |
label | String | No | Label for textinput |
labelStyle | TextStyle | No | Styling for label text |
placeholderStyle | TextStyle | No | Styling for placeholderStyle text |
inputStyle | TextStyle | No | Styling for input view |
textError | String | No | Text error |
textErrorStyle | TextStyle | No | Styling for text error |
showIcon | Boolean | No | Show or hide icon clear text |
iconStyle | ImageStyle | No | Styling for icon clear text |
focusColor | String | No | Color when focus to textinput |
fontFamily | String | No | Customize font style |
renderLeftIcon | () => JSX.Element | No | Customize left icon for textinput |
renderRightIcon | () => JSX.Element | No | Customize right icon for textinput |
data | String[] | No | Data is a plain array |
hashtagStyle | ViewStyle | No | Styling for hashtash container view |
hashtagTextStyle | TextStyle | No | Styling for hashtag text |
onChangeValue | (string[]) => void | No | Callback that is called when submit value |
renderHashtagItem | (item, unSelect?: () => void) => JSX.Element | No | Takes an item from data and renders it into the list selected |
Props | Params | isRequire | default |
---|---|---|---|
style | ViewStyle | No | Styling for container view |
label | String | No | Label for textinput |
labelStyle | TextStyle | No | Styling for label text |
placeholderStyle | TextStyle | No | Styling for placeholderStyle text |
inputStyle | TextStyle | No | Styling for input view |
textError | String | No | Text error |
textErrorStyle | TextStyle | No | Styling for text error |
showIcon | Boolean | No | Show or hide icon clear text |
iconStyle | ImageStyle | No | Styling for icon clear text |
focusColor | String | No | Color when focus to textinput |
fontFamily | String | No | Customize font style |
renderLeftIcon | () => JSX.Element | No | Customize left icon for textinput |
renderRightIcon | () => JSX.Element | No | Customize right icon for textinput |
data | String[] | No | Data is a plain array |
tagsStyle | ViewStyle | No | Styling for hashtash container view |
tagsTextStyle | TextStyle | No | Styling for hashtag text |
onChangeValue | (string[]) => void | No | Callback that is called when submit value |
renderTagsItem | (item, unSelect?: () => void) => JSX.Element | No | Takes an item from data and renders it into the list selected |
Props | Params | isRequire | default |
---|---|---|---|
data | String[] | No | Data is a plain array |
style | ViewStyle | No | Styling for container view |
label | String | No | Label for textinput |
labelStyle | TextStyle | No | Styling for label text |
placeholderStyle | TextStyle | No | Styling for placeholderStyle text |
inputStyle | TextStyle | No | Styling for input view |
textError | String | No | Text error |
textErrorStyle | TextStyle | No | Styling for text error |
showIcon | Boolean | No | Show or hide icon clear text |
iconStyle | ImageStyle | No | Styling for icon clear text |
focusColor | String | No | Color when focus to textinput |
fontFamily | String | No | Customize font style |
renderLeftIcon | () => JSX.Element | No | Customize left icon for textinput |
renderRightIcon | () => JSX.Element | No | Customize right icon for textinput |
renderItem | (item:string) => JSX.Element | No | Takes an item from data and renders it into the list |
1 import React, { useState } from 'react'; 2 import { StyleSheet, View } from 'react-native'; 3 import { TextInput } from 'react-native-element-textinput'; 4 5 const TextInputComponent = () => { 6 const [value, setValue] = useState(''); 7 8 return ( 9 <View style={styles.container}> 10 <TextInput 11 value={value} 12 style={styles.input} 13 inputStyle={styles.inputStyle} 14 labelStyle={styles.labelStyle} 15 placeholderStyle={styles.placeholderStyle} 16 textErrorStyle={styles.textErrorStyle} 17 label="TextInput" 18 placeholder="Placeholder" 19 placeholderTextColor="gray" 20 focusColor="blue" 21 onChangeText={text => { 22 setValue(text); 23 }} 24 /> 25 </View> 26 ); 27 }; 28 29 export default TextInputComponent; 30 31 const styles = StyleSheet.create({ 32 container: { 33 padding: 16, 34 }, 35 input: { 36 height: 55, 37 paddingHorizontal: 12, 38 borderRadius: 8, 39 borderWidth: 0.5, 40 borderColor: '#DDDDDD', 41 }, 42 inputStyle: { fontSize: 16 }, 43 labelStyle: { 44 fontSize: 14, 45 position: 'absolute', 46 top: -10, 47 backgroundColor: 'white', 48 paddingHorizontal: 4, 49 marginLeft: -4, 50 }, 51 placeholderStyle: { fontSize: 16 }, 52 textErrorStyle: { fontSize: 16 }, 53 });
1 import React, { useState } from 'react'; 2 import { StyleSheet, View } from 'react-native'; 3 import { TextInput } from 'react-native-element-textinput'; 4 5 const TextInputComponent = () => { 6 const [value, setValue] = useState(''); 7 8 return ( 9 <View style={styles.container}> 10 <TextInput 11 value={value} 12 style={styles.input} 13 inputStyle={styles.inputStyle} 14 labelStyle={styles.labelStyle} 15 placeholderStyle={styles.placeholderStyle} 16 textErrorStyle={styles.textErrorStyle} 17 label="TextInput" 18 placeholder="Placeholder" 19 placeholderTextColor="gray" 20 onChangeText={text => { 21 setValue(text); 22 }} 23 /> 24 </View> 25 ); 26 }; 27 28 export default TextInputComponent; 29 30 const styles = StyleSheet.create({ 31 container: { 32 padding: 16, 33 }, 34 input: { 35 height: 55, 36 paddingHorizontal: 12, 37 borderRadius: 8, 38 backgroundColor: 'white', 39 shadowColor: '#000', 40 shadowOffset: { 41 width: 0, 42 height: 1, 43 }, 44 shadowOpacity: 0.2, 45 shadowRadius: 1.41, 46 elevation: 2, 47 }, 48 inputStyle: { fontSize: 16 }, 49 labelStyle: { fontSize: 14 }, 50 placeholderStyle: { fontSize: 16 }, 51 textErrorStyle: { fontSize: 16 }, 52 });
1 import React, { useState } from 'react'; 2 import { StyleSheet, View } from 'react-native'; 3 import { TextInput } from 'react-native-element-textinput'; 4 5 const TextInputComponent = () => { 6 const [value, setValue] = useState(''); 7 8 return ( 9 <View style={styles.container}> 10 <TextInput 11 mode="password" 12 value={value} 13 style={styles.input} 14 inputStyle={styles.inputStyle} 15 labelStyle={styles.labelStyle} 16 placeholderStyle={styles.placeholderStyle} 17 textErrorStyle={styles.textErrorStyle} 18 label="Password" 19 placeholder="Placeholder" 20 placeholderTextColor="gray" 21 onChangeText={text => { 22 setValue(text); 23 }} 24 /> 25 </View> 26 ); 27 }; 28 29 export default TextInputComponent; 30 31 const styles = StyleSheet.create({ 32 container: { 33 padding: 16, 34 }, 35 input: { 36 height: 55, 37 paddingHorizontal: 12, 38 borderRadius: 8, 39 backgroundColor: 'white', 40 shadowColor: '#000', 41 shadowOffset: { 42 width: 0, 43 height: 1, 44 }, 45 shadowOpacity: 0.2, 46 shadowRadius: 1.41, 47 elevation: 2, 48 }, 49 inputStyle: { fontSize: 16 }, 50 labelStyle: { fontSize: 14 }, 51 placeholderStyle: { fontSize: 16 }, 52 textErrorStyle: { fontSize: 16 }, 53 });
1 import React, { useState } from 'react'; 2 import { StyleSheet, View } from 'react-native'; 3 import { HashtagInput } from 'react-native-element-textinput'; 4 5 const TextInputComponent = () => { 6 const [value, setValue] = useState<string[]>([]); 7 8 return ( 9 <View style={styles.container}> 10 <HashtagInput 11 data={value} 12 style={styles.input} 13 inputStyle={styles.inputStyle} 14 labelStyle={styles.labelStyle} 15 placeholderStyle={styles.placeholderStyle} 16 textErrorStyle={styles.textErrorStyle} 17 hashtagStyle={styles.hashtagStyle} 18 hashtagTextStyle={styles.hashtagTextStyle} 19 placeholder="Hashtag..." 20 placeholderTextColor="gray" 21 onChangeValue={value => { 22 setValue(value); 23 }} 24 /> 25 </View> 26 ); 27 }; 28 29 export default TextInputComponent; 30 31 const styles = StyleSheet.create({ 32 container: { 33 padding: 16, 34 }, 35 input: { 36 height: 55, 37 paddingHorizontal: 12, 38 borderRadius: 8, 39 backgroundColor: 'white', 40 shadowColor: '#000', 41 shadowOffset: { 42 width: 0, 43 height: 1, 44 }, 45 shadowOpacity: 0.2, 46 shadowRadius: 1.41, 47 elevation: 2, 48 }, 49 inputStyle: { fontSize: 16 }, 50 labelStyle: { fontSize: 14 }, 51 placeholderStyle: { fontSize: 16 }, 52 textErrorStyle: { fontSize: 16 }, 53 hashtagStyle: { 54 borderWidth: 0, 55 borderRadius: 16, 56 padding: 8, 57 backgroundColor: 'white', 58 shadowColor: '#000', 59 shadowOffset: { 60 width: 0, 61 height: 1, 62 }, 63 shadowOpacity: 0.2, 64 shadowRadius: 1.41, 65 elevation: 2, 66 }, 67 hashtagTextStyle: { 68 fontSize: 16, 69 }, 70 });
1 import React, { useState } from 'react'; 2 import { StyleSheet, View } from 'react-native'; 3 import { TagsInput } from 'react-native-element-textinput'; 4 5 const TextInputComponent = () => { 6 const [value, setValue] = useState([]); 7 8 return ( 9 <View style={styles.container}> 10 <TagsInput 11 data={value} 12 style={styles.input} 13 inputStyle={styles.inputStyle} 14 labelStyle={styles.labelStyle} 15 placeholderStyle={styles.placeholderStyle} 16 textErrorStyle={styles.textErrorStyle} 17 tagsStyle={styles.tagsStyle} 18 tagsTextStyle={styles.tagsTextStyle} 19 label="TagsInput" 20 placeholder="Tags..." 21 placeholderTextColor="gray" 22 onChangeValue={value => { 23 setValue(value); 24 }} 25 /> 26 </View> 27 ); 28 }; 29 30 export default TextInputComponent; 31 32 const styles = StyleSheet.create({ 33 container: { 34 padding: 16, 35 }, 36 input: { 37 paddingHorizontal: 12, 38 borderRadius: 8, 39 backgroundColor: 'white', 40 shadowColor: '#000', 41 shadowOffset: { 42 width: 0, 43 height: 1, 44 }, 45 shadowOpacity: 0.2, 46 shadowRadius: 1.41, 47 elevation: 2, 48 }, 49 inputStyle: { 50 fontSize: 16, 51 minWidth: 80, 52 }, 53 labelStyle: { 54 fontSize: 14, 55 position: 'absolute', 56 top: -10, 57 backgroundColor: 'white', 58 paddingHorizontal: 4, 59 marginLeft: -4, 60 }, 61 placeholderStyle: { fontSize: 16 }, 62 textErrorStyle: { fontSize: 16 }, 63 tagsStyle: { 64 borderWidth: 0, 65 borderRadius: 16, 66 padding: 8, 67 backgroundColor: 'white', 68 shadowColor: '#000', 69 shadowOffset: { 70 width: 0, 71 height: 1, 72 }, 73 shadowOpacity: 0.2, 74 shadowRadius: 1.41, 75 elevation: 2, 76 }, 77 tagsTextStyle: { 78 fontSize: 16, 79 }, 80 });
1 import React, { useState } from 'react'; 2 import { StyleSheet, View } from 'react-native'; 3 import { AutoComplete } from 'react-native-element-textinput'; 4 5 const TextInputComponent = () => { 6 const [value, setValue] = useState(''); 7 8 return ( 9 <View style={styles.container}> 10 <AutoComplete 11 value={value} 12 data={['hello', 'how are you', 'complete']} 13 style={styles.input} 14 inputStyle={styles.inputStyle} 15 labelStyle={styles.labelStyle} 16 placeholderStyle={styles.placeholderStyle} 17 textErrorStyle={styles.textErrorStyle} 18 label="Auto Complete" 19 placeholder="Placeholder..." 20 placeholderTextColor="gray" 21 onChangeText={e => { 22 setValue(e); 23 }} 24 /> 25 </View> 26 ); 27 }; 28 29 export default TextInputComponent; 30 31 const styles = StyleSheet.create({ 32 container: { 33 padding: 16, 34 }, 35 input: { 36 height: 55, 37 paddingHorizontal: 12, 38 borderRadius: 8, 39 backgroundColor: 'white', 40 shadowColor: '#000', 41 shadowOffset: { 42 width: 0, 43 height: 1, 44 }, 45 shadowOpacity: 0.2, 46 shadowRadius: 1.41, 47 elevation: 2, 48 }, 49 inputStyle: { fontSize: 16 }, 50 labelStyle: { fontSize: 14 }, 51 placeholderStyle: { fontSize: 16 }, 52 textErrorStyle: { fontSize: 16 }, 53 });
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
94 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More