Live Activities APIs.
- hasDynamicIsland: Detect device has Dynamic Island.
- areActivitiesEnabled: A Boolean value that indicates whether your app can start a Live Activities.
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>
);
}