TextField: Cannot read property 'measure' of undefined
See original GitHub issueI’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.

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

Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Can we get a version bump with this?
Can you try with this patch ? https://github.com/xinthink/react-native-material-kit/pull/232