mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 17:23:42 +08:00
Use int as a type for 'active' prop to make it animatable on Android
This commit is contained in:
@@ -20,8 +20,8 @@ public class ScreenViewManager extends ViewGroupManager<Screen> {
|
||||
return new Screen(reactContext);
|
||||
}
|
||||
|
||||
@ReactProp(name = "active", defaultBoolean = false)
|
||||
public void setActive(Screen view, boolean active) {
|
||||
view.setActive(active);
|
||||
@ReactProp(name = "active", defaultInt = 0)
|
||||
public void setActive(Screen view, int active) {
|
||||
view.setActive(active != 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user