I am currently working on developing a chat application using react-native with the following dependencies:
"dependencies": {
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/bottom-tabs": "^6.3.3",
"@react-navigation/native": "^6.0.11",
"@react-navigation/stack": "^6.2.2",
"@reduxjs/toolkit": "^1.8.5",
"@types/react-redux": "^7.1.24",
"@types/redux-logger": "^3.0.9",
...
Here is a snippet of my chat screen:
const ChatScreen = ({ navigation, route }: any) => {
const { data } = route.params;
const [messages, setMessages] = React.useState<any>([]);
...
export default memo(ChatScreen);
However, upon running my app, the following errors occurred:
Error log 1: TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[32], ''react-native-safe-area-context'').SafeAreaView')
Error log 2: Invariant Violation: Tried to register two views with the same name RNCSafeAreaView ...
At this point, I'm unsure of how to proceed and would greatly appreciate any assistance.