Adds possibility to integrate using cocoapods.

This commit is contained in:
Joel Arvidsson
2015-10-28 10:59:19 -04:00
parent da0ca3cc10
commit 3ace08eabb
2 changed files with 28 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ Perfect for buttons, logos and nav/tab bars. Easy to extend, style and integrate
### iOS
#### Option: Manually
If you want to use any of the bundled icons, you need to add the icon fonts to your XCode project. Just follow these steps:
* Right click on you project in XCode and select **Add files to "_NameOfYourProject_"**.
@@ -44,6 +46,16 @@ If you want to use any of the bundled icons, you need to add the icon fonts to y
If you want to use the TabBar integration, then you need to add `RNVectorIcons.xcodeproj` to **Libraries** and add `libRNVectorIcons.a` to **Link Binary With Libraries** under **Build Phases**. [More info and screenshots about how to do this is available in the React Native documentation](http://facebook.github.io/react-native/docs/linking-libraries-ios.html#content).
#### Option: With [CocoaPods](https://cocoapods.org/)
Add the following to your `Podfile` and run `pod update`:
```
pod 'RNVectorIcons', :path => 'node_modules/react-native-vector-icons'
```
Edit `Info.plist` and **Link Binary With Libraries** as described above.
### Android (experimental)
*Note: Android support requires React Native 0.12 or later*

16
RNVectorIcons.podspec Normal file
View File

@@ -0,0 +1,16 @@
Pod::Spec.new do |s|
s.name = "RNVectorIcons"
s.version = "0.8.3"
s.summary = "Customizable Icons for React Native with support for NavBar/TabBar, image source and full styling."
s.homepage = "https://github.com/oblador/react-native-vector-icons"
s.license = "MIT"
s.author = { "Joel Arvidsson" => "joel@oblador.se" }
s.platform = :ios, "7.0"
s.source = { :git => "https://github.com/oblador/react-native-vector-icons.git", :tag => "v#{s.version}" }
s.source_files = 'RNVectorIconsManager/**/*.{h,m}'
s.resources = "Fonts/*.ttf"
s.preserve_paths = "**/*.js"
s.dependency 'React'
end