Zoo Match is a classic match-3 puzzle game where players move and match animal tiles to create sets of three or more. Using the react-native-unity library, Unity's game functionality is seamlessly integrated into the React Native app.
- Install Node.js
- Install Yarn
- Install Unity 6
- Make sure you have completed the React Native - Environment Setup
Clone this React Native Repo:
git clone https://github.com/vsnaichuk/react-native-unity-game.git
Clone the Unity Game Repo to a separate directory.
git clone https://github.com/vsnaichuk/unity-game.git
You need to create Android / iOS game build and move it to <THIS_RN_PROJECT>/unity/builds
- Open Unity Game Repo in Unity 6
- For Android: Build and move the game to
<THIS_RN_PROJECT>/unity/builds/android
- For iOS: Build the game and follow this instruction
In the root directory of the project run:
yarn
npx pod-install
First, you will need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of the project:
yarn start
Let Metro Bundler run in its own terminal. Open a new terminal from the root of React Native project. Run the following command to start Android or iOS app:
yarn android
yarn ios
If everything is set up correctly, you should see app running on your Android or iOS device.