diff --git a/android/build.gradle b/android/build.gradle index e627989..f3661f2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -17,5 +17,5 @@ android { dependencies { compile 'com.android.support:appcompat-v7:23.0.0' - compile 'com.facebook.react:react-native:0.19.+' + compile 'com.facebook.react:react-native:0.32.+' } diff --git a/android/src/main/java/com/chymtt/reactnativedropdown/Dropdown.java b/android/src/main/java/com/chymtt/reactnativedropdown/Dropdown.java index 00b2c81..c2f1510 100644 --- a/android/src/main/java/com/chymtt/reactnativedropdown/Dropdown.java +++ b/android/src/main/java/com/chymtt/reactnativedropdown/Dropdown.java @@ -82,7 +82,6 @@ public void onItemSelected(AdapterView parent, View view, int pos, long id) { .getEventDispatcher().dispatchEvent( new DropdownEvent( getId(), - SystemClock.uptimeMillis(), pos, parent.getSelectedItem().toString())); } diff --git a/android/src/main/java/com/chymtt/reactnativedropdown/DropdownEvent.java b/android/src/main/java/com/chymtt/reactnativedropdown/DropdownEvent.java index 9f50567..98376a4 100644 --- a/android/src/main/java/com/chymtt/reactnativedropdown/DropdownEvent.java +++ b/android/src/main/java/com/chymtt/reactnativedropdown/DropdownEvent.java @@ -11,8 +11,8 @@ public class DropdownEvent extends Event { private final int mPosition; private final String mValue; - public DropdownEvent(int viewId, long timestampMs, int position, String value) { - super(viewId, timestampMs); + public DropdownEvent(int viewId, int position, String value) { + super(viewId); mPosition = position; mValue = value; }