私はロットを検索しましたが、反応のネイティブでz-indexプロパティを与える方法を見つけました。反応しないネイティブでzIndexを使用すると、スタイルの小道具タイプ。反応するネイティブのアンドロイドのアプリでZ-indexプロパティを与える方法
ここはレンダリングの私のコードです。あなたが私がautoContainerビューに見えるようにしたいということを下に見ることができます。だから、サードパーティ製のライブラリを使わなくても、どうやって前進させることができるのか教えてください。
render() {
return (
<View style={{flex:1}}>
<View style={[styles.inputWrap,this.props.error]}>
<TextInput
style={[style.input,this.props.style]}
ref={this.props.name}
onChangeText={(text) =>this.searchItem(this.props.options,text)}
value={this.state.value}
placeholder={this.props.placeholder}
placeholderTextColor="#000000"
keyboardType={this.props.keyboard}
/>
</View>
{this.toggleAuto()}
</View>
)
}
toggleAuto()
{
if(this.state.autoList!='')
{
return (<View style={style.autoContainer}>
{this.renderList(this.state.autoList)}
</View>
);
}
}
const style = StyleSheet.create({
input:{
flex:1,
height:50,
fontSize:16,
backgroundColor:'#ffffff',
paddingLeft:10,
},
autoContainer: {
borderTopColor:"#888888",
borderTopWidth:1,
position:"absolute",
right:0,
left:0
},
list: {
backgroundColor:'#f2f2f2',
padding:10,
borderColor:'#888888',
borderBottomWidth:1,
borderLeftWidth:1,
borderRightWidth:1
}
});
私は私たonPressが動作していない高度を与えた後、上昇を試みたが。 – Harinder88
は、そのビューをレンダリング(標高を持っていた)私は最後にそのビューをレンダリングする場合は、 1.メール 2.ユーザ名 3.ファーストネーム 4.姓 を持っている場合、そのインデックスは次のように変更されます他のすべてのビュー –
を怒鳴ります私はfirstNameのためのzIndexを望んでいると仮定して、私はそれをgonaの問題の下でレンダリングする場合、私はそれを達成することができますので、私に例を与えてください。おかげで Shukarullah Shah – Harinder88