> 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 %}
