nucleartux / react-native-date

React Native date and time pickers for Android
MIT License
47 stars 20 forks source link

upgrade react-native to 0.19.0, refactor to use getCurrentActivity #27

Closed Traviskn closed 6 years ago

Traviskn commented 8 years ago

Fixes #26

Now rather than passing in the MainActivity through the package constructor, use getCurrentActivity to get a reference to an Activity instance.

This is actually one of my first times opening a PR for an open source project, so apologies if I'm missing anything. I'm very open to feedback and fixing anything that doesn't look right!