Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have screen named EditeScreen .it has text input that takes the height of the device . so the problem is when I start typing the text goes above and disappear. any solutions please

here is my Text Input component
<View style={styles.InputContainer}>
<ScrollView>
<TextInput
style={styles.inputText}
placeholder={"Take Notes ..."}
onChangeText={HandlingTextValut}
value={notes}
multiline={true}
/>
</ScrollView>
</View>

and here is its styles
InputContainer: {
flex:1,
},
inputText: {
paddingBottom: Dimensions.get("window").height- 100,
paddingLeft: 10,
paddingRight: 10,
fontSize: 20,
},

What I have tried:

I tried to resize its with on-focus but it did not work
Posted
Updated 30-Oct-21 6:02am
Comments
OriginalGriff 12-May-21 9:57am    
This looks very familiar ... haven't you posted it before?

1 solution

paddingBottom is whats pushing your texts upwards. Change the value to maybe 10, and see if it helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900