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

430
Visualizações
How to create a React Native package (View) which depends on other Native packages

Long story short, I am currently creating an npm package for React Native that is dependent on other packages that are native and require linking, pod install, etc. I am currently using peerDependencies to make it work but I would like to include everything in the package for people to enjoy an easy installation process instead of manually installing 3-6 dependencies themselves.

I am not sure where to start about that or if it's even possible, any thoughts are appreciated.

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

0

I think the first think you should check is this library. It's actually recommended by the official React Native documentation.

You can create basic bootstrap for your npm package with this command (check the link above to RN docs for more information):

npx create-react-native-library react-native-awesome-module
about 4 years ago · Juan Pablo Isaza Relatório

0

if you wanna use a native package then you will need for

IOS

you will need to add s.dependency in react-native-pkgname.podspec REF

Android

you will need to add implementation in android/build.gradle file REF

To make new package, you can use this CLI https://github.com/callstack/react-native-builder-bob

npx create-react-native-library react-native-awesome-module
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