Samuel
@samuel.fm
ayyy to all those guessing it was a bad optimisation transform, you were right! fixed in Metro 0.80.5 github.com/facebook/met...
fix(#1167): function calls prefixed with `void` together with the optional chain (?.) are skipped by...
Summary Fixes: #1167 constant-folding-plugin replaces this call void foo?.(); with undefined;. This is because the evaluate() function marks the optional call expressions as safe, making the UnaryE...
github.com
Samuel@samuel.fm· 23 Jan 2024
ok PLEASE TELL ME IM NOT CRAZY THIS FIXES IT. HOW. WHY. SURELY THIS HAS NO EFFECT
onPress function changed from
() => void option.onPress?.()
to
() => option.onPress?.()
3