(style: Animation.Style)
| 125 | }) |
| 126 | |
| 127 | const makeBox = (style: Animation.Style) => { |
| 128 | let name = "" |
| 129 | const Box = Native.component({ |
| 130 | name: "Box", |
| 131 | model: Schema.Null, |
| 132 | message: Schema.Never |
| 133 | }).make({ |
| 134 | init: () => null, |
| 135 | update: ($) => $.model, |
| 136 | view: (h) => |
| 137 | h.view( |
| 138 | pipe( |
| 139 | h.view.style({ height: 10 }), |
| 140 | Animation.named(name = h.id("box")), |
| 141 | Animation.style(style) |
| 142 | ) |
| 143 | ) |
| 144 | }) |
| 145 | return { Box, name: () => name } |
| 146 | } |
| 147 | |
| 148 | const Follow = Native.component({ |
| 149 | name: "Follow", |