Skip to content

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

Merged
merged 14 commits into from
Nov 22, 2019

Conversation

pvinis
Copy link
Member

@pvinis pvinis commented Oct 25, 2019

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 before npm publish, we can add it in a prepublish.

Test Plan

What's required for testing (prerequisites)?

What are the steps to reproduce (after prerequisites)?

Compatibility

OS Implemented
iOS ✅❌
Android ✅❌

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)

@pvinis pvinis mentioned this pull request Oct 25, 2019
5 tasks
@pvinis pvinis changed the title woop Moving to TypeScript Oct 25, 2019
@pvinis pvinis self-assigned this Oct 25, 2019
@pvinis pvinis added enhancement New feature or request help wanted Extra attention is needed labels Oct 25, 2019
@Naturalclar Naturalclar mentioned this pull request Oct 29, 2019
5 tasks
@pvinis pvinis marked this pull request as ready for review October 31, 2019 08:50
@pvinis
Copy link
Member Author

pvinis commented Oct 31, 2019

This is ready to be reviewed! I fixed a bunch of types, and now you can do yarn build and yarn release and everything should work fine.

const keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', handleKeyboardDidHide)

return () => {
keyboardWillShowListener.remove()
Copy link
Member

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 ?

@melihberberolu
Copy link
Member

@dabit3 Can you check this PR ? I think everything is fine.

@pvinis
Copy link
Member Author

pvinis commented Oct 31, 2019

I didn't bother formatting because I saw a PR adding eslint, but yes, I can run a prettier in this or something.

@pvinis
Copy link
Member Author

pvinis commented Nov 1, 2019

Should I throw a prettierrc in here, or just run it?

@pvinis
Copy link
Member Author

pvinis commented Nov 1, 2019

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.

@pvinis
Copy link
Member Author

pvinis commented Nov 4, 2019

Bump! This should be ready to review again and merge if approved.

@melihberberolu melihberberolu merged commit 2f7ae68 into react-native-community:master Nov 22, 2019
@pvinis
Copy link
Member Author

pvinis commented Feb 21, 2020

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants