ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
124 stars 111 forks source link

RNchat sample App.json, Navigator and a lot more is missing #53

Closed astroana closed 4 years ago

astroana commented 4 years ago

Hello, I am new to connectycube and I am just trying out the samples. the video calling sample works fine, but the chat sample is having error and looking for app.json file and navigator inside src.

error

I created an app.json then after that another error message looking for this:

er2

and also this

er2

ccvlad commented 4 years ago

Hi, @astroana

Looks like the Metro server uses cached files from previous build. Try to close your terminal with the Metro server and start React Native build process from scratch.

Execute those commands in your terminal:

  1. Clean Metro's server cache from the root of ~/RNChat: watchman watch-del-all && rm -rf /tmp/metro-bundler-cache-* && rm -rf /tmp/haste-map-react-native-packager-*
  2. Clean android build cache: cd android && ./gradlew clean && ./gradlew cleanBuildCache
  3. Return to the root folder (RNChat): cd ../
  4. Run: npm run android or yarn android

Hope that it will be helpful.

astroana commented 4 years ago

I just did and even remove all the cache files inside drive c:/user folder and still the result is the same. I tested the RNChat sample first to make sure. My other projects works fine after running yarn android. I don't think it's the metro server caches because when I ran yarn android on RNchat sample my terminal doesn't show any errors on gradle nor having issue installing the app and Build is always successfull.

succ

but same error on the app appears, the errors I posted above.

NodeJS ver. 12

ccvlad commented 4 years ago

The app.json file does not exist in the RNChat. name and displayName imports from config.json. I had been getting the same errors after switch between different projects. Cleaning of all caches had been helping. I can't reproduce the issue. Try to clean ~/.npm/_cacache and /.react-native-cli/cache.

astroana commented 4 years ago

I already did, tried installing android studio and gradle and nodejs to a new pc. but no luck.

Don't know why the errors still appear only with RNChat.

ccvlad commented 4 years ago

Do have import ... from "./src/services" or import ... from "app.json" in your ~/RNChat/index.js ?

https://github.com/ConnectyCube/connectycube-reactnative-samples/blob/master/RNChat/index.js

astroana commented 4 years ago

I just cloned the sample git repo and I did not change anything inside RNChat because I am just trying to test the repo as is, same with RNVideo which works fine without any errors.

ccvlad commented 4 years ago

Does the issue still present?

I suggest you to ask React Native team by few reasons: