> For the complete documentation index, see [llms.txt](https://docs.rhecanyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rhecanyx.com/docs/react-native-docs-for-mobile-apps/other-commands.md).

# Other Commands

{% stepper %}
{% step %}

### Prebuild  - Continuous Native Generation (Create android & ios files)

```shellscript
npx expo prebuild
// or
npx expo prebuild --platform ios
// or
npx expo prebuild --platform android
```

{% endstep %}

{% step %}

### Clean & Fresh Rebuild

<pre class="language-shellscript" data-overflow="wrap"><code class="lang-shellscript"><strong># watchman
</strong># Delete all active watchman watches (file system watcher for React Native)
watchman watch-del-all
# Delete temporary React Native/Metro bundler cache folders
rm -rf $TMPDIR/react-native-packager-cache-*
rm -rf $TMPDIR/metro-cache

<strong># node modules
</strong># Delete the node_modules folder
rm -rf node_modules &#x26;&#x26; package-lock.json
# Clean the npm cache (use 'yarn cache clean' if using Yarn)
npm cache clean --force
# Reinstall all project dependencies
npm install

<strong># Navigate into the Android native directory
</strong>cd android &#x26;&#x26; ./gradlew clean &#x26;&#x26; cd ..

<strong># Navigate into the iOS native directory
</strong>cd ios &#x26;&#x26; pod cache clean --all &#x26;&#x26; rm -rf Pods/ &#x26;&#x26; rm -rf Podfile.lock &#x26;&#x26; pod install &#x26;&#x26; cd ..

</code></pre>

{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rhecanyx.com/docs/react-native-docs-for-mobile-apps/other-commands.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
