📜  反应原生导航共享元素 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:32.605000             🧑  作者: Mango

代码示例1
import { createSharedElementStackNavigator } from 'react-navigation-shared-element';

const stackNavigator = createSharedElementStackNavigator(
  {
    List: ListScreen,
    Detail: DetailScreen,
  },
  {
    initialRouteName: 'List',
  }
);

const AppContainer = createAppContainer(stackNavigator);