Coder Social home page Coder Social logo

klazbaba / react-native-form-component Goto Github PK

View Code? Open in Web Editor NEW
57.0 57.0 5.0 1.77 MB

A customizable form component for react-native. It handles basic validation of input, and also alerts the user of failed validations.

License: MIT License

JavaScript 26.63% TypeScript 73.37%
android declarative form ios modal otp picker pin react-native react-native-web validation web

react-native-form-component's People

Contributors

klazbaba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-form-component's Issues

Change red border on error

Hi,
ho can i change red border on error?

I see it creates a wrapper around FormItem, which is not very helpful. It would be nice to have these styles as a parameter.

React.createElement(View, {
    style: [styles.wrapper, props.textArea ? {
      height: 120
    } : undefined, props.style, hasError.status ? {
      borderColor: colors.red,
      borderWidth: 1
    } : undefined]

Will there be any support for file upload ?

I have just started using this lib. It works perfect and saves your from manual work. I was wondering if there will be any file upload component?. It is very much required.
Thankyou

Problem with props autoFocus in PinInput

When i'm set autoFocus to true it automatically choose the last character of the pin code which i expected is the first character
Here is my code:
<PinInput numOfInput={pinLength} placeholder="-" placeholderTextColor={'gray'} onChangeText={text => setPin(text)} autoFocus={true} keyboardType="number-pad" />

Two buttons in one Form

Hello
i'd like to have two buttons for one Form, one to patch, another one to delete my content. Unfortunately I can only handle one "button press", and there is no way to put indepedent button for another operation in my render function. Have you an idea how to do a workaround for it?

error:

Unreachable code detected.ts(7027)
Operator '>' cannot be applied to types 'typeof Button' and 'Element'.
image

Best regards,
fyv

Maximum number of characters form input

It looks like there is a maximum number of characters for input fields. When I try to add a token (50+ characters), it is cut off and it is not possible to copy/paste the entire token. How can I make the input size unlimited or custom?

Thanks

                           <FormItem
                               value={token}
                                textInputStyle={tw`w-1 border border-stone-400 rounded p-3 mt--10`}
                                showErrorIcon={true}
                                placeholder="Token"
                                textArea={true}
                                onChangeText={(token) => setToken(token)}
                                asterik
                                ref={tokenInput}
                            />

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.