nucleartux / react-native-date

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

Installation Build Errors #4

Closed drosko closed 8 years ago

drosko commented 9 years ago

Hi, when I do step 4 of the installation instructions, I get build errors. My MainActivity Class looks different, maybe because it uses Activity vs. FragmentActivity? For example I have:

import android.app.Activity;.......

and

public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler {

...instead of extending FragmentActivity. Sorry I am not familiar with android, just wondered if you might have a quick fix or suggestion.

aakashns commented 9 years ago

I added

import android.support.v4.app.FragmentActivity;

and changed the MainActivity of my app to extend FragmentActivity instead of Activity and it worked.

peterlazar1993 commented 8 years ago

https://github.com/nucleartux/react-native-date/issues/3 It's not a bug check the above issue.