react-native-material-kit
react-native-material-kit copied to clipboard
typescript support
Hello, Is there any plan for supporting typescript? Is there any DefinitelyTyped file for this library?
No plan for supporting typescript ATM
@hatpick I'm currently working on it.
@iRoachie do you have a repo in progress? Can you share it with us?
@hatpick No but i guess i probably should make one. I'm going to submit them to DefinitelyTyped though so they'll be easier to maintain, update. Gimme 20 mins
@iRoachie any progress? Can you email me them in the meantime if it takes long for them to approve?
@hatpick Started here https://github.com/DefinitelyTyped/DefinitelyTyped/pull/18289
@iRoachie good job, it's gonna be huge tho, do you have all of it covered?
@hatpick Not as yet. I'm adding component by component. Will make a checklist soon
@iRoachie check this out
https://gist.github.com/hatpick/eb061a0c27cd6dcb215cee0a88e10e1a
Added. @types/react-native-material-kit
@iRoachie
not support all property
message: 'Property 'coloredButton' does not exist on type 'typeof MKButton'.'
@risbot this is on the builder you’re referring to?
@iRoachie it is this part of code MKButton.coloredButton() function coloredButton() is not defined in typescript.
You can make a pull request over at DefinitelyTyped. The typings are here https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-native-material-kit/index.d.ts