mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00

* feat: support requestAnimationFrame * add native helpers to measure time * test(animation-frame): add tests * chore: refactor animation-frame to its own module * chore: fix tslint
7 lines
240 B
TypeScript
7 lines
240 B
TypeScript
import "../../core";
|
|
import { installPolyfills } from "../polyfill-helpers";
|
|
|
|
global.registerModule("animation", () => require("../../../animation-frame"));
|
|
|
|
installPolyfills("animation", ["requestAnimationFrame", "cancelAnimationFrame"]);
|