React Native Developer Interview Questions & Answers
1. What is React Native?
React Native is an open-source framework developed by Facebook for building mobile apps using JavaScript
and React. It uses native components and provides near-native performance.
2. How is React Native different from React (ReactJS)?
- ReactJS is for web, rendering HTML in browsers.
- React Native is for mobile, rendering native mobile components.
3. What is JSX?
JSX is a syntax extension for JavaScript that lets you write HTML-like code inside JavaScript.
4. What are the core components of React Native?
Core components include View, Text, Image, ScrollView, FlatList, TextInput, and Button.
5. What are props and state?
- Props: Passed from parent to child, immutable.
- State: Local and mutable using useState.
6. What is the difference between ScrollView and FlatList?
- ScrollView: Renders all items at once.
- FlatList: Renders only visible items, suitable for large data.
7. What is the purpose of useEffect?
useEffect performs side effects like data fetching or event listeners after render.
8. How do you make API calls in React Native?
Using Fetch API or Axios inside useEffect for lifecycle-driven calls.
9. How do you manage state globally in React Native?
With Redux, Context API, MobX, or Recoil depending on complexity.
10. How do you navigate between screens?
Using react-navigation with navigation.navigate('ScreenName').
11. How to write platform-specific code?
Use Platform.OS === 'android' or separate files like Button.ios.js / Button.android.js.
12. What is the React Native bridge?
It allows communication between JS and native modules using an asynchronous messaging system.
13. What is Hermes?
Hermes is a JS engine optimized for React Native with faster startup and better memory usage.
14. How do you handle form validation?
Use Formik and Yup libraries for structured form handling and validation.
15. What is the difference between useMemo and useCallback?
- useMemo: Caches values
- useCallback: Caches function references
16. App crashes on Android 11, what do you do?
Check logs with adb logcat, verify permissions, and ensure libraries are compatible.
17. How do you optimize performance in React Native?
Use FlatList, memoization hooks, Hermes engine, and avoid unnecessary re-renders.