React native v0.63 brings us three really exciting new features, these three features will really help for developers.

Image for post

Native Colors (PlatformColor, DynamicColorIOS)

Now its super simple to support dark mode in your application, Here are two new API’s which will help developers to choose the right colours without pain.

PlatformColors: allows user to use device native colours in the application e.g. iOS or Android.

**DynamicColorIOS: **allows user to configure colours based on the appearance mode of the device e.g. dark or light.

You can use both API separately or both like below.

<View
  style={{
    backgroundColor: DynamicColorIOS({
      light: PlatformColor("systemBlueColor"),
      dark: PlatformColor("systemRedColor"),
    }),
  }}
/>

#javascript #react-native #ios #react #cross-platform

What’s new in React Native v 0.63
4.75 GEEK