Field Level Validation not working in android
See original GitHub issuei am using redux-form 6.4.1 for field level validation. i am using my own component in FIELD. it’s working perfectly for IOS bt not working for android.
i got the error
it works good if i remove validation my code is
<Field
name="myname"
validate={[ required ]}
component={myname =>
<View>
<SegmentedControls
options={ product_myname }
selectedIndex={myname.input.value}
extractText={ (option) => option.name }
onSelection={ (value)=>{
myname.input.onChange(value.taste_id);
}}
tint= {StyleCommon.COLOR_GREEN}
selectedTint= {StyleCommon.COLOR_WHITE}
notSelectedTint= {StyleCommon.COLOR_TITLE}
borderColor={StyleCommon.COLOR_BORDER}
/>
<View style={styles.errorCard}>
{ myname.meta.touched && ((myname.meta.error && <Text style={styles.error}>{myname.meta.error}</Text>) )}
</View>
</View>
}/>
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:24 (1 by maintainers)
Top Results From Across the Web
Implement Form Validation (Error to EditText) in Android
When the data filled in the text filed is wrong -> // this gives error message to particular text field // which contains...
Read more >Android: How can I validate EditText input? - Stack Overflow
I'm using OnFocusChangeListeners to trigger the validation after the user types into each one, but this doesn't behave as desired for the last...
Read more >Validator | Android Developers
Validator. bookmark_border. Stay organized with collections Save and categorize content based on your preferences. Dismiss
Read more >Using Flows for Form Validation in Android. | by Shivam Dhuria
The Submit button is only enabled when all the three fields are correctly filled. Setting up Viewmodel. In your Viewmodel, initialize val for...
Read more >6 Reasons - HTML5 Required Attribute Validation not Working
This is the first and the most common reason that causes the issue. HTML5 required attribute validation doesn't work if the form has...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you, everyone, for your help.
I’ve managed to handle it by adding at the very beginning of my index.android.js file the following lines:
Running on the following packages versions:
@nilaybrahmbhatt, ideally @erikras would just update the npm package to use the loose settings, that way you can rely on npm for pulling down updates etc.
however if you need to get something live ASAP, the easiest solution would be to pull down the source and include in your project, keep it seperate from your src folder. once @erikras updates npm, you can remove that folder and continue as normal