mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 22:45:24 +08:00
Dispatch OnLayoutEvent when node gets re-laid out
Reviewed By: ahmedre Differential Revision: D2768625 fb-gh-sync-id: 4a9862e4c7ada218565fcd87cae25414a0bd5181
This commit is contained in:
committed by
facebook-github-bot-0
parent
5b4e873c68
commit
56fd138fd3
@@ -20,7 +20,7 @@ import com.facebook.react.uimanager.events.RCTEventEmitter;
|
||||
/**
|
||||
* Event used to notify JS component about changes of its position or dimensions
|
||||
*/
|
||||
/* package */ class OnLayoutEvent extends Event<OnLayoutEvent> {
|
||||
public class OnLayoutEvent extends Event<OnLayoutEvent> {
|
||||
|
||||
private static final Pools.SynchronizedPool<OnLayoutEvent> EVENTS_POOL =
|
||||
new Pools.SynchronizedPool<>(20);
|
||||
|
||||
@@ -264,7 +264,7 @@ public class ReactShadowNode extends CSSNode {
|
||||
mShouldNotifyOnLayout = shouldNotifyOnLayout;
|
||||
}
|
||||
|
||||
/* package */ boolean shouldNotifyOnLayout() {
|
||||
public boolean shouldNotifyOnLayout() {
|
||||
return mShouldNotifyOnLayout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user