Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

243
Visualizações
How do you call functions from node_modules

I'm creating a ReactJS app and I'm using an npm package (https://www.npmjs.com/package/react-video-recorder) The package allows you to customize the UI, etc. as stated in the ReadMe (https://github.com/fbaiodias/react-video-recorder).

Within the node_modules package, there are functions like onStartRecording, onStopRecording, etc. If I use the default button that comes with the package, it can call onStartRecording, onStopRecording with no problems.

When I create my own record and stop buttons I have no clue how to get access to onStartRecording and onStopRecording. I would really like to use my own custom buttons because there is more that I want to do when I start or stop recording.

Here's a link to all the functions and actions from the npm package (https://github.com/fbaiodias/react-video-recorder/blob/master/src/defaults/render-actions.js)

Any help pointing me in the right direction would be extremely helpful. Thanks

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

you can have a base component for record library component and then have your custom button to import that base component and add more stuff to it.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda