Dispatch OnLayoutEvent when node gets re-laid out

Reviewed By: ahmedre

Differential Revision: D2768625

fb-gh-sync-id: 4a9862e4c7ada218565fcd87cae25414a0bd5181
This commit is contained in:
Denis Koroskin 2015-12-17 18:45:45 -08:00 коммит произвёл facebook-github-bot-0
Родитель 5b4e873c68
Коммит 56fd138fd3
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}