Question
Will the demos (currently in JS) be converted and offered in TypeScript?
I ask because I am trying to figure out how to use a third-party library (react-select) in addition with TypeScript and make an input component.
Here's my shot at the react-select example - https://codesandbox.io/s/mzkv3mr7x (may not be 100% typed though). Wonder if I should create a PR to add this example to this repo, @jaredpalmer?
TS error that you see in line 143 should be gone once DefinitelyTyped/DefinitelyTyped#23054
Are we talking about the new docs site? Yes, I have plans to have a toggle between JS and TS in the examples.
Any and all documentation, meaning the current and the new.
I get following error:
color must be a
arraytype, but the final value was:null(cast from the value"red"). If "null" is intended as an empty value be sure to mark the schema as.nullable()
When I try to do the select without the multiple select. Even with the multi select on the above sample code gives error when you delete the selection.
Any solution for this?
Update: Forgot to mention I have the Searchable option on.
The React Native example doesn't compile using Typescript because onChangeText and onBlur are incompatible. What's the recommended Typescript way to pass in the input name?
<TextInput
onChangeText={props.handleChange('email')}
onBlur={props.handleBlur('email')}
value={props.values.email}
/>
I'm also running into this issue. Any advice here?
As long as this bug exists, you can hack your way around it by
<TextInput
onChangeText={props.handleChange('email')}
onBlur={props.handleBlur('email') as undefined}
value={props.values.email}
/>
Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.
Most helpful comment
The React Native example doesn't compile using Typescript because
onChangeTextandonBlurare incompatible. What's the recommended Typescript way to pass in the input name?