QuyTech
MMP Refratech Interview Questions and Answers
Q1. how will you setup push notification to your project?
Setting up push notifications involves configuring a push notification service, integrating it with the app, and handling notifications in the code.
Choose a push notification service provider like Firebase Cloud Messaging (FCM) or OneSignal.
Set up an account with the chosen service provider and obtain necessary credentials (API keys, tokens, etc).
Integrate the push notification SDK provided by the service provider into your React Native project.
Implement code to handle receiv...read more
Q2. List down all hooks which you used before?
useState, useEffect, useContext, useReducer, useRef
useState - for managing state in functional components
useEffect - for side effects in functional components
useContext - for accessing context in functional components
useReducer - for managing complex state logic
useRef - for accessing DOM elements or storing mutable values
Q3. how will you optimize bundle size ?
Optimizing bundle size in React Native involves code splitting, tree shaking, lazy loading, and using smaller libraries.
Use code splitting to split the code into smaller chunks that can be loaded on demand.
Utilize tree shaking to remove unused code from the bundle.
Implement lazy loading to only load components when they are needed.
Choose smaller libraries or custom solutions over large dependencies to reduce bundle size.
Optimize images and assets by compressing them and using...read more
Q4. What is redux ? why we need to use this?
Redux is a predictable state container for JavaScript apps. It helps manage application state in a more organized and efficient way.
Centralized state management
Predictable state changes with actions and reducers
Easier debugging and testing
Helps in scaling and maintaining large applications
Example: Storing user authentication state across the app
Q5. tell me features of ES6?
ES6 is the 6th version of ECMAScript, introducing new features and syntax improvements.
Arrow functions for concise syntax: const add = (a, b) => a + b;
Let and const for block-scoped variables: let x = 5; const y = 10;
Template literals for string interpolation: const name = 'John'; console.log(`Hello, ${name}!`);
Classes for object-oriented programming: class Person { constructor(name) { this.name = name; } }
Destructuring for easy assignment: const { firstName, lastName } = per...read more
Q6. different between let vs var vs const?
let is block scoped, var is function scoped, const is a constant variable.
let is block scoped, meaning it is only accessible within the block it is declared in.
var is function scoped, meaning it is accessible throughout the function it is declared in.
const is a constant variable, its value cannot be reassigned once it is initialized.
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month