JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 202
  • Score
    100M100P100Q82455F
  • License MIT

A react-native TextInput component easy to customize for both iOS and Android.

Package Exports

  • react-native-element-textinput

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-element-textinput) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-element-textinput

react-native-element-textinput A react-native TextInput component easy to customize for both iOS and Android.

Getting started

    npm install react-native-element-textinput --save

or

    yarn add react-native-element-textinput

Props

Props Params isRequire default
containerStyle ViewStyle No
label String No
labelStyle TextStyle No
inputStyle TextStyle No
textError String No
textErrorStyle TextStyle No
showIcon Boolean No
iconStyle ImageStyle No
numeric Boolean No
fontFamily String No
renderLeftIcon () => JSX.Element No
renderRightIcon () => JSX.Element No

Usage

    import React from 'react';
    import {StyleSheet, View, SafeAreaView} from 'react-native';
    import {TextInput} from 'react-native-element-textinput';

    const TextInputScreen = _props => {
        return (
            <SafeAreaView style={{flex: 1}}>
                <View style={styles.container}>
                    <TextInput
                    style={{marginTop: 20}}
                    containerStyle={styles.textinput}
                    label="Normal"
                    placeholder="Placeholder"
                    placeholderTextColor="gray"
                    onChangeText={text => {
                        console.log(text);
                    }}
                    textError="Please enter"
                    />
                </View>
            </SafeAreaView>
        );
    };

    export default TextInputScreen;

    const styles = StyleSheet.create({
        container: {
            flex: 1,
            padding: 20,
        },
        textinput: {
            borderBottomWidth: 0.5,
            borderBottomColor: 'gray',
        },
    });

Suggested Packages