For TextInput validation you can find file in src folder.
download source code and import sourcode in your Editor and run project by this command :
for android:
react-native run-android
and for IOS :
react-native run-ios
you can find button_demo.js file in src folder