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-webgpu
Manual instructions
- Download
Bin+Headers.zip
from the release page. - Unzip and move the
bin
andinclude
folders to../../packages/react-native-webgpu
- Install pods (iOS only)
yarn pod:install
- Build and run
yarn ios
yarn android