在android中运行应用程序时出现default.direction错误

时间:2021-02-23 07:37:27

标签: javascript reactjs react-native navigation

我在 iOS 中运行我的 React 原生应用,它运行良好
但是在android中它会抛出这个错误。
我哪里出错了??
我什至添加了这个 "include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')". 在我的设置中。 gradle 文件。
似乎没有任何效果。

错误:

TypeError: null is not an object (evaluating 't(r(d[1])).default.Direction')

App.js:

export default class App extends Component {

  constructor(props) {
    super(props);
    HAGo_init(props);
    I18n.locale = HAGo_getLanguage();
  }

  render() {
    const Stack = createStackNavigator()
    return (
    <NavigationContainer>
       <Stack.Navigator initialRouteName="PatientLibLanding">
       <Stack.Screen name="PatientLibLanding" component={PatienLibLandingScreen}  />
       <Stack.Screen name="NotificationLanding" component={NotificationScreen}  />
       <Stack.Screen name="Details" component={NotificationDetailScreen}  />
       </Stack.Navigator>
    </NavigationContainer>
    )
  }
}

0 个答案:

没有答案