React Native Professional Standards & Competencies 3 — Questions and Answers
Question 1: A React Native app is collecting user location data. Which professional practice is legally and ethically required in the US?
- Store location data in AsyncStorage for convenience
- Collect location only when the app is active and disclose usage clearly in a privacy policy (Correct answer)
- Use background location without disclosure to improve accuracy
- Share location data with analytics providers without user consent
Correct answer: Collect location only when the app is active and disclose usage clearly in a privacy policy
US regulations and both platform guidelines require clear disclosure and appropriate permissions when collecting sensitive data like location.
Question 2: When should a React Native developer use the `useCallback` hook?
- For every function defined inside a component
- When passing a callback to a memoized child component to prevent unnecessary re-renders (Correct answer)
- Only in class components
- Whenever a function makes an API call
Correct answer: When passing a callback to a memoized child component to prevent unnecessary re-renders
`useCallback` is most valuable when its stable reference prevents a memoized child (`React.memo`) from re-rendering unnecessarily.
Question 3: A new React Native release contains a security patch. What is the professional course of action?
- Wait 6 months for the community to validate it
- Evaluate the patch's relevance to your app, test the upgrade in a branch, and ship it within a reasonable risk window (Correct answer)
- Upgrade all dependencies at the same time to save effort
- Only upgrade if the vulnerability is publicly exploited
Correct answer: Evaluate the patch's relevance to your app, test the upgrade in a branch, and ship it within a reasonable risk window
Evaluating relevance and testing before shipping balances security urgency with production stability.
Question 4: Which technique demonstrates professional accessibility (a11y) implementation in React Native?
- Adding `accessible={true}` to every View
- Using `accessibilityLabel`, `accessibilityRole`, and testing with TalkBack and VoiceOver on real devices (Correct answer)
- Relying on default screen reader behavior without customization
- Disabling accessibility features to simplify the codebase
Correct answer: Using `accessibilityLabel`, `accessibilityRole`, and testing with TalkBack and VoiceOver on real devices
Meaningful labels, semantic roles, and real-device screen reader testing together produce genuinely accessible experiences.
Question 5: A team discovers that a third-party React Native library has not been maintained for two years. The professional response is to:
- Continue using it since it works today
- Assess active usage, check for known CVEs, evaluate maintained alternatives, and plan migration if risk is high (Correct answer)
- Fork it immediately and maintain internally
- Remove it without replacement and file a bug for the feature gap
Correct answer: Assess active usage, check for known CVEs, evaluate maintained alternatives, and plan migration if risk is high
A risk assessment drives the right response — immediate migration may be unnecessary if the library is low-risk and stable.
Question 6: What is the professional purpose of writing integration tests for a React Native app's navigation flows?
- To replace unit tests entirely
- To catch regressions where screen transitions break due to state or param changes across multiple components (Correct answer)
- To satisfy a code coverage percentage requirement
- To document the app for new developers
Correct answer: To catch regressions where screen transitions break due to state or param changes across multiple components
Integration tests on navigation flows catch cross-component regressions that unit tests cannot detect in isolation.
Question 7: When onboarding a new React Native developer, which documentation is most critical to provide first?
- A full history of every PR ever merged
- Environment setup instructions, project architecture overview, and contribution workflow (Correct answer)
- A list of all open bugs in the backlog
- The marketing roadmap for the next quarter
Correct answer: Environment setup instructions, project architecture overview, and contribution workflow
Setup, architecture, and contribution workflow let a new developer become productive without blocking others for help.
A React Native app is collecting user location data.
Which professional practice is legally and ethically required in the US?