Skip to content
react-native

What's New in React Native v0.62.0!

Discover what's new in React Native v0.62.0: Flipper debugging support, dark mode APIs, Appearance module, and accessibility improvements.

Joseph Goksu
Joseph Goksu
·1 min read·
Table of contents

Flipper by default

Flipper is a developer tool for debugging mobile apps. It’s popular in the Android and iOS communities, and in this release we’ve enabled support by default for new and existing React Native apps.

Check Flipper

New dark mode features

· Added a new Appearance module to provide access to the user's appearance preferences, such as their preferred color scheme (light or dark).

Appearance.js
javascript
const colorScheme = Appearance.getColorScheme()

if (colorScheme === 'dark') {
  // Use dark color scheme
}

· Added a hook to subscribe to state updates to the users preferences:

useColorScheme.js
javascript
import { Text, useColorScheme } from 'react-native'

const MyComponent = () => {
  const colorScheme = useColorScheme()
  return <Text>useColorScheme(): {colorScheme}</Text>
}

Moving Apple TV to react-native-tvos

· Started to remove Apple TV specific code from core.

☂️ Lean Core → Feb 6, 2019


Accessibility improvements

We’ve made improvements to accessibility including adding accessibilityValue, missing props on Touchables, onSlidingComplete accessibility events, and changing the default role of Switch component from "button" to "switch".

References:

Get notified of new posts

I write about Go, AI, and platform engineering. Subscribe via RSS to get new posts in your reader.

Subscribe via RSS
Joseph Goksu

Joseph Goksu

Applied AI Engineer · OpenUK Rising Ambassador · AWS Community Builder

Applied AI Engineer at Obrizum, with a strong background in platform engineering and cloud infrastructure on AWS and Google Cloud. Builds open-source infrastructure and tools at opensource.finance.

Pages & Actions
Essays
Projects
Experiments
Decks & Speaking