Graphics Shader
- Session on shaders by Anmol Poudel: https://docs.google.com/document/d/1s3rEm9Kp7EILItIgZ20buB3s8keukxOwncupdiLZnOk/edit
- Resource:
- Bare minmum example:
yarn add @shopify/react-native-skia
< Collapse code block
import React from "react"; import { Canvas, Skia, Shader, Fill} from "@shopify/react-native-skia"; const source = Skia.RuntimeEffect.Make(` vec4 main(vec2 xy) { return vec4(1); } `)!; function App(): JSX.Element { return ( <Canvas style={{ flex: 1 }}> <Fill> <Shader source={source} /> </Fill> </Canvas> ); } export default App;