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.

TextField: Cannot read property 'measure' of undefined

See original GitHub issue

I’m having a problem that occurs from time to time on the TextField with Floating Label.

This started occurring when I upgraded to redux-form v6.

screen shot 2016-09-13 at 14 56 01

The associated jsx is:

<View style={formStyles.formGroup.normal}>
    <TextInput
      {...field.input}
      type={field.type}
      placeholder={field.placeholder}
      secureTextEntry={field.secureTextEntry}
      autoCorrect={field.autoCorrect}
      error = {(field.meta.touched && field.meta.error) || null}
    />
    {field.meta.touched && field.meta.error && <AText style={formStyles.errorBlock}>{field.meta.error}</AText>}
</View>

The field object looks like this

screen shot 2016-09-13 at 15 00 00

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
stief510commented, Sep 26, 2016

Can we get a version bump with this?

1reaction
Crash--commented, Sep 14, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'measure' of undefined
This works fine in ios but for android, it returns undefined unless you put empty callback on the onLayout property.
Read more >
Redux News Reader Uncaught TypeError: Cannot read ...
I'm having a similar issue, but I'm getting a "Cannot read properties of undefined (reading 'id'). I think the issue may be with...
Read more >
[SOLVED] Uncaught TypeError: Cannot read property 'pad' of ...
caught TypeError: Cannot read property 'pad' of undefined ... Error triggered when input is detected from game device
Read more >
How to avoid the JavaScript error “cannot read property
If we're working with pulling data from APIs in JavaScript and React we may encounter the error “cannot read property [property name] of...
Read more >
[Event System] cannot read property 'notify' of undefined
The problem was I had a FeedbackMessage widget on my screen that I was refreshing to show some error messages. The refresh didn't...
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