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 :: javascript remove diacritics 
Javascript :: yup validate password confirmation 
Javascript :: clear cache of node file 
Javascript :: scoll to top on each route react 
Javascript :: ruby read json file 
Javascript :: angular open poort in network 
Javascript :: get string after character javascript 
Javascript :: macos chrome disable web security 
Javascript :: regex check if number is even 
Javascript :: chrome extension get current tab url 
Javascript :: ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: ENOENT: no such file or directory, scandir 
Javascript :: jquery responsive 
Javascript :: location reload after 2 seconds 
Javascript :: object json jquery foreach 
Javascript :: javascript window resize listener 
Javascript :: Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. 
Javascript :: remove localstorage 
Javascript :: float right react native 
Javascript :: full width of image and maintain aspect ratio react native 
Javascript :: disable right click javascript 
Javascript :: Slick slider arrows change 
Javascript :: remove empty lines regex 
Javascript :: javascript disable right click 
Javascript :: remove square brackets from string javascript 
Javascript :: react install 
Javascript :: modal.show jquery 
Javascript :: react native image fit container 
Javascript :: pass url params to child router express 
Javascript :: how show piece of long text in javascript 
Javascript :: remove last comma from string javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =