You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some troubles with text input on Android. I have TextInput with the long default value. This Input placed inside View component with some width. Here the problem: On ios cutting text inside TextInput looks like:
It shows the beginning of the value and cut the end of the value.
But on Android it strange:
it cuts the beginning of the value and shows only end.
How can I make Android behavior same as IOS? Or it's specific Android behavior?
Thank You!
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 8.4.0
Yarn: Not Found
npm: 4.6.1
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
This issue looks like a question that would be best asked on StackOverflow.
StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.
Will close this as this is really a question that should be asked on StackOverflow.
I have some troubles with text input on Android. I have TextInput with the long default value. This Input placed inside View component with some width. Here the problem: On ios cutting text inside TextInput looks like:
But on Android it strange:
How can I make Android behavior same as IOS? Or it's specific Android behavior?
Thank You!
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 8.4.0
Yarn: Not Found
npm: 4.6.1
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.0 => 0.52.0
Component code
`
import React from 'react';
import { StyleSheet, Text, View, TextInput } from 'react-native';
export default class App extends React.Component {
render() {
return (
<TextInput
style={styles.textInput}
value={'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.'}
underlineColorAndroid={'transparent'}
/>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
textInputContainer: {
width: 200
},
textInput: {
width: 200,
borderWidth: 1,
padding: 5
}
});
`
The text was updated successfully, but these errors were encountered: