kill port ubuntu
sudo kill -9 `sudo lsof -t -i:9001`
kill port ubuntu
sudo kill -9 `sudo lsof -t -i:9001`
ubuntu stop process on port
sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`
ubuntu kill process on a port
sudo kill -9 $(sudo lsof -t -i:4000)
kill a port in ubuntu
kill -9 $(sudo lsof -t -i:'portName')
//Ex. if portname is 3000
//then we will execute "kill -9 $(sudo lsof -t -i:3000)"
react native textInput numbers only
<TextInput
style={styles.textInput}
keyboardType='numeric'
onChangeText={(text)=> this.onChanged(text)}
value={this.state.myNumber}
maxLength={10} //setting limit of input
/>
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
}
});
react native textinput
import React, { Component } from 'react';
import { TextInput } from 'react-native';
export default function UselessTextInput() {
const [textInputValue, setTextInputValue] = React.useState('');
return (
<TextInput
style={{
height: 40,
borderColor: 'gray',
borderWidth: 1,
placeholderTextColor: 'gray',
}}
onChangeText={text => setTextInputValue(text)}
value={textInputValue}
placeholder="Insert your text!"
/>
);
}
react native input
import React, { Component } from 'react';
import { TextInput } from 'react-native';
export default function UselessTextInput() {
const [value, onChangeText] = React.useState('Useless Placeholder');
return (
<TextInput
style={{ height: 40, borderColor: 'gray', borderWidth: 1 }}
onChangeText={text => onChangeText(text)}
value={value}
/>
);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us