Add e2e tests for int enums

Summary: This diff adds e2e tests for int enums

Reviewed By: JoshuaGross

Differential Revision: D17161728

fbshipit-source-id: 25003d9472d1df53931e9df8d42d5a68e9d11632
This commit is contained in:
Rick Hanlon
2019-09-06 05:33:08 -07:00
committed by Facebook Github Bot
parent 6874bade43
commit c232b5ae3b
3 changed files with 5 additions and 0 deletions
@@ -26,4 +26,7 @@ public class EnumPropNativeComponentViewManager extends SimpleViewManager<ViewGr
@Override
public void setAlignment(ViewGroup view, String value) {}
@Override
public void setIntervals(ViewGroup view, Integer value) {}
}
@@ -20,6 +20,7 @@ type NativeProps = $ReadOnly<{|
// Props
alignment?: WithDefault<'top' | 'center' | 'bottom-right', 'center'>,
intervals?: WithDefault<0 | 15 | 30 | 60, 0>,
|}>;
export default (codegenNativeComponent<NativeProps>(
@@ -38,6 +38,7 @@ type NativeProps = $ReadOnly<{|
floatProp: Float,
intProp: Int32,
stringEnumProp?: WithDefault<'small' | 'large', 'small'>,
intEnumProp?: WithDefault<0 | 1, 0>,
|}>,
objectArrayProp: ObjectArrayPropType,
objectPrimitiveRequiredProp: $ReadOnly<{|