UNPKG

gl-react-native

Version:

React Native standalone implementation of gl-react, an universal React library to write and compose WebGL shaders

15 lines (12 loc) 373 B
//@flow import { View } from "react-native"; import { createSurface } from "gl-react"; import GLView from "gl-react-expo/lib/GLViewNative"; import "webgltexture-loader-expo"; const RenderLessElement = View; export const Surface = createSurface({ GLView, RenderLessElement, requestFrame: global.requestAnimationFrame, cancelFrame: global.cancelAnimationFrame, });