You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

react-native-pod

Package Overview
Dependencies
3
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-pod

Automatically generate podfile for React Native


Version published
Maintainers
1
Created

Readme

Source

react-native-pod

Extends support for CocoaPods in React Native projects by:

  1. Initializing a Podfile for your ios project (in /ios/Podfile)
  2. On react-native link, scans the package.json of all dependencies for a "pods" entry. If found, adds those pods to the Podfile.
  3. At the end of react-native link, runs pod install to update your Pods if necessary. Now you have installed pods!
  4. You can update pods at any time by running react-native installpods

Usage:

yarn add react-native-pod
react-native link

Developer use

New! Add pods you would like distributed with your package from the command line:

react-native addpod [pod]

or

react-native addpod [pod] --podversion [version]

or

react-native addpod [pod] --podgit[giturl]

Note that adding a pod puts the reference in your package.json. This gives the hint to react-native link to add it to your Podfile.

To remove a pod:

react-native removepod [pod]

Prerequisite

You need to have CocoaPods installed. To get it going: sudo gem install cocoapods.

How to add value with this

When making a native module that has a pod dependency, just add the pod reference to your pods in package.json manually or using the tools above, and make react-native-pod a peer dependency.

Feedback welcome!

FAQs

Package last updated on 24 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc