mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 04:45:19 +08:00
fixes setActive method when the param is not int type in Android
This commit is contained in:
@@ -20,8 +20,8 @@ public class ScreenViewManager extends ViewGroupManager<Screen> {
|
|||||||
return new Screen(reactContext);
|
return new Screen(reactContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ReactProp(name = "active", defaultInt = 0)
|
@ReactProp(name = "active", defaultFloat = 0)
|
||||||
public void setActive(Screen view, int active) {
|
public void setActive(Screen view, float active) {
|
||||||
view.setActive(active != 0);
|
view.setActive(active != 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user