react native numbers only input
/\*\*
\* Sample React Native App
\* https://github.com/facebook/react-native
\* @flow
\*/
import React, { Component } from "react";
import { Platform, StyleSheet, View, Button, TextInput, } from "react-native";
export default class App extends Component {
render() {
return (
<View style={styles.container}>
<TextInput
placeholder="Enter Your Mobile Number"
underlineColorAndroid='transparent'
style={styles.TextInputStyle}
**keyboardType={'numeric'}**
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
headerText: {
fontSize: 20,
textAlign: "center",
margin: 10,
fontWeight: "bold"
},
TextInputStyle: {
textAlign: 'center',
height: 40,
borderRadius: 10,
borderWidth: 2,
borderColor: '#009688',
marginBottom: 10
}
});
Also in JavaScript:
- if touchend javascript
- [object Object]
- how do you make a sprite with javascript
- how to define cardTitle background image in mdl in reactjs
- angular pipe first letter uppercase
- check server command discord.js
- angular download blob pdf
- hi;ight word in textarea javascript
- data in table when i click the table link in open table in another jquery
- jquery fade out
- string methods javascript
- how to append value to input field using jquery
- discord.js bot
- "socket.removeListener"
- js date of yesterday
- js reduce sum items of array
- puppeteer block request javascript
- how to make an object stop at the end of your canvas p5js
- js add class
- javascript remove last word from string
- javascript virtual assistant scrip[t
- vuejs set
- if statement javascript
- node read file stream