ConnectyCube / connectycube-reactnative-samples

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

connectycute support expo? #112

Closed kkchickha closed 3 years ago

kkchickha commented 4 years ago

Screen Shot 2563-08-11 at 14 50 47 I have installed package import ConnectyCube from "react-native-connectycube"; But cannot run Screen Shot 2563-08-11 at 15 49 17

ccvlad commented 4 years ago

Did you install "react-native-connectycube" via NPM or YARN? The VS Code shows that it can not see the module.

kkchickha commented 4 years ago

Did you install "react-native-connectycube" via NPM or YARN? The VS Code shows that it can not see the module.

Hi ccvlad I user Yarn add react-native-connectycube Does the package seem to be able to run on expo env? Screen Shot 2563-08-11 at 16 01 30

ccvlad commented 4 years ago

I used to run the "react-native-connectycube" about year ago and it was working. Let us check and we will update you.

ccvlad commented 4 years ago

Did you start project from scratch or tried to modify one of current samples?

kkchickha commented 4 years ago

Did you start project from scratch or tried to modify one of current samples?

I tried testing both but couldn't run through expo either. S__3489797

kkchickha commented 4 years ago

I used to run the "react-native-connectycube" about year ago and it was working. Let us check and we will update you. How did you check, I can not run on exo project

ccvlad commented 4 years ago

Hi there! I have tried to init new Expo project (Expo CLI Quickstart) and yarn add react-native-connectycube.

Here the code from App.js:

Снимок экрана 2020-08-21 в 12 55 28

I have inited the SDK and gotten success response from create session with existed user: photo_2020-08-21_14-13-13

ccvlad commented 4 years ago

@kkchickha try to clean Metro server, npm and yarn caches

kkchickha commented 4 years ago

How do you use sdk version? and May I have a look at your package.json? Thank you

ccvlad commented 4 years ago

Of course, see:

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "expo": "~38.0.8",
    "expo-status-bar": "^1.0.2",
    "react": "~16.11.0",
    "react-dom": "~16.11.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
    "react-native-connectycube": "^3.6.2",
    "react-native-web": "~0.11.7"
  },
  "devDependencies": {
    "@babel/core": "^7.8.6",
    "babel-preset-expo": "~8.1.0"
  },
  "private": true
}
kkchickha commented 3 years ago

Hi, I'm not sure I understand that sdk can be run on expo. https://expo.canny.io/feature-requests/p/webrtc Do you have a sample source code to try out?

ccvlad commented 3 years ago

Hi, @kkchickha Check the latest release of the react-native-connectycube

https://www.npmjs.com/package/react-native-connectycube