question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

text in basic MKTextField is not visible while typing

See original GitHub issue

styles.textfield = {
    height: 48, // have to do it on iOS
    marginTop: 60
}

...

  render() {
        return (
            <View>
                <View style={{
                    margin: 20,
                    padding: 20,
                    backgroundColor: "#CCC"
                }}>
                    <MKTextField tintColor={MKColor.Orange} textInputStyle={{
                        color: MKColor.Blue
                    }} placeholder="Text…" style={styles.textfield}/>
                </View>
                <View style={{
                    margin: 20,
                    padding: 20,
                    backgroundColor: "#CCC"
                }}>
                    <TextfieldWithFloatingLabel ref="defaultInput"/>
                    <Text style={styles.legendLabel}>With floating label</Text>
                </View>
            </View>
        )
    }

When focus is on another text box:

image

When focus is on top text box:

image

When triple clicking top text box’s text:

image

So the text is there, definitely, but I can’t see it. Also that placeholder text is right in the middle of the line.

$ react-native --version
react-native-cli: 1.2.0
react-native: 0.39.2
...
"react-native-material-kit": "~0.3.4",

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

1reaction
agrasscommented, May 31, 2017

fixed with textInputStyle={{flexGrow: 1, flex: 0}}

1reaction
quan118commented, Jan 11, 2017

You can fix this bug by adding flex:1 in the textInputStype prop

<MKTextField
   tintColor={MKColor.Orange}
   textInputStyle={{color: MKColor.Blue, flex:1}}
   placeholder="Text…"
   style={styles.textfield}
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard is not visible when typing a string in a text field
Open your Simulator. Select Hardware. Select 'Toggle Software Keyboard'. as shown in Image enter image description here.
Read more >
Excel iPadOS app - typed text not visible while typing
Hello, In the last week or two we started to have users report issues seeing what they're typing while in excel.
Read more >
Text is not showing in form fields as customer is typing - Jotform
As people are filling out the form, what they are typing is not showing up in the box. They are not able to...
Read more >
How to get notified for any change in SwiftUI TextField?
The onEditingChanged is only called when te text is changed for the first time ... to just use the `input` variable directly to...
Read more >
How to Use Text Fields - Oracle Help Center
A text field is a basic text control that enables the user to type a small ... JPasswordField, A JTextField subclass that does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found