This README provides instructions on how to set up and run the vizbee-react-native-sample-app.
Follow these steps to get the app running on your local machine.
Clone the repository using one of the following commands:
# Using SSH
git clone git@github.com:ClaspTV/vizbee-react-native-sample-app.git
# OR using HTTPS
git clone https://github.com/ClaspTV/vizbee-react-native-sample-app.gitAfter cloning the repository, navigate to the project directory and install the necessary dependencies:
cd vizbee-react-native-sample-app
# using npm
npm install
# OR using Yarn
yarn install
Next, you need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using npm
npm start
# OR using Yarn
yarn startLet Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project.
Run the following command to start Android app:
# using npm
npm run android
# OR using Yarn
yarn androidFirst, install the pods:
cd ios && pod install && cd ..Then, if you want to run the app on a real iOS device, you need to set up your development team:
-
Open the Xcode project:
open ios/ReactNativeApp.xcworkspace
-
In Xcode, select the project in the Project Navigator.
-
Select the target under the "Targets" section.
-
Go to the "Signing & Capabilities" tab.
-
In the "Team" dropdown, select your Apple Developer team.
Make sure that the bundle identifier used in your project has the proper entitlements registered in your Apple Developer account.
Finally, run the following command to start the iOS app:
# using npm
npm run ios
# OR using Yarn
yarn iosThat's it! You should now have the vizbee-react-native-sample-app running on your local machine or device.
Note: If you encounter any issues related to code signing or provisioning when running on a real device, you may need to adjust your project's code signing settings in Xcode or register your device in your Apple Developer account.