Skip to content

The first version only supports taking hasDynamicIsland. We will extend other API in next version.

License

Notifications You must be signed in to change notification settings

hoaphantn7604/react-native-dynamic-island-master

Repository files navigation

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

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: