Key Topics


Unity Integration

Development Summary


Metaverse Functionality in META App

One of the key components of the META App is the metaverse functionality. However, it is not possible to create the metaverse in React Native. Therefore, we will integrate a Unity build project into the React Native and show it to the users. This is not an easy task a requires several complicated steps.

Eject Expo App

First, we need to transform our Expo app into a standalone app. This is because the react-native-unity package that we need to use does not support Expo. It can only be done through the default React Native environment. Therefore, we eject the Expo app so that it can support both Expo and React Native.

To do this, we first run the prebuild command:

npx expo prebuild

Once we do this, we will see both the android and ios folders created in our project.

Untitled

Now, we need to include the Unity project into our React Native app. To do this, we need to set up the Android project and iOS project separately.