How to use the react-native-screens.NativeScreen function in react-native-screens

To help you get started, we’ve selected a few react-native-screens examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IjzerenHein / react-native-shared-element / Example / src / components / Router.js View on Github external
const AnimatedRouterScreen = (props: any) => {
  const {active, ...otherProps} = props;
  if (Screens.screensEnabled()) {
    AnimatedScreen =
      AnimatedScreen || Animated.createAnimatedComponent(Screens.NativeScreen);

    return ;
  }

  return ;
};
github react-navigation / navigation-ex / packages / stack / src / views / Stack / CardStack.tsx View on Github external
const MaybeScreen = ({
  enabled,
  active,
  ...rest
}: ViewProps & {
  enabled: boolean;
  active: number | Animated.Node;
  children: React.ReactNode;
}) => {
  if (Platform.OS !== 'ios' && enabled && Screens.screensEnabled()) {
    AnimatedScreen =
      AnimatedScreen || Animated.createAnimatedComponent(Screens.NativeScreen);

    return ;
  }

  return
github react-navigation / stack / src / views / Stack / Stack.tsx View on Github external
const MaybeScreen = ({
  enabled,
  active,
  ...rest
}: ViewProps & {
  enabled: boolean;
  active: number | Animated.Node;
  children: React.ReactNode;
}) => {
  if (Platform.OS !== 'ios' && enabled && Screens.screensEnabled()) {
    AnimatedScreen =
      AnimatedScreen || Animated.createAnimatedComponent(Screens.NativeScreen);

    return ;
  }

  return