generated from rescript-react-native/__template__
-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use useRef #9
Comments
|
Maybe paper bindings are not up to date? poke @DCKT |
@MoOx I was using the latest version of rescript-react-native/paper |
I was assuming that the bindings are not up to date with rescript-react-native, not that you were not using the correct version. |
@kevin-klein can you help here as you are a user of this bindings ? Thanks ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem
When trying using
useRef
in aPaper.TextInput
the rescript throwsThis has type: React.ref<Js.Nullable.t<'a>> Somewhere wanted: Js.Nullable.t<'b> => unit
How to reproduce
Steps to reproduce:
Expected behavior
Expect to compiler compile to use the ref
Actual behavior
The compiler throws:
This has type: React.ref<Js.Nullable.t<'a>> Somewhere wanted: Js.Nullable.t<'b> => unit
Environment
PopOS 20.04
expo 40.0
react 17.0.1
react native 0.63.4
rescript 9.1.4
rescript-react-native 0.64.3
react-native-paper 4.4.1
@rescript-react-native/paper 3.0.6
The text was updated successfully, but these errors were encountered: