Code Monkey home page Code Monkey logo

Comments (6)

amok avatar amok commented on June 12, 2024 2

We've been considering switching from Twilio. But then you guys (twilio's team) released this app. And it's a game changer. But better to say - it would be. Since we cannot use it "as is" - yep, we have own styling and BE :) Now it appears to be a bit uneasily - trying to sync our repo with your changes. If you release the app as a lib you'll save us (your users) a lot of effort and money. Hope that will happen ASAP and looking forward to it.

from twilio-video-app-react.

timmydoza avatar timmydoza commented on June 12, 2024 1

Hey @OliBridgman! Excellent question. This is something that we have been discussing here for some time. It's possible that we may release a packaged version of the hooks and components in this app, but it may take us quite some time to get around to it. There aren't any immediate plans to do so.

That said, as we built this app, we tried our best to keep a clear separation between 'application code', and 'platform code'. Application code is specific to this application and its UI. Things like src/state/ and src/components/MenuBar are specific to this application. This 'application code' handles how things look, how errors are displayed, and how tokens are fetched, among other things.

'Platform code' is code that is application-agnostic. Most of the hooks and src/components/VideoProvider (for instance) should continue to function just fine if they were dropped right into any React application. It's these 'platform' components and hooks that should work anywhere, and they are the ones that we would include in a package.

If you are interested, there is a way to use this app as a component library, but keep in mind that it is not tested or officially supported:

  • In package.json, remove react as a dependency and add it as a peerDependency.
  • In tsconfig.json, remove the "noEmit": true option.
  • Run npx tsc -d to compile all files to JS

Then, in your own application, you can install this app as a dependency:

  • npm install -S <path to the app directory>

Now, you can import hooks or components in your own app:
import usePublications from 'twilio-video-app-react/src/hooks/usePublications/usePublications';

Keep in mind, nearly all components must be used within the <VideoProvider> component.

from twilio-video-app-react.

stephenasamoah avatar stephenasamoah commented on June 12, 2024 1

Looking forward to making this a reality, guys. Your implementation is solid, but that package is gonna save lives, seriously.

from twilio-video-app-react.

nirmal-cs avatar nirmal-cs commented on June 12, 2024

+1

from twilio-video-app-react.

timmydoza avatar timmydoza commented on June 12, 2024

I've let our project managers know about the interest in this feature, but at the moment this feature is not on our roadmap - so I'll be closing the issue. We'll continue to look at this thread to gauge additional interest.

Thanks.

from twilio-video-app-react.

papuruth avatar papuruth commented on June 12, 2024

Cannot compile it gives error. Unknow compiler options

from twilio-video-app-react.

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.