mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-02 09:18:38 +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);
|
||||
}
|
||||
|
||||
@ReactProp(name = "active", defaultInt = 0)
|
||||
public void setActive(Screen view, int active) {
|
||||
@ReactProp(name = "active", defaultFloat = 0)
|
||||
public void setActive(Screen view, float active) {
|
||||
view.setActive(active != 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user