This guide gets the app running on your machine as quickly as possible. You will clone the repository, install JavaScript dependencies, start the Metro bundler, and then launch the app on Android or iOS.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/martiigarcia/gesdeportiva/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have the following installed:- Node.js — v16 or later recommended
- npm — bundled with Node.js
- React Native CLI — available via
npx react-native(no global install required) or installed as part of your project - Android Studio — required for Android development (includes the emulator and SDK)
- Xcode — required for iOS development (macOS only)
You must complete the React Native environment setup for your target platform before running the steps below. Android Studio and Xcode each require additional SDK and toolchain configuration.
Run the app
Install dependencies
package.json, including React Navigation and its peer dependencies.Start the Metro bundler
Metro is the JavaScript bundler for React Native. Start it in a dedicated terminal window and leave it running.
Available scripts
These are the scripts defined inpackage.json:
| Script | Command | Description |
|---|---|---|
npm run android | react-native run-android | Builds and launches on a connected Android device or emulator |
npm run ios | react-native run-ios | Builds and launches on an iOS simulator (macOS only) |
npm start | react-native start | Starts the Metro bundler |
npm test | jest | Runs the Jest test suite |
npm run lint | eslint . | Lints the JavaScript source with ESLint |
What you will see
Once the app launches, you will see two bottom tabs:- Login — renders a basic login screen (
screens/Login.js) - Menu — renders a basic menu screen (
screens/Menu.js)
navigations/Navigation.js using createBottomTabNavigator from @react-navigation/bottom-tabs. Each tab header is center-aligned, as configured by the headerTitleAlign: 'center' option.