Index

General/ Easy

  1. What is List View?
  2. What is Virtual DOM?
  3. What are some ways of styling a react native component?
  4. What is the difference between RCT & RNT?
  5. List the core components of React Native.
  6. What is JSX?
  7. What are native apps?
  8. What is Render () in React Native?
  9. What is networking?
  10. What are the advantages of native apps over hybrid apps?
  11. What is React Native Apps?
  12. Name at least one style property that can increase tappable area around an element.
  13. What are components of Redux?
  14. Name a few companies that are built using React Native.
  15. What is difference between React Component and React Element?
  16. How to test if a node_modules would run on React Native? do you know which will run fine?
  17. What are best UI Components for React Native?
  18. What is the difference between React Js and React Native?
  19. What is the storage system in React Native?
  20. What are navigators?
  21. What is React Native?
  22. Tell us some options of storing persisting data in a react native app.
  23. What is Scrollview?
  24. What is props in React Native?
  25. Can we combine native ios or android code in React Native?
  26. What is the use of XHR module in React Native?
  27. How does React Native deals with a variety of screen sizes?
  28. What are animations? How will they work in React Native?
  29. How is React Native different from other frameworks for developing a mobile application?
  30. Is there browser IDE for react native?
  31. What is Flex?
  32. What determines the size of a component and what are the ways?
  33. What is Render?
  34. Will react native support html?
  35. What are the disadvantages of using React Native?
  36. What is Cross platform application development?
  37. Why does React Native use Redux?
  38. How does React Native load data on Server?
  39. How can you improve the performance (load speed, rendering quality) of images?
  40. What are the advantages of using React Native?
  41. What are hybrid apps?
  42. How do you run a React Native app on Android?
  43. What is the difference between controlled and uncontrolled components?
  44. What is Style?
  45. Why do we use curly brace while importing some library?
  46. What is Flexbox?
  47. What are the other modules need for react native navigation?
  48. What are the similarities between React and React Native?
  49. Who is Founder of React Native?
  50. What were the major problems with MVC framework?
  51. How can you pick up camera images in React Native?
  52. What are the types of data that control a component?
  53. What are keys used for in React Native?
  54. What is view?
  55. What does NPM stand for?
  56. How does Virtual DOM work in React Native?
  57. What is the point of StyleSheet.create() in React Native?
  58. are React components usable in React Native?
  59. How many threads run in React Native?
  60. What are Refs used for in React Native?
  61. What does NPM do?
  62. What are the steps to create your first React Native Apps?
  63. What is state in a React component?
  64. How do you tell React to build in production mode and what will that do?
  65. When would you prefer a class component over functional component?
  66. Is React Native Open Source?

Intermediate

  1. What strategy would you use to optimize a large list of items on FlatList?
  2. When do you use a TouchableHighlight?
  3. How do you re-render a FlatList?
  4. do you know about FlatList in React Native and its advantage over scrollview?
  5. Have you heard of Listview?
  6. What is Axios in React Native?
  7. Why animations very clear and important in React Native?
  8. How can you keep animations from being blocked on the JavaScript thread? Describe how this works and explain some of the limitations.
  9. What is a Fragment and why would you use one?
  10. What is the use of ScrollView component?
  11. Can you provide some ideas on how to prevent memory leaks in your app?
  12. List the difference between React Native and Xamarin.
  13. What is Style Vs Stylesheet in React Native?
  14. When would you use ScrollView over FlatList or vice-versa?
  15. What does TouchableHighlight do?
  16. How are Hot Reloading and Live Reloading in React Native different?
  17. What is the use of a React native packager?
  18. Which database is best for react native?

Advanced

  1. Why is the InteractionManager important?
  2. What do you mean by component-driven development?
  3. What is Fabric in React Native?
  4. What are features of presentational/dumb components?
  5. What is meant by HOC in React Native?
  6. What happens if you edit a module that only exports React components in Fast Refresh?
  7. What is Render Props Pattern?
  8. What are the 3 principles of the Fabric Architecture of React Native?
  9. What are Smart/Container components?
  10. Explain the re-architecture of React Native and the importance of the changes?
  11. What JavaScript engine does React native use?
  12. What are the features of Container/Smart components?
  13. In Fast Refresh, what will happen if you edit files imported by modules outside of the React Tree?
  14. What is the Gesture Responder System?
  15. What are Presentational/Dumb components?
  16. What is meant by InteractionManager?
  17. do you know how can you detect memory leaks on the app?
  18. What is "Fast Refresh"?
  19. What happens if you edit a module where the exports aren't React components in Fast Refresh?


The Questions
General/ Easy
1. What is List View? โ†‘

List view is a core component of React Native which displays vertically scrolling lists.

2. What is Virtual DOM? โ†‘

Virtual dom is an in-memory tree representation of the real DOM with lightweight elements. It provides a declarative way of DOM representation for an app and allows to update UI whenever the state changes.

3. What are some ways of styling a react native component? โ†‘
  • Inline styling
  • StyleSheet
  • Styled Components
4. What is the difference between RCT & RNT? โ†‘
  • RNT Letโ€™s say you want to use your own custom code written in iOS or Android. You have to prefix your native files with RNT.

  • RCT The native React libraries provided by Facebook are prefixed with RCT.

5. List the core components of React Native. โ†‘
  • View: It is the basic built-in component used to build UI of Mobile apps. The view is similar to the div in HTML. It is a content area where you can display your content.
  • States: It is used to control the components. The variable data can be stored in the state. It is mutable means a state can change the value at any time.
  • Props: Props are used to pass data to the different components. It is immutable means props cannot change the value. It provides a connection between the container component and a presentation component.
  • Style: It is an essential component in the web or mobile, which makes the application attractive. React Native does not require any special language or syntax for styling. It can style the application using the JavaScript object.
  • Text: This component displays text in the app. It uses the basic component textInput to take text input from the user.
  • ScrollView: It is a scrolling container used to host multiple views. It can be used to render the large list or content in view with a scroll bar.
6. What is JSX? โ†‘

JSX is a way for writing xml code along with javascript, known as javascript extension. It is used most of the time to create react native user interfaces.

7. What are native apps? โ†‘
  • Native mobile apps are the most common type of app.
  • They are built for specific platforms and are written in languages that the platform accepts. For example, Swift and Objective-C for native iOS apps and Java or Kotlin for native Android apps.
  • Native apps are also built using the specific Integrated Development Environment (IDE) for the selected operating systems
8. What is Render () in React Native? โ†‘

It is mandatory for every react native component to have a render (). One single react element is returned by Render that is representation of native DOM component.

9. What is networking? โ†‘

It provides Fetch Functions to request Http Requests to another server.

10. What are the advantages of native apps over hybrid apps? โ†‘
  • They work efficiently as they are built for that specific platforms.
  • Native apps are responsive on all the platform-specific devices.
  • They are very fast and the best in the app performance.
  • Native apps better integrate with mobile hardware.
  • They have interactive and intuitive User Interface (UI) and User Experience (UX) as per the user expectations based on specific platforms.
  • Some of the Native mobile apps work even without the Internet connection.
  • Native apps are secured and reliable.
  • They can easily access or utilize the other device-specific capabilities like GPS, Camera, Contacts, etc.
11. What is React Native Apps? โ†‘

React Native Apps are not web applications. These types of apps are running on mobile devices, and cannot load over the browser. Also, they are not hybrid apps that build over Ionic, Phonegap, etc. which can run over WebView component. They are the real native apps built in a single language JavaScript with the native components to run on mobile devices.

12. Name at least one style property that can increase tappable area around an element. โ†‘
  • Padding (and also paddingVertical, ...Horizontal, ...Left, ...Right, ...Top, ...Bottom).
  • minHeight and minWidth.
  • hitSlop.
  • Make Tappleble areas larger.
13. What are components of Redux? โ†‘
  • Action
  • Reducer
  • View
  • Store
14. Name a few companies that are built using React Native. โ†‘

Facebook, Airbnb, Instagram, Pinterest, Tesla, Uber, etc.

15. What is difference between React Component and React Element? โ†‘

React Component is either a class or a function which accepts input data, and returns React element. On the other hand, react element does not create react component, but instead it only displays its look.

16. How to test if a node_modules would run on React Native? do you know which will run fine? โ†‘

All node_modules, as any real javascript library, would run fine if they donโ€™t rely upon Node.js run-time modules or web-specific intentions. There is no defined way to test the compatibility of any node_modules.

17. What are best UI Components for React Native? โ†‘
  • Material UI
  • React Bootstrap
  • Semantic UI
  • React Toolbox
  • Ant Design
18. What is the difference between React Js and React Native? โ†‘

React Js: ReactJs is a JavaScript Library used for developing apps in HTML5 using JavaScript as the developing language.

React Native: React Native is used to develop native mobile apps using JavaScript as the development language.

19. What is the storage system in React Native? โ†‘

React Native uses AsyncStorage class to store data in key-value pair which is global to all app.

20. What are navigators? โ†‘

These are used to change from one scene to another scene.

21. What is React Native? โ†‘
  • React Native is a mobile app development framework that enables the development of multi-platform Android and iOS apps using native UI elements.
  • It is based on the JavaScriptCore runtime and Babel transformers.
  • This famous framework for mobile app development started in the summer of 2013 as Facebookโ€™s internal hackathon project.
22. Tell us some options of storing persisting data in a react native app. โ†‘
  • Async Storage ("built-in" to React Native)
  • SQLite
  • Realm
  • Firebase
  • MongoDB
23. What is Scrollview? โ†‘

It helps in viewing the large content using a scrollbar.

24. What is props in React Native? โ†‘

Props are parameters which are used to customise a component at the time of creation and on re-render. Props are like arguments passed to a React component.

25. Can we combine native ios or android code in React Native? โ†‘

Yes. iOS and Android can be combined in React Native.

26. What is the use of XHR module in React Native? โ†‘

XHR HttpRequest is an API, which is utilized for implementation of HttpRequest in order to post data on a server.

27. How does React Native deals with a variety of screen sizes? โ†‘
  • Flexbox provides uniform layout on screen with different sizes using its three properties: justify-content, flex-direction, alignItems.
  • Dimensions can style the page accurately on screen with different sizes.
  • Pixel ratio class can be utilized to access the pixel density of the device and render the image accordingly.
  • The aspect ratio sets the height.
  • Scrollview, a scrolling container that contains multiple components and can be scrolled both vertically and horizontally.
28. What are animations? How will they work in React Native? โ†‘

Animations are manipulative images or objects that appear as moving objects. We can use animations with React Native API, Animated.decay, Animated.parallel and Animated.stagger.

29. How is React Native different from other frameworks for developing a mobile application? โ†‘
  • React Native app is a real mobile app, not a web app running inside a mobile app shell. Other alternative like Cordova, ionic run a web app in a web view.
  • React Native app is converted into machine code which runs on mobile that is why it gives better performance than other alternatives.
  • React Native mobile apps are more close to Native app development in comparison to other Javascript frameworks
  • Mobile application built with React native has small bundle size in comparison to older hybrid application development framework.
30. Is there browser IDE for react native? โ†‘

Yes, there are Browser IDE for React Native.

31. What is Flex? โ†‘

Flex or flex boxing is a technique to distribute different components in react native apps. You can distributes react native views horizontally, vertically, provide space in between or space around.

32. What determines the size of a component and what are the ways? โ†‘

The height and width determine the size of component on the screen. Two different ways to set height and width.

  • Fixed Dimensions
  • Flex Dimensions
33. What is Render? โ†‘

Render Props is a technique in which react components are transformed into DOM nodes which are understood by the browser.

34. Will react native support html? โ†‘

React Native does not support HTML.

35. What are the disadvantages of using React Native? โ†‘
  • React Native is still new and immature: React Native is a new framework in Windows, Android, and iOS programming languages. It is still in the improvement stage, which can have a negative impact on the apps.
  • Learning is tough: React Native cannot learn quickly, especially for a fresher in the app development field.
  • It Lacks the Security Robustness: React Native is an open-source JavaScript framework, which is fragile and creates a gap in the security robustness. When you are creating banking and financial apps where data is highly confidential, experts advise not to choose React Native.
  • It Takes More Time to Initialize: React Native takes a lot of time for initializing the runtime even if you are using the hi-tech gadgets and devices.
  • Existence is Uncertain: As Facebook develop this framework, its presence is uncertain since it keeps all the rights to kill off the project anytime. As the popularity of React Native rises, it is unlikely to happen.
36. What is Cross platform application development? โ†‘

Cross Platform Application Development is a platform for creating different software which are supported by multiple mobile operating systems.

37. Why does React Native use Redux? โ†‘

Redux is a standalone state management library that React Native use to simplify data flow within an app.

38. How does React Native load data on Server? โ†‘

React Native consumes Fetch API to load data on the Server when needed.

39. How can you improve the performance (load speed, rendering quality) of images? โ†‘
  • Server-side compression
  • Third-party tools such as Cloudinary
  • Image caching
40. What are the advantages of using React Native? โ†‘
  • Cross-Platform: It offers the facility to "Write once and run everywhere." It is used to create apps for Android, iOS, and Windows platforms.
  • Performance: The code written in React Native is compiled into native code, which enables it for all operating systems to provide closer native appearance and functions in the same way on all platforms.
  • Community: React Native provides a large community of passionate developers who are always ready to help us to fix bugs, and issues occur at any instant.
  • Hot Reloading: Making a few changes in your app's code immediately visible during development. If the business logic is changed, its reflection is live reloaded on screen.
  • Faster Development: React Native helps to develop apps fast. It uses a common language to build an app for Android, iOS, and Windows platforms, which gives speedier app deployment, delivery, and quicker time-to-market.
  • JavaScript: JavaScript knowledge is used to build native mobile apps.
41. What are hybrid apps? โ†‘
  • Hybrid mobile apps are applications that are installed on a device, just like any other app.
  • Hybrid apps are deployed in a native container that uses a mobile WebView object. When the app is used, this object displays web content thanks to the use of web technologies (CSS, JavaScript, HTML).
42. How do you run a React Native app on Android? โ†‘
  • First, enable the USB Debugging option inside the Developer Options.
  • Plug the device via USB to the development machine.
  • Run adb devices command to check that the device is correctly connected to ADB
  • Now install and launch your app by using the below-given command: $ react-native run-android
43. What is the difference between controlled and uncontrolled components? โ†‘

If the value displayed on UI by the Component is determined by form input, then it is called a controlled component. On the other side, if the State determines the value, then it is called an uncontrolled component.

44. What is Style? โ†‘

Style is a core component used in React Native. To make an app look stylish, we use Style Core Component to decorate it.

45. Why do we use curly brace while importing some library? โ†‘

Curly braces are used to import small pieces of library.

46. What is Flexbox? โ†‘

Flexbox is used to give a consistent layout on different screen sizes.

47. What are the other modules need for react native navigation? โ†‘
  • react-native-gesture-handler
  • react-native-reanimated
  • react-native-screens
  • react-native-safe-area-context
  • react-navigation-stack
48. What are the similarities between React and React Native? โ†‘

Both, React and React Native uses:

  • React Lifecycle Methods
  • Recat State and Props
  • Recat Components
  • Redux Library
49. Who is Founder of React Native? โ†‘

Jordan Walke (Facebook) is founder of React Native.

50. What were the major problems with MVC framework? โ†‘
  • Applications were slow and inefficient.
  • There was huge memory wastage
  • Because of circular dependencies, a complicated model was created around models and views.
51. How can you pick up camera images in React Native? โ†‘

React Native Image Picker is a module, which helps you in picking images from your library or directly from camera.

52. What are the types of data that control a component? โ†‘
  • There are two types of data that control a component: props and state.
  • props are set by the parent and they are fixed throughout the lifetime of a component. For data that is going to change, we have to use state.
53. What are keys used for in React Native? โ†‘

Keys are used for making a component unique after a change.

54. What is view? โ†‘

It is defined as a container, which supports layouts such as some touch handling, flexbox and more.

55. What does NPM stand for? โ†‘

NPM stands for Node Package Manager.

56. How does Virtual DOM work in React Native? โ†‘
  • Diffing: Virtual DOM tree is updated, and React Native compares previous and present version of Virtual DOM. This is called diffing.
  • Updating Real DOM: When diffing has been done, react native updates those changes only in real DOM.
57. What is the point of StyleSheet.create() in React Native? โ†‘

In React Native, StyleSheet.create() send the style only once through the bridge to avoid passing new style object and ensures that values are immutable and opaque.

58. are React components usable in React Native? โ†‘

Yes, React components are used in React Native.

59. How many threads run in React Native? โ†‘
  • React Native UI Thread (Main Thread): This thread is used for the layout of the mobile app.
  • React Native JavaScript Thread: It is a thread where our business logic will run. It means JS thread is a place where our JavaScript code is executed.
  • React Native Modules Thread: Sometimes, our app needs access to platform API, which happens as a part of native module thread.
  • React Native Render Thread: This thread is used to generate actual OpenGL commands used to draw the app UI.
60. What are Refs used for in React Native? โ†‘

Refs provide you direct access to a DOM element or a components instance.

61. What does NPM do? โ†‘

npm is a line interface program. It installs command line interface in React Native.

62. What are the steps to create your first React Native Apps? โ†‘
  • First, to create native app: npm install -g create-react-native-app

  • Create your first React Native App: create-react-native-app myFirstProject

  • Now, navigate to the project directory: cd myFirstProject

  • Run the following command: npm start

63. What is state in a React component? โ†‘

State is another way apart from props by which we can modify a React component. React componentโ€™s state value changes in the life cycle of component, unlike props. We should not directly change state value of react component. React framework gives the setState method by which state of a component should be changed.

64. How do you tell React to build in production mode and what will that do? โ†‘

Typically youโ€™d use Webpackโ€™s DefinePlugin method to set NODE_ENV to production. This will strip out things like propType validation and extra warnings. It is also a good idea to minify your code because React uses Uglifyโ€™s dead-code elimination to strip out development only code and comments, which will drastically reduce the size of your bundle.

65. When would you prefer a class component over functional component? โ†‘

A Class component is used when a component has state and lifecycle, otherwise a functional component is used.

66. Is React Native Open Source? โ†‘

Yes. React Native is Open-Source Mobile Network Application Framework.

Intermediate
1. What strategy would you use to optimize a large list of items on FlatList? โ†‘
  • Use PureComponent on renderItem with bind methods.
  • Add keyExtractor property.
  • Add pagination.
  • Define getItemLayout.
  • Define removeClippedSubviews true.
2. When do you use a TouchableHighlight? โ†‘

The TouchableHighlight can be used where you would use a button or link on the web. The background of this component becomes dark on pressing it.

3. How do you re-render a FlatList? โ†‘

By using extraData property on the FlatList component. By passing extraData={this.state} to FlatList we make sure FlatList will re-render itself when the state.selected changes.

4. do you know about FlatList in React Native and its advantage over scrollview? โ†‘

FlatList is a component used to display a line of data. FlatList is often used to display long lost of data where the number of items could fluctuate. It renders only the element in focus on the screen, not the whole list, thus it is better to use FlatList rather than scrollview.

5. Have you heard of Listview? โ†‘

It comprises of a list of items that are displayed in a scrollable vertical list. It is a core React native Component.

6. What is Axios in React Native? โ†‘

With the help of Axios, the user can send GET, POST, PUT, and DELETE requests to the REST API and render a response to the application.

7. Why animations very clear and important in React Native? โ†‘

The animated API of Native React is designed to be serialized. That means users can send animation to native without having to go through the bridge on every frame. Once the animation gets started, the JS thread will be blocked, and the animation will run smooth. Due to the code is converted to native views before rendering, the animation will run smoothly in React native

8. How can you keep animations from being blocked on the JavaScript thread? Describe how this works and explain some of the limitations. โ†‘
  • By adding useNativeDriver: true to the animation options.
  • It works by passing the animation to the native thread where it will not be blocked by the JavaScript thread.
  • This will work on non-layout properties like opacity and transform, but will not work on things like flex, or position.
9. What is a Fragment and why would you use one? โ†‘
  • A fragment is a way of grouping JSX elements together without adding to the render tree by wrapping them in an additional view.
  • A good example of where to use a fragment is in a dedicated component of a screen where no additional container styling is needed.
  • The benefits of using a fragment is less complex styling in some cases and less complex rendering.
10. What is the use of ScrollView component? โ†‘
  • The ScrollView is a generic scrolling container that can contain multiple components and views. The scrollable items need not be homogeneous, and you can scroll both vertically and horizontally.
  • ScrollView renders all its react child components at once, but this has a performance downside.
11. Can you provide some ideas on how to prevent memory leaks in your app? โ†‘
  • Release timers/listeners added in componentDidMount.
  • Handle closure scope.
12. List the difference between React Native and Xamarin. โ†‘

Using Xamarin, you can build iOS, Android Windows, and Mac apps. That means it is a cross-platform framework, but it uses c# for development rather than javascript, unlike React native.

13. What is Style Vs Stylesheet in React Native? โ†‘
  • Style is a set of attributes used to design the UI part of the application. It consists of colors, strings, layouts, etc. The style in React Native is similar to CSS in HTML.
  • A stylesheet is a group of styles. The stylesheet is used when grows in size then its cleaner approach put all styles in a single place.
14. When would you use ScrollView over FlatList or vice-versa? โ†‘
  • do you need to render a list of similar items from an array or the data is very big? Use FlatList.
  • do you need to render generic content in a scrollable container and the data is small? Use ScrollView.
15. What does TouchableHighlight do? โ†‘

TouchableHighlighy is a wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, which allows the underlay color to show through, darkening or tinting the view. TouchableHighlight must have one child.

16. How are Hot Reloading and Live Reloading in React Native different? โ†‘
  • Live reloading reloads or refreshes the entire app when a file changes.
  • Hot reloading only refreshes the files that were changed without losing the state of the app.
17. What is the use of a React native packager? โ†‘
  • Merging all the code into one javascript file.
  • It is capable of translating the js code that your device has trouble understanding.
  • The conversion of an image in an object is done by React native packager.
18. Which database is best for react native? โ†‘

SQLite database is best for react native.

Advanced
1. Why is the InteractionManager important? โ†‘

React Native has only one thread for making UI updates which can be overloaded and result in drop frames. Developers use interaction manager to ensure that the function is only executed after the animations occurred so that any frame drops may not result.

2. What do you mean by component-driven development? โ†‘

The process of breaking the entire UI into various minor reusable components and developing them alone. Thus building entire UI by adding those independently built reusable components. It leads to faster and robust development of applications. It results in less code, thus less maintenance and fewer bugs to fix.

3. What is Fabric in React Native? โ†‘

Fabric is the new React Native architecture proposed by the community to make the mobile application user experience close or even better than the native apps.

4. What are features of presentational/dumb components? โ†‘
  • Are concerned with how things look.
  • Have markup and styles of their own.
  • Have no dependencies on the rest of the app, such as Redux stores.
  • Donโ€™t specify how the data is loaded or mutated.
  • Receive data and callbacks exclusively via props.
  • Rarely have their own state (when they do, itโ€™s UI state rather than data).
5. What is meant by HOC in React Native? โ†‘

HOC is a technique in React Native, which allows you to reuse component logic. HOC takes a component, and gives back new component.

6. What happens if you edit a module that only exports React components in Fast Refresh? โ†‘

If you edit a module that only exports React component(s), Fast Refresh will update the code only for that module, and re-render your component. You can edit anything in that file, including styles, rendering logic, event handlers, or effects.

7. What is Render Props Pattern? โ†‘

Render Props pattern is to share data and functionality between components without repeating code. Besides sharing the data and functionality of the shared component, render props enabled developer to have the full control of the component rendering.

8. What are the 3 principles of the Fabric Architecture of React Native? โ†‘
  • Prioritizing the Tasks
  • Immutable Shadow Tree
  • Reducing Memory Consumption
9. What are Smart/Container components? โ†‘

Smart component keep track of state and concern with how things work. Container component still receives data or function via props and can pass it to another smart component or dumb component as props. Container component pattern is class-based components and have constructor() functions.

10. Explain the re-architecture of React Native and the importance of the changes? โ†‘
  • Facebook is working internally to change the way Javascript interfaces with Native Modules. This is an overhaul of the UI-Layer, itโ€™s codenamed โ€œFabricโ€
  • TurboModules will be the next iteration of NativeModules. Importantly this will ensure native modules are loaded eagerly instead of all at once avoiding startup overhead
  • Also, TurboModules can be called synchronously avoiding asynchronous calls across the RN bridge
  • Along with this change the core of React Native is going lean. Which means many libraries such as Async Storage, Geolocation and Device information are moving to separate repositories
11. What JavaScript engine does React native use? โ†‘

In most cases, React Native will use JavaScriptCore, the JavaScript engine that powers Safari.

12. What are the features of Container/Smart components? โ†‘
  • Are concerned with how things work.
  • Donโ€™t usually have any markup of their own except for some wrapping Views, and never have any styles.
  • Provide the data and behavior to presentational or other container components.
  • Call Redux actions and provide these as callbacks to the presentational components.
  • Are often stateful, as they tend to serve as data sources.
  • Are usually generated using higher order components such as connect() from React Redux, createContainer() from Relay, or Container.create() from Flux Utils, rather than written by hand.
13. In Fast Refresh, what will happen if you edit files imported by modules outside of the React Tree? โ†‘

If you edit a file that's imported by modules outside of the React tree, Fast Refresh will fall back to doing a full reload.

14. What is the Gesture Responder System? โ†‘

Gesture Responder System is a system that manages the lifecycle of the applications which are built in React- Native framework.

15. What are Presentational/Dumb components? โ†‘

This component only responsible to present something to DOM. There will be no logic at all inside this component therefore it is called dumb component. Because dumb component only focus on the presentation, it is ideally will the most reusable component.

16. What is meant by InteractionManager? โ†‘

InteractionManager is native module in react native, which helps animations run smoothly in reactive native.

17. do you know how can you detect memory leaks on the app? โ†‘

Xcode and Android studio provide tools to track the memory used by an app. These tools can be used to test the app on both devices and simulators.

18. What is "Fast Refresh"? โ†‘

Fast Refresh is a React Native feature that allows you to get near-instant feedback for changes in your React components. Fast Refresh is enabled by default, and you can toggle "Enable Fast Refresh" in the React Native developer menu.

19. What happens if you edit a module where the exports aren't React components in Fast Refresh? โ†‘

If you edit a module with exports that aren't React components, Fast Refresh will re-run both that module, and the other modules importing it. So if both Button.js and Modal.js import Theme.js, editing Theme.js will update both components.

Want to test this skill? Checkout Adaface assessments

React Native & JavaScript

View Test