We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@jkdrangel I have refactored this component using functional approach and typescript do you have interest in this pull request?
The text was updated successfully, but these errors were encountered:
Yes @allandiego thanks for this.
Sorry, something went wrong.
Temporary fix for those who may need it
import SwitchSelector from 'react-native-switch-selector' export const Switch = () => { interface SwitchFix extends React.Component {} const Switch = SwitchSelector as any as { new (): SwitchFix } const options = [ { label: 'Delivery', value: 'delivery' }, { label: 'Pickup', value: 'pickup' }, ] const props: any = { options, initial: 0 } return <Switch {...props} /> }
I extract the index to a function component with typescript, see below. https://gist.github.com/ArthurAssuncao/ebe852e5d7e093389daa2a474e41741b
No branches or pull requests
@jkdrangel I have refactored this component using functional approach and typescript do you have interest in this pull request?
The text was updated successfully, but these errors were encountered: