Upgrade reason-react to 0.8.0 by jfrolich · Pull Request #689 · rescript-react-native/rescript-react-native

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should read

<ScrollView ref=scrollViewRef->Ref.value>

Then, switch (scrollViewRef.current->Js.Nullable.toOption) works without issues.

@MoOx I also find that syntax somewhat unpleasant, I prefer React.(scrollViewRef.current). Obviously we cannot have a lowercase module name or an uppercase field name, so once the initial shock wears off, it can be understood, but I find it a bit hard to like all the same.