[React Native] Fabric get current event priority (#21553)

* Call into Fabric to get current event priority

Fix flow errors

* Prettier

* Better handle null and undefined cases

* Remove optional chaining and use ?? operator

* prettier-all

* Use conditional ternary operator

* prettier
This commit is contained in:
Samuel Susla
2021-06-08 12:26:21 -04:00
committed by GitHub
parent e6be2d531d
commit 1a3f1afbd3
2 changed files with 24 additions and 1 deletions
+3
View File
@@ -184,6 +184,9 @@ declare var nativeFabricUIManager: {
isJsResponder: boolean,
blockNativeResponder: boolean,
) => void,
unstable_DefaultEventPriority: number,
unstable_DiscreteEventPriority: number,
unstable_getCurrentEventPriority: () => number,
...
};