Zepto is an Indian quick-commerce company known for its rapid grocery-delivery model. The Software Engineer II (React Native) interview process focused on mobile application development, JavaScript fundamentals, React component design, product engineering, and frontend system design.
The candidate entered the process with professional experience at the SDE 2 level and expected the interviews to evaluate React Native expertise at a comparable level. The process consisted of three rounds and included practical coding exercises, a machine-coding assignment, and a product-focused system design discussion.
The interview process followed this timeline:
The first round was conducted by a senior mobile engineer and began with a discussion of the candidate's React Native experience. Topics included production performance optimisation, bundle-size management, native-module integration, and debugging communication issues between JavaScript and native code.
The interviewer then presented two coding exercises.
The candidate was asked to implement a memoization function that returned a memoized function and cached results for repeated arguments.
function memoize(fn) {
const cache = new Map();
return function memoizedFn(...args) {
const key = JSON.stringify(args);
if (cache.has(key)) {
return cache.get(key);
}
const result = fn.apply(this, args);
cache.set(key, result);
return result;
};
}
The follow-up discussion covered several production considerations:
JSON.stringify can be unreliable for complex objects and cannot handle circular references.WeakMap may be more appropriate for certain object-key scenarios.useAsyncStorage HookThe second exercise required a custom React Native hook for reading, updating, and removing values from AsyncStorage. The hook was expected to expose the stored value, setter and removal functions, loading state, and error state.
import { useState, useEffect, useCallback } from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
function useAsyncStorage(key, initialValue = null) {
const [storedValue, setStoredValue] = useState(initialValue);
const [loading, setLoading] = useState(true);
const [error, setError] = useState(null);
useEffect(() => {
const loadValue = async () => {
try {
const item = await AsyncStorage.getItem(key);
if (item !== null) setStoredValue(JSON.parse(item));
} catch (err) {
setError(err);
} finally {
setLoading(false);
}
};
loadValue();
}, [key]);
const setValue = useCallback(async (value) => {
try {
setError(null);
const valueToStore = value instanceof Function
? value(storedValue)
: value;
setStoredValue(valueToStore);
await AsyncStorage.setItem(key, JSON.stringify(valueToStore));
} catch (err) {
setError(err);
}
}, [key, storedValue]);
const removeValue = useCallback(async () => {
try {
setError(null);
setStoredValue(initialValue);
await AsyncStorage.removeItem(key);
} catch (err) {
setError(err);
}
}, [key, initialValue]);
return [storedValue, setValue, removeValue, loading, error];
}
The interviewer also asked how multiple components using the same storage key could remain synchronised. The candidate suggested using shared state management or a context provider that centralised storage access and notified all consumers when a value changed.
The second round began with JavaScript output-based questions covering closures and variable scoping.
For example, the interviewer tested the behaviour of var inside a loop with asynchronous callbacks:
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 100);
}
The output is 3, 3, 3 because var is function-scoped and all callbacks reference the same final value. The discussion also covered independent closures created by separate invocations of a function:
function outer() {
let x = 10;
return function inner() {
console.log(x);
x++;
};
}
const first = outer();
const second = outer();
first();
first();
second();
The first closure prints 10 and then 11, while the second closure maintains a separate x value and prints 10.
The main machine-coding task required a recursive React folder tree component. The component needed to display nested folders and files and allow users to expand and collapse folders.
import React, { useState } from 'react';
function FolderTree({ data }) {
return (
<div className="folder-tree">
<TreeNode node={data} />
</div>
);
}
function TreeNode({ node }) {
const [isExpanded, setIsExpanded] = useState(false);
const hasChildren = node.children?.length > 0;
return (
<div className="tree-node">
<div
className="node-content"
onClick={() => hasChildren && setIsExpanded(!isExpanded)}
>
<span>{hasChildren ? (isExpanded ? '📂' : '📁') : '📄'}</span>
<span>{node.name}</span>
</div>
{hasChildren && isExpanded && (
<div className="children">
{node.children.map((child) => (
<TreeNode key={child.id} node={child} />
))}
</div>
)}
</div>
);
}
The follow-up discussion focused on scaling the component for production use. Potential improvements included:
role="tree" and aria-expanded.The final round combined behavioural questions with a frontend system design exercise. The hiring manager asked about the candidate's current React Native projects, team responsibilities, production incident handling, and difficult technical decisions.
The system design exercise presented a product listing page similar to a large e-commerce website. The candidate was asked to design the API response structure and explain how the frontend could be implemented efficiently.
The proposed response separated product information, pricing, media, ratings, availability, metadata, pagination, and filter data.
{
"products": [
{
"id": "prod_123",
"title": "Product Name",
"price": {
"current": 999,
"original": 1299,
"discount": 23
},
"image": {
"thumbnail": "https://cdn.example.com/thumb/prod_123.jpg",
"full": "https://cdn.example.com/full/prod_123.jpg"
},
"rating": {
"average": 4.2,
"count": 156
},
"availability": {
"inStock": true,
"fastDelivery": true
}
}
],
"pagination": {
"currentPage": 1,
"totalPages": 45,
"pageSize": 20,
"totalItems": 892
}
}
The frontend optimisation strategy covered several areas:
The round tested more than implementation ability. It evaluated API design, performance trade-offs, scalability, real-time data handling, and the ability to reason about an e-commerce product experience.
After the three rounds, the recruiter communicated that the team had been impressed by the candidate's technical performance but intended to offer a Software Engineer I position. The candidate explained that the expected level was Software Engineer II, matching the candidate's existing SDE 2 experience, and stated that only a comparable or higher level would be considered.
The recruiter indicated that the level could be discussed with the team. According to the experience, no further update arrived, leaving the process without a clearly documented acceptance or rejection.
Senior React Native interviews can cover production concerns rather than only framework syntax. Candidates should be prepared to discuss performance profiling, bundle size, native modules, storage, bridge behaviour, offline support, and debugging strategies.
Closures, scoping, asynchronous execution, memoization, and function identity remain important for frontend and React Native roles. Output-based questions often reveal whether a candidate understands how JavaScript behaves at runtime.
A recursive folder tree is simple at small scale but introduces performance and accessibility concerns as the data grows. Strong solutions consider virtualisation, lazy loading, keyboard navigation, search, and semantic accessibility from the beginning.
Frontend system design involves more than creating an API shape. A complete answer should address pagination, caching, image delivery, loading states, debouncing, prefetching, real-time updates, error handling, and the scale of the underlying data.
Candidates should confirm the expected level, responsibilities, reporting structure, and compensation range before investing heavily in an interview process. A technically successful process can still end unsuccessfully if the candidate's level and the company's evaluation are not aligned.
Accepting a lower title may be reasonable when it provides exceptional mentorship, a significant domain transition, meaningful equity, stronger long-term opportunities, or a clearly defined path to promotion. However, candidates should be cautious when the role carries the same responsibilities as a higher-level position without equivalent recognition or progression.
The Zepto Software Engineer II (React Native) interview experience demonstrated a technically relevant process covering React Native, JavaScript, React machine coding, and frontend system design. The candidate completed three rounds and showed strong alignment with the technical subject matter, but the proposed Software Engineer I level created a fundamental mismatch.
The experience highlights the importance of preparing for practical engineering discussions while also protecting long-term career progression. Technical performance and company interest are valuable, but role-level alignment should remain an explicit part of the final decision.
This experience was originally published on medium.com. Support the author by visiting the original post.
Read on medium.com