Git Product home page Git Product logo

Comments (15)

slycoder avatar slycoder commented on June 14, 2024

Ah, we failed to include prop-types as a dependency. That should be an easy fix. In the meantime does it work if you add prop-types to your package.json?

from react-native-twilio-video-webrtc.

kapilkarda avatar kapilkarda commented on June 14, 2024

installed npm install --save prop-types this but having same issue.

from react-native-twilio-video-webrtc.

bilby91 avatar bilby91 commented on June 14, 2024

@kapilkarda You are using version 1.0.1 ? Can you try master using git ?

from react-native-twilio-video-webrtc.

kapilkarda avatar kapilkarda commented on June 14, 2024

Hello @bilby91 , thanks for your response, i tried with master that error was remove now but their is new error. please check the snapshot
screenshot_20171223_091824

from react-native-twilio-video-webrtc.

kapilkarda avatar kapilkarda commented on June 14, 2024

Hello @bilby91 @slycoder do you have any solution for this ?

from react-native-twilio-video-webrtc.

kapilkarda avatar kapilkarda commented on June 14, 2024

is their any help ?

from react-native-twilio-video-webrtc.

slycoder avatar slycoder commented on June 14, 2024

Did you re-run react-native link after updating?

from react-native-twilio-video-webrtc.

slycoder avatar slycoder commented on June 14, 2024

And can you update your demo app repo? Thanks!

from react-native-twilio-video-webrtc.

ivorscott avatar ivorscott commented on June 14, 2024

You cannot import Proptypes from React anymore. install prop-types from npm.
Then replace the import to use it.
import PropsType prop-types

from react-native-twilio-video-webrtc.

jmknoll avatar jmknoll commented on June 14, 2024

Adding on the above above answer a little bit:

This library hasn't been updated since PropTypes was removed from React Native and moved into its own library.

So you'll have to npm install prop-types

And then in TwilioVideo.js change this:

import React, { Component, PropTypes } from 'react'
import {
  NativeModules,
  NativeEventEmitter,
  View,
} from 'react-native';

to this:

import React, { Component } from 'react'
import {
  NativeModules,
  NativeEventEmitter,
  View,
} from 'react-native';

import { PropTypes } from 'prop-types'

This is an ugly way of implementing this fix, but I'm not sure if this library is currently being maintained, so it'll have to work for now.

from react-native-twilio-video-webrtc.

bilby91 avatar bilby91 commented on June 14, 2024

@jmknoll I'm doing what I can with maintaining, not having a lot of time lately and not using the library at the moment. Can you work on a PR to fix this ? I'll review and merge.

Thanks!

from react-native-twilio-video-webrtc.

slycoder avatar slycoder commented on June 14, 2024

@jmknoll I believe the changes you are suggesting are already on master. There have been a huge number of changes landed on master since the previous NPM release, so I'd highly recommend pulling master into your project.

from react-native-twilio-video-webrtc.

jmknoll avatar jmknoll commented on June 14, 2024

@slycoder Thanks for the heads up. It looks like this issue at least is fixed in master. From the looks of it, this fixes a lot of the other open issues on here as well.

Maybe worth adding a line at the top of the docs advising people to install from github rather than npm as a temporary patch until the next release goes out?

from react-native-twilio-video-webrtc.

slycoder avatar slycoder commented on June 14, 2024

Either that or pushing a new version to npm. @bilby91 what do you think about pushing out a new version?

from react-native-twilio-video-webrtc.

slycoder avatar slycoder commented on June 14, 2024

(I'm not actually sure who has access to push to npm)

from react-native-twilio-video-webrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.