klazbaba / react-native-form-component Goto Github PK
View Code? Open in Web Editor NEWA customizable form component for react-native. It handles basic validation of input, and also alerts the user of failed validations.
License: MIT License
A customizable form component for react-native. It handles basic validation of input, and also alerts the user of failed validations.
License: MIT License
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]
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
is there any doc of how to customize it ?
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" />
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'.
Best regards,
fyv
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}
/>
When I make a form, every time I see the Submit button(red) . Is it right?? I want to erase this thing... Is there any solution??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.