-2
import React from 'react';
import {
View,
Image
} from 'react-native';
//import { useNavigation }from '@react-navigation/native'
import {
Octicons,
Fontisto
} from '@expo/vector-icons'
import logoImg from '../../asserts/logo.png'
import styles from './style'
import {
TextInput
} from 'react-native-gesture-handler';
export default function Welcome() {
return ( <
View style = {
styles.container
} >
<
View style = {
styles.header
} >
<
Image source = {
logoImg
}
/> < /
View >
<
View style = {
styles.busca
} >
<
Octicons name = 'three-bars'
style = {
styles.bars
}
/> <
TextInput style = {
styles.input
} > Buscar <
Fontisto name = 'mic'
style = {
styles.mic
}
/> < /
TextInput > <
/View>
<
/View>
);
}
import {
StyleSheet
}
from 'react-native' export default StyleSheet.create( {
container: {
backgroundColor: '#fff', flex: 1,
}
, header: {
marginTop: 30, marginBottom:30,
}
, busca: {
flexDirection: 'row', justifyContent:'space-between'
}
, bars: {
fontSize: 40, color:'grey', marginTop:2, marginLeft:15, marginRight:20
}
, input: {
borderWidth: 1.7, width:250, height:45, fontSize:30, color:'#bebebe', fontWeight:'700', borderRadius: 10, paddingLeft:90, marginRight:30, borderColor:'#bebebe',
}
, mic: {
fontSize: 30, color:'gray',
}
}
)
I’m not able to put the Mic icon at the end of imput and the words search at the beginning of imput the two only move together already tried with flex,alignitems,justifyconten and nothing out of the margin and paddding that moves the input or the two together wanted passes a stylization for each.
get put a view before the input and put the same estlization of flexdirection; 'Row' and put justifcontent : 'space between' ,ai só formatei o tamanho e o bordecolor
– Everton Costa Souza