Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-dynamic-island-master

hoaphantn760435MIT0.2.1TypeScript support: included

Live Activities APIs.

react-native, detect, device, dynamic-island, areActivitiesEnabled, hasDynamicIsland

readme

react-native-dynamic-island-master

Live Activities APIs.

Support Only IOS

Require Xcode 14.1 or Newer

  • hasDynamicIsland: Detect device has Dynamic Island.
  • areActivitiesEnabled: A Boolean value that indicates whether your app can start a Live Activities.

    Example

    `js import * as React from 'react';

import { View, Text } from 'react-native'; import { hasDynamicIsland, areActivitiesEnabled } from 'react-native-dynamic-island-master';

export default function App() {

return ( <View style={styles.container}> <Text>Has Dynamic Island: {hasDynamicIsland.toString()}</Text> <Text>areActivitiesEnabled: {areActivitiesEnabled.toString()}</Text> </View> ); }

`

Video tutorial:

Build Dynamic Island For React Native - Tutorial Step-by-Step