mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
6874bade43
commit
c232b5ae3b
@@ -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) {}
|
||||
}
|
||||
|
||||
+1
@@ -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>(
|
||||
|
||||
Vendored
+1
@@ -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<{|
|
||||
|
||||
Reference in New Issue
Block a user