React Native 0.62 released, one of the highlights of this version is the default support Flipper.
Flipper is a developer tool for debugging mobile applications, which are very popular on Android and iOS community, Flipper offers the following features:
- Actions Metro : Reload the application and development directly from the toolbar trigger menu.
- Reporter Crash : View crash reports from Android and iOS devices.
- React DevTools : Use the latest version of React DevTools together with all the other tools.
- Inspector Network : All network view device application makes a request.
- Device Logs and Metro : view, search and filter all logs from Metro and equipment.
- Layout Inspector Native : View and edit React Native native renderer output layout.
- Inspectors and the Preference Database : view and edit the device database and preferences.
Another highlight is the new Diablo model. Added a new Appearance
module to provide access to the appearance of the user preferences, such as the user's preferred color scheme (light or dark).
const colorScheme = Appearance.getColorScheme();
if (colorScheme === 'dark') {
// Use dark color scheme
}
It also adds a hook to track user preferences update:
import {Text, useColorScheme} from 'react-native';
const MyComponent = () => {
const colorScheme = useColorScheme();
return <Text>useColorScheme(): {colorScheme}</Text>;
};
View details Update Description: https://reactnative.dev/blog/2020/03/26/version-0.62