Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react native text underline

textDecorationLine: 'underline'
Comment

text input underline react native

import React, {Component} from 'react';
import {StyleSheet, Text, View,TextInput,TouchableOpacity} from 'react-native';

export default class App extends Component {
  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome}>SEDC</Text>
      <TextInput placeholder="Acct No/User Id" style={styles.textInput} multiline={true}></TextInput>
      <TextInput placeholder="Password" style={styles.textInput}></TextInput>
      <TouchableOpacity style={styles.btn} onPress={this.login}><Text>Log In</Text></TouchableOpacity>
      </View>
    );
  }

  login=()=>{
    alert("testing......");
    // this.props.navigation.navigate('Second');
}
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },

  textInput: {
    alignSelf: 'stretch',
    padding: 10,
    marginLeft: 50,
    borderBottomColor:'#000',
    margin:5,
    marginRight:50,
    // backgroundColor: '#000',
},
  btn:{
    alignSelf: 'stretch',
    backgroundColor: '#01c853',
    padding: 10,
    margin:10,
    marginLeft: 100,
    marginRight:100,
    alignItems: 'center',
}
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: js 1 minute sleep 
Javascript :: mui icons 
Javascript :: javascript function add two numbers 
Javascript :: how to convert react component to image 
Javascript :: google sheets get ranges 
Javascript :: good javascript ide 
Javascript :: node fs 
Javascript :: remove object if key is duplicate javascript 
Javascript :: javascript find unique values in array of objects 
Javascript :: @input in angular 
Javascript :: google scripts get document 
Javascript :: django csrf failed ajax case 
Javascript :: _.escape underscore 
Javascript :: convert base64 to pdf file javascript 
Javascript :: mongoose find in array 
Javascript :: mongoose populate example 
Javascript :: how to assign onEdit to specigfic tab 
Javascript :: git reset local branch to origin 
Javascript :: javascript remove last element 
Javascript :: color picker in react js 
Javascript :: change cover photo with javascript 
Javascript :: rivets js bind 
Javascript :: WebPack Multiple files 
Javascript :: express cors policy 
Javascript :: How to use `setState` callback on react hooks 
Javascript :: getx oninit 
Javascript :: dropzone react npm 
Javascript :: react hooks example 
Javascript :: html2canvas not getting image if file field src is url 
Javascript :: display:flex 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =