Challenge - 5 Problems
Native Linking Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What happens when you run react-native link?
In React Native, what is the main effect of running the command
react-native link in your project folder?Attempts:
2 left
💡 Hint
Think about how native code and JavaScript code are connected in React Native.
✗ Incorrect
The
react-native link command updates native project files to include native libraries, so they work with your React Native app.❓ ui_behavior
intermediate2:00remaining
Effect of missing native linking on app UI
You installed a native library that provides a custom UI component. You forgot to link it natively. What will happen when you try to use that component in your React Native app?
Attempts:
2 left
💡 Hint
Native UI components need native code to work properly.
✗ Incorrect
If native linking is missing, the app cannot find the native code for the component, causing a crash or error.
❓ lifecycle
advanced2:00remaining
When to run react-native link in app development?
At which point in your React Native app development should you run
react-native link for a new native library?Attempts:
2 left
💡 Hint
Think about when native code needs to be connected to your project.
✗ Incorrect
You run
react-native link after installing a native library to connect its native code before running the app.advanced
2:00remaining
Linking native libraries and navigation behavior
You linked a native library that provides enhanced navigation gestures. After linking, what must you do to ensure the gestures work correctly in your React Native app?
Attempts:
2 left
💡 Hint
Native code changes require a full rebuild to apply.
✗ Incorrect
Native linking changes native code, so you must rebuild and restart the app to see the effect.
🔧 Debug
expert3:00remaining
Diagnosing linking failure in React Native Android app
After linking a native library, your Android React Native app crashes on startup with a
java.lang.UnsatisfiedLinkError. What is the most likely cause?Attempts:
2 left
💡 Hint
UnsatisfiedLinkError means native code is missing at runtime.
✗ Incorrect
This error means the native shared library (.so) files were not bundled correctly in the Android app.