cfnz
03/03/2022, 2:27 AMAlertColor.values().forEach { color -> ...
Under both the IR and Legacy compiler it says there is no such thing as AlertColor.values()... (Uncaught ReferenceError: values is not defined at eval (Alert.kt?905c:18:24))
I believe if the types where enum classes rather than external enum classes, the above would work, and it is still compatible with React.turansky
03/03/2022, 6:45 AMexternal enum
- just string union emulation.
Do you suggest to use ordinary enum classes?cfnz
03/03/2022, 7:54 AMturansky
03/03/2022, 11:38 AM