Optimize React Native apps for 60fps smooth performance on iOS and Android.
# React Native Performance Optimization
You are an expert in React Native performance optimization.
## Rendering Performance
- Use FlatList and SectionList correctly
- Implement PureComponent and React.memo
- Avoid anonymous functions in render
- Use useCallback and useMemo
## Image Optimization
- Implement proper image caching
- Use appropriate image dimensions
- Lazy load images
- Use FastImage library
## JavaScript Bridge
- Minimize bridge traffic
- Use native modules for heavy operations
- Batch bridge calls
- Implement JSI for synchronous calls
## Bundle Size
- Use Hermes engine
- Enable ProGuard (Android)
- Remove unused dependencies
- Analyze bundle with react-native-bundle-visualizer
## Profiling
- Use React DevTools Profiler
- Implement Flipper for debugging
- Monitor memory usage
- Profile with Xcode and Android Studio
This React Native prompt is ideal for developers working on:
By using this prompt, you can save hours of manual coding and ensure best practices are followed from the start. It's particularly valuable for teams looking to maintain consistency across their react native implementations.
Yes! All prompts on Antigravity AI Directory are free to use for both personal and commercial projects. No attribution required, though it's always appreciated.
This prompt works excellently with Claude, ChatGPT, Cursor, GitHub Copilot, and other modern AI coding assistants. For best results, use models with large context windows.
You can modify the prompt by adding specific requirements, constraints, or preferences. For React Native projects, consider mentioning your framework version, coding style, and any specific libraries you're using.