0
0
React Nativemobile~20 mins

Profiling with Flipper in React Native - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Flipper Profiling Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
ui_behavior
intermediate
2:00remaining
Identify the correct Flipper plugin for React Native performance profiling
Which Flipper plugin helps you monitor React Native app performance by showing CPU usage, memory, and network requests in real time?
AReact DevTools
BReact Native Performance
CNetwork Inspector
DLayout Inspector
Attempts:
2 left
💡 Hint
Look for the plugin that focuses on performance metrics like CPU and memory.
🧠 Conceptual
intermediate
2:00remaining
Understanding Flipper's role in React Native development
What is the main purpose of using Flipper in React Native app development?
ATo debug and profile React Native apps with visual tools
BTo write React Native code faster
CTo deploy React Native apps to app stores
DTo convert React Native apps to native Android apps
Attempts:
2 left
💡 Hint
Think about tools that help find and fix problems during development.
lifecycle
advanced
2:00remaining
When to enable Flipper in React Native apps
At which stage of React Native app development is it best to enable Flipper for profiling?
AOnly in production builds to monitor live users
BOnly during initial app setup before writing code
CDuring development and debugging phases to optimize performance
DAfter app release to collect crash reports
Attempts:
2 left
💡 Hint
Profiling tools help improve app performance before release.
🔧 Debug
advanced
2:00remaining
Diagnosing a Flipper connection issue
You installed Flipper and the React Native Performance plugin, but your app does not show up in Flipper. What is the most likely cause?
AThe React Native app was built without Flipper enabled in the debug configuration
BFlipper requires a physical device; emulators are not supported
CFlipper only works with iOS apps, not Android
DYou must restart the app store to connect Flipper
Attempts:
2 left
💡 Hint
Check your app build settings for Flipper integration.
📝 Syntax
expert
3:00remaining
Correct React Native Flipper setup code snippet
Which code snippet correctly enables Flipper in a React Native Android app's MainApplication.java file?
React Native
public class MainApplication extends Application implements ReactApplication {
  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
        new MainReactPackage(),
        // Add Flipper package here
      );
    }

    @Override
    protected String getJSMainModuleName() {
      return "index";
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }
}
AAdd new FlipperPackage() inside MainApplication constructor
BAdd new FlipperPackage() inside getUseDeveloperSupport() method
CAdd new FlipperPackage() inside getJSMainModuleName() method
DAdd new FlipperPackage() inside getPackages() list
Attempts:
2 left
💡 Hint
Flipper packages go inside the list of React packages.