Dispatch OnLayoutEvent when node gets re-laid out
Reviewed By: ahmedre Differential Revision: D2768625 fb-gh-sync-id: 4a9862e4c7ada218565fcd87cae25414a0bd5181
This commit is contained in:
Родитель
5b4e873c68
Коммит
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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче