'use client'; import { ScreenProps } from '../types'; import { Animated, View } from 'react-native'; import React from 'react'; import { screensEnabled } from '../core'; export const InnerScreen = View; // We're using class component here because of the error from reanimated: // createAnimatedComponent` does not support stateless functional components; use a class component instead. // NOTE: React Server Components do not support class components. export class NativeScreen extends React.Component { render(): JSX.Element { let { active, activityState, style, enabled = screensEnabled(), ...rest } = this.props; if (enabled) { if (active !== undefined && activityState === undefined) { activityState = active !== 0 ? 2 : 0; // change taken from index.native.tsx } return (