Questions tagged [react-native-text]
39 questions
0
votes
1 answer
react native text align by justify adds whitespace between letters
when using
text-align: justify
on react native it adds whitespace between the letters as well for some reason and is supposted to just add whitespace between words
image: https://i.stack.imgur.com/bZor0.png
i have tried removing letter-spacing but…

VVSC
- 5
- 2
0
votes
1 answer
React Native - IOS - Text strings must be rendered within a component
Looking at my code for few hours, I was not able to understand the root cause for this exception
Error: Text strings must be rendered within a component.
This error is located at:
in RCTView (created by View)
in View (created by Card)
in…

Melodias
- 33
- 6
0
votes
1 answer
Not able to set inital height to TextInput component based on the content in React Native
I am having a TextInput component as shown below
setInputDescription(e)}
style={[Style.descriptionInput, { height: descriptionHeight }]}
…

Gaurav Thakur
- 813
- 7
- 8
0
votes
3 answers
React Native : textShadow not rendering well on sides
I have troubles to use textShadow propriety as expected. Here is my code :
import React from 'react'
import { StyleSheet, View, Text } from 'react-native'
class Test extends React.Component {
render() {
return (

Santo R
- 49
- 3
0
votes
1 answer
Give styling to placeholder in TextInput in React Native
So I've a TextInput and the placeholder has a styling.
For this, I place a Text with position: 'absolute' and zIndex: 1 before the TextInput
activeField(){
this.setState({active: true})
}
render(){
return(
{…

Shubham Bisht
- 577
- 2
- 26
- 51
0
votes
2 answers
Multiline text with different widths?
Is it possible to make a multiline text where the lines are different lengths in React Native?
My situation with an example address (could be any string) where the same length rows:
const address = 'Circular Quay, Alfred St, Sydney 2021 NSW…

Henning Hall
- 1,297
- 2
- 11
- 31
0
votes
0 answers
swiftkey keyboard won't show for react-native text input
I am having a problem with react-native textinput. on one screen the swiftkeyboard shows and on the other it does not show swift keyboard but the default keyboard.
on the below textinput swiftkey keyboard shows:

Harry M
- 31
- 1
- 4
0
votes
1 answer
Pass value to TextInput onPress
My Component is :
class TextInputComp extends Component {
constructor(props){
super();
this.state = { thetext: '' }
}
submitText = (text) => {
Alert.alert("Text Submitted!", text);
}
render() {
const renData =…

Somename
- 3,376
- 16
- 42
- 84
0
votes
1 answer
React native : Passing HTML string to component is displaying as text
I have react native component (For Eg: myComponent) which has the below code to display text from this.props.text. This text props is defined as string in myComponent.

Tutu
- 99
- 1
- 2
- 14