All scripts are defined inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sam-shervin/space7/llms.txt
Use this file to discover all available pages before exploring further.
package.json and invoked with npm run <script>.
Quick reference
android
Build and launch the app on a connected Android device or emulator.
android:fresh
Reset the Metro cache, then build and run Android — useful after dependency changes.
android:clean
Delete stale Gradle artefacts and rebuild from scratch.
ios
Run on iOS. Kept from the default template but not actively maintained.
dev
Start the Metro bundler in a standalone terminal.
test
Run the full Jest test suite.
biome:run
Lint, format, and auto-fix all source files with Biome.
link
Register new fonts or static assets with the native layer.
npm run android
npm run dev), or the CLI will start it automatically.
When to use it: your normal day-to-day command after the initial setup is complete and Metro is already running.
npm run android:fresh
--reset-cache in the background, waits 5 seconds for it to initialise, then runs react-native run-android. Both processes run in the same terminal session.
When to use it: after adding or upgrading a JavaScript dependency and you want to guarantee Metro picks up the new module graph without stale cache entries.
Because Metro starts in the background with
&, its output is interleaved with the Android build output. If you need to monitor Metro logs separately, use npm run dev and npm run android in two terminals instead.npm run android:clean
- Removes the C++ build cache (
android/app/.cxx) and the auto-linking generated sources (android/app/build/generated/autolinking). - Runs
./gradlew clean, skipping the slow native (CMake/NDK) clean tasks. - Rebuilds and relaunches the app.
- After adding or removing a native dependency.
- After changing
android/configuration files. - When you see
Gradleerrors that persist after a normalnpm run android. - As a first troubleshooting step when the app crashes on launch after a dependency change.
npm run ios
npm run dev
8081).
When to use it: run this in a dedicated terminal before running npm run android. Keep it running throughout your development session so Fast Refresh delivers UI updates instantly.
npm run test
react-native preset. The configuration in jest.config.js transforms packages such as @react-navigation and react-native-screens that ship untranspiled ESM, and substitutes mocks for native-only modules (react-native-image-picker, react-native-video, @react-native-documents/picker, font files, and @env).
When to use it: before opening a pull request, or after refactoring shared logic in src/api/, src/context/, or src/utils/.
npm run biome:run
biome.json, and applies safe auto-fixes. The configuration enforces:
- Tab indentation
- Double quotes for JavaScript/TypeScript strings
- Recommended lint rules
- Automatic import ordering
node_modules, android, ios, and vendor.
When to use it: before committing changes. The husky pre-commit hook (prepare script) is set up to enforce code quality on every commit.
npm run link
react-native-asset to copy fonts and static files from src/assets/ into the native Android and iOS project directories, so the native layer can load them at runtime.
When to use it: after adding a new custom font or any other bundled static asset to src/assets/. After linking, rebuild the Android app for the changes to take effect.
