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

Default enforceSingleInvocation=true #14

Merged
merged 2 commits into from
Apr 25, 2021
Merged

Conversation

lucasfeijo
Copy link
Contributor

@lucasfeijo lucasfeijo commented Mar 30, 2021

Since the introduction of RN autolink, we don't have the opportunity to instantiate the module ourselves anymore, so it's not possible to pass a custom constructor parameter. Diving into the code, I realized this value is just hardcoded in the source, so I changed it according to the readme, that claims it must be initialized with true to avoid redundant values.

Since the introduction of [RN autolink](https://reactnative.dev/docs/linking-libraries-ios#automatic-linking), we don't have the opportunity to instantiate the module ourselves anymore, so it's not possible to pass a custom constructor parameter. Diving into the code, I realized this value is just hardcoded in the source, so I changed it according to the readme, that claims it must be initialized with true to avoid redundant values.
@doomsower
Copy link
Owner

Hi! This feature was added as a PR earlier, and I asked author to add it as flag to keep default behavior.

Probably enforceSingleInvocation=true is a better default behavior. But in this case the readme should be updated to reflect this change

@lucasfeijo
Copy link
Contributor Author

@doomsower Do you mean this PR could be approved if the README just reflected the new behavior? I can take care of that.

@lucasfeijo
Copy link
Contributor Author

@doomsower just a reminder, I made the changes to the README, if there's something else that needs changed just tell me

@doomsower doomsower merged commit 42a718e into doomsower:master Apr 25, 2021
doomsower pushed a commit that referenced this pull request Apr 25, 2021
# [2.0.0](v1.3.0...v2.0.0) (2021-04-25)

### Features

* Merge pull request [#14](#14) from lucasfeijo/patch-1 ([42a718e](42a718e))

### BREAKING CHANGES

* on Android, `enforceSingleInvocation` is true by default
@doomsower
Copy link
Owner

🎉 This PR is included in version 2.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants