MCPcopy Create free account
hub / github.com/Effect-TS/effect / mount

Function mount

packages/ui/native/test/Animation.test.ts:20–32  ·  view source on GitHub ↗
(
  mount: Parameters<typeof FakeFabric.mount<A>>[0],
  os = "android"
)

Source from the content-addressed store, hash-verified

18
19// Mounts on a device with the native driver.
20const 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
34const Sticky = Native.component({
35 name: "Sticky",

Callers 2

headersFunction · 0.70
Animation.test.tsFile · 0.70

Calls 3

mountMethod · 0.65
addMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected