gl-react-expo
Version:
React Native via Expo implementation of gl-react, an universal React library to write and compose WebGL shaders
15 lines (12 loc) • 357 B
JavaScript
//@flow
import { View } from "react-native";
import { createSurface } from "gl-react";
import GLView from "./GLViewNative";
import "webgltexture-loader-expo";
const RenderLessElement = View;
export const Surface = createSurface({
GLView,
RenderLessElement,
requestFrame: global.requestAnimationFrame,
cancelFrame: global.cancelAnimationFrame,
});