Skip to content

Latest commit

 

History

History

Example

Examples

You can run the examples using the instructions below.

  1. Clone the project
git clone https://github.com/seanhenry/react-native-webgpu.git
  1. Compile workspace packages
cd packages/react-native-webgpu
yarn build
cd ../..

cd packages/react-native-webgpu-experimental
yarn build
cd ../..
  1. Install JavaScript dependencies
cd react-native-webgpu/examples/Example
yarn
  1. 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 and include folders to ../../packages/react-native-webgpu
  1. Install pods (iOS only)
yarn pod:install
  1. Build and run
yarn ios
yarn android