# typegpu-confetti `typegpu-confetti` is a package for highly-customizable confetti animations in React Native, computed and rendered exclusively on the GPU. Written using [react-native-wgpu](https://github.com/wcandillon/react-native-webgpu/) and [TypeGPU](https://github.com/software-mansion/TypeGPU). ## Installation In order to use the package in React Native, you need to install the [react-native-wgpu](https://github.com/wcandillon/react-native-webgpu/) package: ```sh npm install react-native-wgpu ``` Please refer to the react-native-wgpu documentation for further information about its installation. Note that the package is not supported by Expo Go, so running `expo prebuild` is required. Then to install the `typegpu-confetti` package, run: ```sh npm install typegpu-confetti ``` Furthermore, if you want to be able to pass JavaScript functions marked with the "use gpu" directive to the Confetti component, you need to include the [unplugin-typegpu](https://www.npmjs.com/package/unplugin-typegpu) babel plugin in your project. ```sh npm install unplugin-typegpu ``` For further information about the plugin and the overall tgpu functions functionality, please refer to the [TypeGPU documentation](https://docs.swmansion.com/TypeGPU/getting-started/). ## Usage ### 1. Recommended #### `useConfetti` hook ```tsx import { useConfetti } from 'typegpu-confetti/react-native'; function SomeInnerComponent() { const confettiRef = useConfetti(); return (