0
0
React Nativemobile~20 mins

React Native architecture (bridge, new architecture) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
React Native Architecture Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the role of the React Native Bridge?
In React Native's classic architecture, what does the Bridge do?
AIt manages the app's navigation stack and screen transitions automatically.
BIt allows JavaScript and native code to communicate asynchronously by sending serialized messages.
CIt compiles JavaScript code directly into native machine code for faster execution.
DIt handles styling and layout calculations on the native side only.
Attempts:
2 left
💡 Hint
Think about how JavaScript talks to native modules in React Native.
ui_behavior
intermediate
2:00remaining
How does the new React Native architecture improve UI updates?
Compared to the classic Bridge, how does the new React Native architecture handle UI updates more efficiently?
AIt uses a synchronous bridge that blocks JavaScript until UI updates finish.
BIt uses a JavaScript-driven UI thread that directly manipulates native views without serialization.
CIt removes the need for JavaScript by writing UI entirely in native code.
DIt introduces a Fabric renderer that allows concurrent and asynchronous UI updates with fine-grained control.
Attempts:
2 left
💡 Hint
Think about how the new Fabric renderer changes UI rendering.
lifecycle
advanced
2:00remaining
What lifecycle change occurs with TurboModules in the new React Native architecture?
TurboModules replace classic native modules. How does their lifecycle differ in the new architecture?
ATurboModules run on the UI thread instead of the native module thread.
BTurboModules are eagerly initialized at app launch, increasing memory usage.
CTurboModules are lazily initialized only when first used, reducing startup time.
DTurboModules require manual memory management unlike classic modules.
Attempts:
2 left
💡 Hint
Consider how startup performance is improved in the new system.
navigation
advanced
2:00remaining
How does the new React Native architecture affect navigation libraries?
With the new architecture, what is a key consideration for React Native navigation libraries?
AThey must be rewritten to use TurboModules and Fabric to avoid the Bridge.
BThey no longer need to interact with native code at all.
CThey can only use JavaScript-based navigation without native integration.
DThey must use synchronous Bridge calls for screen transitions.
Attempts:
2 left
💡 Hint
Think about how native modules and UI rendering changed.
🔧 Debug
expert
3:00remaining
Why might a React Native app freeze under the classic Bridge but not with the new architecture?
A React Native app using the classic Bridge sometimes freezes during heavy UI updates. Why does this happen less in the new architecture?
AThe classic Bridge is single-threaded and serializes all messages, causing blocking; the new architecture uses concurrent threads and asynchronous rendering.
BThe classic Bridge uses too many native threads causing deadlocks; the new architecture uses only one thread.
CThe classic Bridge compiles JavaScript slower; the new architecture uses a faster JavaScript engine.
DThe classic Bridge requires manual memory management; the new architecture uses automatic garbage collection.
Attempts:
2 left
💡 Hint
Consider how message passing and threading differ between architectures.