Recall & Review
beginner
What does "linking native libraries" mean in React Native?
It means connecting native code libraries (like iOS or Android code) to your React Native app so you can use native features not available in JavaScript alone.
Click to reveal answer
beginner
How do you link native libraries automatically in React Native 0.60+?
React Native 0.60 and above uses auto-linking, which means native libraries are linked automatically when you install them with npm or yarn.
Click to reveal answer
intermediate
What command do you run to manually link native libraries in older React Native versions?
You run the command
npx react-native link to link native libraries manually.Click to reveal answer
intermediate
Why might you need to link native libraries manually even with auto-linking?
Sometimes auto-linking fails or a library requires extra setup steps, so you need to link manually or adjust native project files yourself.
Click to reveal answer
advanced
What files are commonly modified when linking native libraries on iOS and Android?
On iOS, you often modify
Podfile and run pod install. On Android, you update settings.gradle, build.gradle, and sometimes MainApplication.java.Click to reveal answer
What is the main purpose of linking native libraries in React Native?
✗ Incorrect
Linking native libraries connects native code to React Native so you can use native device features.
Which React Native version introduced auto-linking for native libraries?
✗ Incorrect
React Native 0.60 introduced auto-linking to simplify native library integration.
Which command is used to manually link native libraries in React Native?
✗ Incorrect
The command
npx react-native link manually links native libraries.What tool do you use on iOS to install native dependencies after linking?
✗ Incorrect
CocoaPods manages iOS native dependencies and you run
pod install after linking.If auto-linking fails, what might you need to do?
✗ Incorrect
Manual linking and native file updates fix issues when auto-linking does not work.
Explain the process of linking a native library in React Native 0.60 or later.
Think about what happens after you add a native library package.
You got /4 concepts.
Describe why linking native libraries is important for React Native apps.
Consider what React Native cannot do without native code.
You got /4 concepts.