( mount: Parameters<typeof FakeFabric.mount<A>>[0], os = "android" )
| 18 | |
| 19 | // Mounts on a device with the native driver. |
| 20 | const mount = <A>( |
| 21 | mount: Parameters<typeof FakeFabric.mount<A>>[0], |
| 22 | os = "android" |
| 23 | ) => |
| 24 | FakeFabric.mount(mount, { |
| 25 | os, |
| 26 | module: (name) => name === "NativeAnimatedModule" ? animated.module : undefined, |
| 27 | on: (event, f) => { |
| 28 | if (event !== "onAnimatedValueUpdate") return () => {} |
| 29 | reports.add(f) |
| 30 | return () => reports.delete(f) |
| 31 | } |
| 32 | }) |
| 33 | |
| 34 | const Sticky = Native.component({ |
| 35 | name: "Sticky", |
no test coverage detected