react-native-countdown-picker
A wrapper on top of ActionSheetPicker-3.0 for displaying countdown timer in an actionsheet
Installation
npm i --save react-native-countdown-picker
You need CocoaPods to install ActionSheetPicker-3.0
.
To integrate ActionSheetPicker-3.0 into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'ActionSheetPicker-3.0'
Then, run the following command:
$ pod install
Add it to your iOS project
- Run
npm install react-native-countdown-picker --save
- Open your project in XCode, right click on
Libraries
and clickAdd Files to "Your Project Name"
(Screenshot) then (Screenshot). - Add
libCJCountDownPicker.a
toBuild Phases -> Link Binary With Libraries
(Screenshot). - Whenever you want to use it within React code now you can:
var CountDownPicker = require('NativeModules').CountDownPicker;
Example
var CountDownPicker = CountDownPicker; var ExampleApp = React;