Open vahdet opened 3 years ago
Currently, handleSubmit is used as handleSubmit as any as otherwise it emits a type error.
handleSubmit
handleSubmit as any
The issue is mentioned here. Although it is marked as closed, it is not elegantly solved yet. Check the comments there and remove as any once it is fixed.
as any
No fix yet :(
If anyone still tackles with it: @wsdt offered a walkaround (which walks around Typescript purpose as well) -> onPress={handleSubmit as any}
onPress={handleSubmit as any}
Currently,
handleSubmit
is used ashandleSubmit as any
as otherwise it emits a type error.The issue is mentioned here. Although it is marked as closed, it is not elegantly solved yet. Check the comments there and remove
as any
once it is fixed.