Skip to content
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

Functional component for a modern approach #647

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

finnholland
Copy link

Creating a more modern react native module to utilise useState and const statements.

  • Added a functional component version of the index.ts to better service modern react native compared to class based.
  • Also split out the types into a types.ts so they can be shared across the two files (this is optional but nicer to manage imo)

Wasn't sure on naming conventions so feel free to veto those.
I have tested using my example but will confirm with the example in the package later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant