Skip to content

Support react-navigation 4.0.x (breaking change). #3

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 1 commit into from
Sep 18, 2019

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Sep 10, 2019

I assume this will also break the example. After this + all the repo/package renaming is through, we should get the example to work again.

@cknitt cknitt requested a review from MoOx September 10, 2019 09:47
@MoOx
Copy link
Member

MoOx commented Sep 17, 2019

Should we split into several bindings (packages/repo?) Would make sense even if "annoying" to handle?

@cknitt
Copy link
Member Author

cknitt commented Sep 17, 2019

For the npm package, having version numbers that match the react-navigation version should be sufficient. In the repo, we could keep a v3 branch, and use the master branch for 4.x.

@MoOx
Copy link
Member

MoOx commented Sep 17, 2019

I may not expressed myself correctly.

I was more thinking about react-navigation-drawer, -stack & -tabs

@cknitt
Copy link
Member Author

cknitt commented Sep 17, 2019

Ah, right, sorry.

I think it's not worth the effort to have separate repos/npm packages for those, that would only complicate things further both for users and for us.

@MoOx
Copy link
Member

MoOx commented Sep 17, 2019

I agree but people might looks for a given things & not look for it.
We could try to rename DrawerNavigator & friends to ReactNavigationDrawer maybe?

@cknitt
Copy link
Member Author

cknitt commented Sep 18, 2019

Yes, that's a good idea! I'll do this in a follow-up PR.

"publishConfig": {
"access": "public"
},
"peerDependencies": {
"react-navigation": "^3.11.0"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea of placing peered next to the version is to ensure we follow our versioning "rule" for the binding. Any thoughts about keeping peerDep around here?

@MoOx MoOx merged commit aa69d4b into master Sep 18, 2019
@MoOx MoOx deleted the react-navigation-4.0 branch September 18, 2019 14:33
@cknitt
Copy link
Member Author

cknitt commented Sep 21, 2019

@MoOx Regarding renaming: I forgot that we already have the namespace ReactNavigation set in bsconfig.json. So if we renamed DrawerNavigator as suggested, it would become ReactNavigation.ReactNavigationDrawer.

Or I would need to "namespace everything manually" instead of via bsconfig.json which I don't really want. So I'd rather keep things as they are.

@MoOx
Copy link
Member

MoOx commented Sep 23, 2019

Oh yeah. I guess documentation should be ok.
We could also go for ReactNavigation.Drawer.

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.

2 participants