-
Notifications
You must be signed in to change notification settings - Fork 205
Moving to TypeScript #41
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
Moving to TypeScript #41
Conversation
This is ready to be reviewed! I fixed a bunch of types, and now you can do |
src/useKeyboard.ts
Outdated
const keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', handleKeyboardDidHide) | ||
|
||
return () => { | ||
keyboardWillShowListener.remove() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix this reformat ?
@dabit3 Can you check this PR ? I think everything is fine. |
I didn't bother formatting because I saw a PR adding eslint, but yes, I can run a prettier in this or something. |
Should I throw a prettierrc in here, or just run it? |
Nah, I will not add prettier or eslint here, I just run it and it's good for now. We should make a different PR for adding these tools. |
Bump! This should be ready to review again and merge if approved. |
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
We should finally move this to typescript. Here is the first pass.
I added typescript and the react and react native types, I made a base config, I added
files
in package.json, I renamed all files, and I fixed the errors.To compile we do
yarn build
, and this should also happen beforenpm publish
, we can add it in aprepublish
.Test Plan
What's required for testing (prerequisites)?
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md
CHANGELOG.md
example/App.js
)