mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
08d30e751b
Summary: ActivityIndicator was forwarding all of its props except `style` to the inner native view. This meant that onLayout would report a zero-sized frame that was relative to the wrapper view instead of the parent of the ActivityIndicator. This diff adds `onLayout` to the wrapper view instead of the native view. In general, all components that forward props need to be audited in this manner. Closes https://github.com/facebook/react-native/pull/1292 Github Author: James Ide <ide@jameside.com> Test Plan: `<ActivityIndicator onLayout={...} />` reports the size of the spinner plus a position relative to its parent view.