We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0868e58 commit b37dc2eCopy full SHA for b37dc2e
jest-setup.js
@@ -29,6 +29,8 @@ beforeEach(() => {
29
mockUILib();
30
});
31
32
+setImmediate = (callback) => callback();
33
+
34
const mockUILib = () => {
35
const NativeModules = require('react-native').NativeModules;
36
NativeModules.KeyboardTrackingViewTempManager = {};
lib/Mock/Layouts/ComponentNode.ts
@@ -13,7 +13,7 @@ export default class ComponentNode extends ParentNode {
13
14
public componentDidMount() {
15
this.componentDidMountOnce = true;
16
- this.componentDidAppearPending && this.componentDidAppear();
+ this.componentDidAppearPending && setImmediate(() => this.componentDidAppear());
17
}
18
19
public componentDidAppear() {
0 commit comments