我在 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>
)
}
}