Comments (3)
It turns out that form validation does not work the same way in react
and react-native
. In
Now, this is where it gets tricky and what most people get wrong. So pay close attention. In web React an input component triggers an onChange callback when the value of the field changes. In React Native the TextInput callback is named onChangeText. To account for this we add the change handler manually onChangeText={onChange}.
Refer to this tutorial
from finantrack-mobile-client.
Lodash is not a satisfactory library for form validation. For example isNumber
needs the value to be a number type. It cannot recognize numeric strings.
from finantrack-mobile-client.
This bug has been fixed in 42cd5cd
The code now uses validator.js for form validation instead of lodash.
from finantrack-mobile-client.
Related Issues (20)
- Setup project for android
- Create unit tests for Firebase calls
- Add unit tests for reducer action creators
- The last few items in the Transaction List cannot be viewed at bottom. HOT 2
- Remove the arrow glyph in the Transactions Listview HOT 1
- Add CHANGELOG file
- Setup Github labels
- Error when trying to update a transaction HOT 2
- Add an area to display notifications in the home screen
- Update Transaction button should indicate that it is processing the Firebase API call
- Transaction List Item onPress behavior
- Transaction Edit and Delete Buttons are not reset when switching screens HOT 1
- Use a datepicker widget for the date field HOT 1
- Display title, date, inflow and outflow data in Transaction List Item HOT 1
- Integrate logging mechanism
- Integrate Tracking and Analytics HOT 1
- Integrate react-devtools for better development HOT 1
- Can't start the launchPackager.command HOT 3
- Add offline search functionality
- Format date in Transaction List Item HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finantrack-mobile-client.