🧪 Part 1: Common Interview Questions React native
1️⃣ What is the React Native New Architecture?
Answer: The New Architecture modernizes how React Native communicates with native code. It replaces the old asynchronous bridge with:
- JSI (JavaScript Interface) — allows direct communication between JS and native
- TurboModules — faster, lazily loaded native modules
- Fabric — the new rendering system for UI
This results in better performance, lower memory usage, and smoother animations, especially in complex apps.
2️⃣ What problems did the old Bridge have?
Answer: The old bridge was asynchronous and relied on JSON serialization. This caused:
- Performance bottlenecks
- Delays in UI updates
- High memory overhead
The New Architecture removes this bottleneck with direct calls via JSI.
3️⃣ What is Fabric in React Native?
Answer: Fabric is the new rendering engine. It improves:
- Faster UI updates
- Better layout calculations
- Smoother gestures and animations
It also aligns React Native more closely with how React works internally.
4️⃣ What are TurboModules?
Answer: TurboModules are the new native module system. Key benefits:
- Lazy loading (loaded only when used)
- Faster execution
- Type safety via Codegen
- Works directly through JSI (no bridge)
5️⃣ How do you upgrade a React Native project safely?
Answer:
- Use React Native Upgrade Helper to compare changes
- Upgrade one minor version at a time
- Clear caches (
watchman,node_modules, Gradle) - Update native dependencies (CocoaPods, Gradle, SDK versions)
- Test on real Android & iOS devices
- Check third-party libraries compatibility
6️⃣ What are common issues during RN upgrades?
Answer:
- Android build failures (Gradle/plugin mismatch)
- iOS pod install errors
- Deprecated APIs removed
- Libraries not supporting New Architecture
- Hermes engine incompatibility in older packages
7️⃣ What is Hermes and why is it important?
Answer: Hermes is the optimized JavaScript engine for React Native.
Benefits:
- Faster app startup
- Lower memory usage
- Smaller app size
- Better performance profiling tools
Most modern RN apps use Hermes by default.
8️⃣ FlashList vs FlatList?
Answer:
| Feature | FlatList | FlashList |
| ---------------- | ------------- | ---------------- |
| Performance | Good | Much faster |
| Large data sets | Can lag | Highly optimized |
| Item measurement | Manual tuning | Auto-optimized |
| Memory usage | Higher | Lower |
FlashList is preferred for feeds, chats, e-commerce lists.
9️⃣ How do you optimize performance in React Native?
Answer:
- Use FlashList for large lists
- Memoize components (
React.memo) - Use
useCallbackanduseMemo - Avoid inline functions in render
- Use Reanimated for animations (runs on UI thread)
- Enable Hermes
- Use Fabric-compatible libraries
🔟 What is Reanimated and why is it better than Animated API?
Answer: Reanimated runs animations on the UI thread instead of the JS thread, so animations remain smooth even if JS is busy.
Latest versions support:
- Shared element transitions
- Gesture-based animations
- Layout animations
1️⃣1️⃣ What is Codegen in React Native?
Answer: Codegen automatically generates native code for TurboModules and Fabric components based on TypeScript/Flow definitions. It ensures:
- Type safety
- Better performance
- Less manual native coding
1️⃣2️⃣ What is Bridgeless Mode?
Answer: Bridgeless Mode removes the old bridge entirely. Apps run fully on JSI + Fabric + TurboModules, reducing overhead and improving startup time.
1️⃣3️⃣ How do you debug performance issues?
Answer:
- Use Flipper (network, layout, logs)
- Use Hermes profiler
- Check React DevTools Profiler
- Track re-renders using why-did-you-render
- Monitor memory leaks in native modules
1️⃣4️⃣ How do you secure a React Native app?
Answer:
- Use secure storage (Keychain/Keystore/MMKV secure)
- Enable HTTPS with certificate pinning
- Obfuscate Android builds (Proguard/R8)
- Jailbreak/root detection if needed
- Avoid storing secrets in JS code
1️⃣5️⃣ What is the difference between Expo and React Native CLI?
Answer:
| Expo | CLI |
| ---------------------------------------------- | ------------------- |
| Faster setup | More native control |
| Managed workflow | Full native access |
| OTA updates built-in | Manual setup |
| Limited native customization (unless prebuild) | Full flexibility |
1️⃣6️⃣ How does navigation work in modern React Native apps?
Answer: Most apps use React Navigation with:
- Stack Navigator
- Bottom Tabs
- Drawer
- Native Stack (better performance)
It integrates well with gestures and deep linking.
1️⃣7️⃣ What testing tools are used in React Native?
Answer:
- Jest — unit testing
- React Native Testing Library — component testing
- Detox — end-to-end testing
- Maestro (gaining popularity for mobile E2E)
1️⃣8️⃣ How do you handle app state in large RN apps?
Answer:
- Context API (small apps)
- Redux Toolkit
- Zustand (lightweight modern choice)
- Recoil / Jotai in some apps
1️⃣9️⃣ What are best practices for handling large apps?
Answer:
- Modular folder structure
- Separate UI & business logic
- Use TypeScript
- Lazy load screens
- Optimize images and assets
- Monitor performance regularly
2️⃣0️⃣ What’s one recent RN change that impacted development?
Answer: The gradual rollout of the New Architecture changed how libraries are written. Many older native modules needed rewrites for TurboModules/Fabric compatibility. Modern apps must ensure libraries support the new system for best performance.
🧪 Part 2: Live Coding Challenges (React Native Interviews)
These are very common in mid–senior RN interviews.
🧩 Challenge 1: Build a Searchable List
Task: Create a screen with:
- A search input
- A list of items
- Filtering happens as user types
What interviewer checks:
- useState usage
- FlatList optimization
- Proper keyExtractor
- Debouncing (bonus)
Basic Solution Idea:
const DATA = ["Apple", "Banana", "Mango", "Orange", "Pineapple"];
export default function SearchList() {
const [query, setQuery] = useState("");
const filtered = DATA.filter(item =>
item.toLowerCase().includes(query.toLowerCase())
);
return (
<View>
<TextInput
placeholder="Search..."
value={query}
onChangeText={setQuery}
/>
<FlatList
data={filtered}
keyExtractor={(item) => item}
renderItem={({ item }) => <Text>{item}</Text>}
/>
</View>
);
}
🧩 Challenge 2: Counter with useReducer
Task: Build a counter with Increment, Decrement, Reset.
Checks: Understanding of useReducer vs useState.
function reducer(state, action) {
switch (action.type) {
case "inc": return { count: state.count + 1 };
case "dec": return { count: state.count - 1 };
case "reset": return { count: 0 };
default: return state;
}
}
🧩 Challenge 3: API Fetch with Loading & Error
Task: Fetch API data and show:
- Loader
- Error state
- List result
Checks: async/await, useEffect, cleanup
🧩 Challenge 4: Optimized List Rendering
Task: Render 1000 items efficiently.
Expected:
- Use FlashList or optimized FlatList props
- Use
React.memo - Avoid inline functions
🧩 Challenge 5: Custom Hook
Task: Write useNetworkStatus hook.
Checks:
- Custom hooks knowledge
- Event listeners cleanup
🧩 Challenge 6: Form Validation
Task: Build login form with validation.
Checks: Controlled inputs, error states, regex validation.
🧩 Challenge 7: Dark Mode Toggle
Task: Implement light/dark theme switch.
Checks: Context API, re-render optimization.
🧩 Challenge 8: Debounced Search
Task: Search API only after user stops typing.
Checks: setTimeout + cleanup or lodash debounce.
🧩 Challenge 9: Navigation Flow
Task: Two screens: List → Details, pass params.
Checks: React Navigation basics.
🧩 Challenge 10: Animation Task
Task: Animate a box moving across screen.
Expected (modern answer): Use Reanimated, not old Animated API.
🏗️ Part 3: System Design for a React Native App
Now we move to senior-level questions.
🎯 Question:
“Design a scalable React Native app like Instagram / E-commerce / Food Delivery.”
🧱 1. App Architecture
Expected Answer:
Presentation Layer → UI Components
Business Logic Layer → Hooks / Services
Data Layer → API + Local Storage
Use:
- Feature-based folder structure
- Separation of concerns
🗂 2. Folder Structure
src/
├── components/
├── screens/
├── navigation/
├── services/
├── hooks/
├── store/
├── utils/
└── assets/
🔄 3. State Management
Interviewer expects reasoning:
| App Size | Solution |
| -------- | ----------------------- |
| Small | Context API |
| Medium | Redux Toolkit / Zustand |
| Large | Redux + RTK Query |
Explain:
- Global vs local state separation
- Server cache vs UI state
🌐 4. Networking Layer
Best practice:
- Axios or Fetch wrapper
- Interceptors for auth tokens
- Centralized error handling
- Retry logic for failures
💾 5. Offline Support
Senior-level bonus:
- Use MMKV / AsyncStorage
- Cache API responses
- Background sync when internet returns
🚀 6. Performance Strategy
Mention:
- FlashList for long lists
- Hermes enabled
- Lazy load screens
- Image optimization
- Avoid unnecessary re-renders
- Fabric-compatible libraries
🔐 7. Security Design
- Secure token storage (Keychain/Keystore)
- Certificate pinning
- Code obfuscation
- Biometric login (if needed)
🔔 8. Push Notifications
Design flow:
App → Firebase/APNs → Backend → Device
Handle:
- Foreground vs background
- Deep linking from notifications
📦 9. CI/CD Pipeline
Modern RN apps use:
- GitHub Actions / Bitrise
- Fastlane for builds
- OTA updates (CodePush / Expo Updates)
🧪 10. Testing Strategy
| Type | Tool |
| --------- | ------------------ |
| Unit | Jest |
| Component | RN Testing Library |
| E2E | Detox / Maestro |
🎯 Final Pro Tip for Interviews
When answering system design:
✅ Talk about scalability ✅ Mention performance ✅ Cover security ✅ Include offline support ✅ Explain trade-offs
That combination screams “hire this developer” 😄
Keep Learning and Keep Sharing 😄

Comments
Loading comments…