You can run the examples using the instructions below.
- Clone the project
git clone https://github.com/seanhenry/react-native-webgpu.git- Compile workspace packages
cd packages/react-native-webgpu
yarn build
cd ../..
cd packages/react-native-webgpu-experimental
yarn build
cd ../..- Install JavaScript dependencies
cd react-native-webgpu/examples/Example
yarn- Download WebGPU dependencies
wget https://github.com/seanhenry/react-native-webgpu/releases/download/v0.0.0/Bin+Headers.zip
unzip Bin+Headers.zip -d ../../packages/react-native-webgpuManual instructions
- Download
Bin+Headers.zipfrom the release page. - Unzip and move the
binandincludefolders to../../packages/react-native-webgpu
- Install pods (iOS only)
yarn pod:install- Build and run
yarn ios
yarn android