-
Notifications
You must be signed in to change notification settings - Fork 52
glamorous.View onLayout is not called in production Android builds #81
Comments
Got the same problem with version 1.1.1 after updating to Expo 22. Did a few hours of research. It worked with RN 0.46 but doesn't with 0.49 @epeli what was the last RN version that worked for you? It works when I replace the I saw most of the code hasn't changed since may, so it seems to have something todo with RN. Somehow the Also, most of the glamorous-native code is the same for all components, so it has to be something that only changed for the |
Great report, and thanks for taking a look @kay-is. I wonder if I'd like to experiment with function Parent (props) {
return <View {...props} />
}
<Parent style={{width: 50, height: 50}} onLayout={e => console.log('reached', e} /> |
Didn't mean to close! |
Oh, and |
I just upgraded to |
Ah! There was an incompatibility with React 16, which was fixed in #72. Apparently passing With that upgrade, @kay-is, does |
Fixed by #85 |
glamorous-native
version: 1.20react-native
version: 0.50react
version: 16.1.0Relevant code:
In the example code both numbers should be in the initial view
1
and they should increase when ever the device is rotated.This works with iOS (dev&prod) and with Android development but not with productions builds. The number stays at
0
.The issue is with factory generated views too
The text was updated successfully, but these errors were encountered: