backpack icon indicating copy to clipboard operation
backpack copied to clipboard

Split of React Native and React components?

Open smksnutmeg opened this issue 3 years ago • 2 comments

Hey guys, curious to know why you split out react native and react web components into separate repos? I recall them being in the same repo originally.

  • Was it a maintenance problem?
  • Were there conflicting issues with the build progress?
  • Anything else?

Thanks, Shaun

smksnutmeg avatar Dec 07 '21 09:12 smksnutmeg

Hey @smksnutmeg

Thanks for your message. You are correct and originally them being in the same repo.

The reason they were split out was due to maintenance and having to manage it in the same repo as they were differing in direction and we weren't sharing code across platforms and treating them as separate projects.

We also wanted to change the direction of React Native into more bridged components with native and found having it in the same repo just became a bit more difficult to manage having all the projects in the one repo.

Its worth noting React Native though is now in maintenance mode as we move away from React Native to more native development itself for our design system

Hope that helps answer your query? Ollie

olliecurtis avatar Dec 07 '21 10:12 olliecurtis

Very insightful thanks! So React Native, was there any reasoning to move in the direction of full Native? We were looking into adding a react native component in each package alongside our web components, but we may think about breaking into a separate repo from the start to avoid the diverging issues you speak of. Any other learnings to share based on your experiences? Much appreciated, thanks!

smksnutmeg avatar Dec 07 '21 11:12 smksnutmeg

Hey,

Apologies its been a while since this last message!

was there any reasoning to move in the direction of full Native?

This was due to experience within the team and the fact we had established Native Backpack library also but also how we wanted to better utilise the platform specific features/functionality and new tech e.g. Jetpack Compose or SwiftUI - which we couldn't use whilst having React Native. So have gone down the route of three platforms of Web, Android and iOS

Thanks!

olliecurtis avatar Feb 06 '23 09:02 olliecurtis