React Native Everywhere

Rate this content
Bookmark

Developing for each platform individually is so 2010s. These days, with React Native’s component system providing base-level UI constructs, we can efficiently develop for every platform while not sacrificing any particular platform’s uniqueness. Taz will review the approach they’ve taken while developing Guild, and the creation of their Mondrian cross-platform responsive design system as well as how they’ve accommodated the differences in navigational experiences across platforms to accomplish a codebase that can be 95+% shared across every platform.

29 min
21 Oct, 2022

Video Summary and Transcription

Taz Singh, founder of Guild, discusses the early days of TorontoJS and the discovery of React Native. He explains the challenges of creating a cross-platform experience and the implementation of a React UI for React Native. Singh explores different React Native design systems and the challenges of navigation. He mentions Solido for managing separate web and native navigation and expresses excitement about Expo Router. Singh also discusses the future of React Native and the goal of creating an embeddable experience on every platform.

Available in Español

1. Introduction to Taz Singh and Guild

Short description:

I'm Taz Singh, the founder of Guild, a platform aimed at elevating communities around the world. I started the TorontoJS community in 2010 and have stickers for those who ask questions. Come chat with me later to learn more.

For those of you that don't know me, I'm Taz Singh and I'm here to talk about React Native Everywhere, and as Katalin mentioned, by everywhere, yes, I mean everywhere, even down here with these lovely little penguins!

For those of you that don't know me, I'm the founder of Guild, a new platform that's in beta at the moment, aimed at elevating communities around the world. Currently we're focusing on events, like the one we're at, and presentations, like the one I'm giving, all hosted on the same platform. So come chat with me later if you're curious about what we're building.

I'm sure by now you might have noticed that my accent is certainly not from around here. That's because I started the TorontoJS community back in 2010, which is actually where I'm from. And as Katalin mentioned, for those of you that have questions, I actually got these coveted TorontoJS and CanadaJS stickers for you, if you ask a question. So feel free to come get one from me after. These are in very hot demand. So if you find a Canadian and you have one of these, they might just steal it off of you.

2. Early Days of TorontoJS and React Native

Short description:

Back in 2010, JavaScript was considered complex, but I started TorontoJS to bring developers together. Moving to London in 2017, I discovered React Native and its ability to have common code running on every platform. React Native allows us to address each platform's advantages while optimizing for developer efficiency. We aim for 95 percent code sharing across every platform.

Anyway, back in those early days in 2010, I was subject to a lot of banter about JavaScript. They said, oh you aren't a real developer, unless you program in .NET or Java or C++ back then. And like, I was taken aback. back in those days, if you ever built a JavaScript application, it was immensely complex in nature.

In the early 2010s we were just starting to build apps using Backbone and Underscore. Which were insanely complicated. So I started TorontoJS just to get folks together and learn from each other to elevate our craft together. A lot of what we did back then serves as my impetus for starting Guild today and being involved with communities around the world. Because I quickly discovered that communities like TorontoJS are everywhere. We're at one here right now. In fact, a lot of my closest friends are friends that I met through the community. Some of whom are here in this very room.

And so I packed my bags in 2017 to move to London to explore those communities around the world. And that's when I was also introduced to React Native on every platform. And so you can see me here giving a talk about that in London just after moving in 2017. This is a tweet from Eli, an organizer of that event where I spoke. An emcee here as well. And also a very good friend. You can find that presentation posted on Guild. Head over to my profile, click on the presentations I've given, click on six and one, we'll take you to a video I gave back then.

But just to give you a very quick run-down of that talk today, essentially the goal is to have common code running on every platform. Of course each platform is different and requires unique considerations to properly address each platform's advantages. And that, in my opinion, is one of the core strengths of React Native. To keep the core of your platform common while pushing the uniqueness to the boundaries. Things like date selectors, file inputs, notifications, maps, and more can be addressed at those edges, leaving the internals of your application to focus on the actual common experience. For an early-stage startup like ours, it's important to optimize for developer efficiency. We want every change in our code base to be as impactful as possible. We don't want separate teams working on each platform that will result in no code sharing at all. In an unrealistically ideal world, we want all of our code to be shared across every platform, but that wouldn't address the uniqueness of individual platforms and in my opinion, React Native makes it easy to address each platform's advantages. We want the vast majority of our code to be shared across every platform aiming for 95 percent code sharing and making our developers as impactful as possible.

3. Responsive Composition and React UI

Short description:

I'm here to talk about the next part of my journey, starting with responsive composition. React Native provides basic primitives for building apps that work everywhere, but lacks CSS features like media queries and CSS grid. This makes it challenging to create a truly cross-platform experience. However, I found inspiration in Siddharth's React UI, a web-based design system with accessible and customizable components. I decided to create a similar system for React Native, and after some trial and error, I made it work.

So go check out my talk I gave in 2017, where I speak about this in more depth and I've been striving for this result for the past five years or so and I'm happy to talk to you about the next part of my journey. But if you want to get started today, all of that's included in Expo. I really enjoy how they've packaged all of that up and made it easy for you to get started within every platform codebase. I'd recommend checking out the documentation, make any app, run it everywhere.

So today I'm here to talk about the next part of my journey, starting with responsive composition. It's no secret that multiple form factors exist. When building an app that works everywhere, you obviously need to take this into account. You'd expect a platform like React Native to do this well, but it really just provides the basic primitives. And critically, there's no CSS. Which means there's no media queries. There's no CSS grid. There's no CSS selectors at all. There's no first child, last child, ends child support, there's none of that. And so styling in React Native is inspired by CSS, in that there's CSS property names and there's a Flexbox implementation, but CSS itself doesn't really exist. So if you've ever built a responsive web application before, using these types of primitives, suddenly not having them, you can start to understand how difficult it can be to build a truly every platform experience using React Native.

So what do I do? Fortunately I went to consult in Bangalore back in 2017, and the organizers of the community there got in touch with me to present for their community. Because communities are everywhere after all. So I agreed and here I am presenting on a Pontiac Aztec, it's a truly magnificent car. I had the pleasure of getting to know the organizers of that community, one of which is Siddharth, who is sitting next to me in this photo, and thank goodness for that, because he's now one of the most foremost experts in the React design system space, who I look up to for knowledge in that area. So around the same time in 2020 when I was trying to figure out a design system for my React Native application, Sidd came up with React UI. This is taken from the React UI website itself, where it says React UI comes with a set of components that are accessible, responsive, and customizable. That sounds like exactly what I want. It also has a list of components that it ships with, so reading from the right there's Element, Link, Select, Text, Text Area, and so on. It has everything. Critically at the bottom, there's also Stack and Grid to help me build a layout with those other building blocks. But the fundamental problem was that React UI is built for web, and what I want needs to be compatible with React Native. So it got me thinking. Maybe I could just create the same thing, but for React Native. And so I tried doing exactly that, but after a bunch of trial and error, I finally got something working. And so I thought to message Sid, like, I said, hey, dude, how's it going? Enjoying Amsterdam.

4. React UI Implementation for React Native

Short description:

I'm a big fan of React UI and implemented it for React Native. It's a shameless rip of React UI, but adapted for React Native. The stack component is the critical construct that makes everything composable. Just set the gap property and everything works. By composing stacks, you become a full-stack developer.

I wanted to reach out and say I'm a big fan of React UI. In fact, such a big fan, I ended up implementing large parts of it for React Native in a cross-platform manner. It's a shameless rip of React UI, but of course React UI is for the web and what I've built is for React Native. That's no emotion, no CSS. Had to implement stack a bit differently, and so on.

Sid kindly responded, that's really cool. And so React UI is a rip off theme UI. The rip off is all the way down. And so as I've been known for saying, good artist copy, great artist steal, right? But in looking at the dates in those messages, it was peak lockdown 2020 that I was working on this. And I'd like to show you what I built. So here's an example of that. And this is actually powering the Guild web experience right now. So if you go to Guild.host, you can check this exact thing out live right now.

Fundamentally, if you look at the code on the left, you can hopefully just see how it renders the experience on the right. The critical construct that makes all this composable is that stack component. Where all you have to do is set the gap property and the rest just renders based off of that. No more passing down a style prop through everything. No more like style prop drilling or whatever you want to call that. You just set a gap and that's it. Everything just works.

Now at the bottom, I have that user item component which I pull up the code for here. You can see again, it's just a stack, once again, that's horizontal this time. It renders a user's primary photo and a link component with the user's name. Everything is highly declarative and highly composable. I just need to add more elements to this page and the rest will just automatically layout based on that stack gap property. That's it. Horizontal, vertical, whatever you need, that's basically all it is. I think by just composing stacks in this way, this is what's called being a full-stack developer. Now we can take all of that and put it in a grid, which you can see I have here. Each stack is a row.

5. Mondrian and Nativebase

Short description:

We have a grid with columns within each row. By composing these stacks into a grid, we can build a responsive experience. This is what powers GIL today. I'm proud of what I built and excited to share it with you. However, I discovered Nativebase, a more comprehensive React Native design system. They have focused on accessibility and have documentation.

And we have a grid with columns within each row. By simply composing these stacks into a grid with columns, we can build the entire responsive experience on the right. That's it. I've shown you all the code directed from a production codebase, nothing hidden. This is exactly what's powering GIL today. And as you can see, I'm quite happy with it. I'm showing it all to you here right now. I'm quite proud of basically what I built during that time. So I'm pretty happy with implementation.

You know, I want to share it with all of you. It was really gearing up towards a public release of all of this. But first, obviously, you've got to come up with a cool, snazzy name. So I came up with the name Mondrian. It was inspired by the famous Dutch design system engineer, Piet Mondrian, known for composing stacks into UIs like this. So I created an empty repo in GitHub. Started preparing for a public release. And I was really excited to share Mondrian with all of you and the rest of the world.

And that's when I found out about Nativebase. So... For those of you that aren't familiar with Nativebase, let's compare it to Mondrian. First of all, Nativebase is also in every platform React Native design system. It works everywhere. It's far more comprehensive than what we've built. They've released their third version. They're on 3.4.19 and we've on alpha 3. They've spent far more time on accessibility than we have. I don't think we've thought about it much yet. They've spent a lot of time thinking about it. They have docs and we don't. And fundamentally, most importantly, they're built in Bangalore, which was the core inspiration of Mondrian and my whole design experience all along.

6. React Native Design Systems and Community

Short description:

These days, if I was to recommend a solution, I would recommend just start with Nativebase. They've done a fantastic job, it's very well done and it functions everywhere. I've come to know of another one, Tamagui, which covers about 40% of the cross-platform experience through code sharing. It's great to see more contenders in this space and the community evolving.

So these days, if I was to recommend a solution, I would recommend just start with Nativebase. They've done a fantastic job, it's very well done and it functions everywhere. But I'll take a small step back for a minute. So I've been writing this talk and meeting fantastic people like Katalin and so many other friends. I've had the pleasure of learning more about what the latest happenings are within design system space, and I've come to know of another one. Tamagui. I'm not even sure if I'm pronouncing that properly. I don't know. Tamagotchi. I don't know. So like the creator of Tamagui, Nate, he liked the term React Native everywhere so much that he borrowed it for his own website. He went on to say that Tamagui, or really I think this applies to React Native design systems as a whole, covers about 40% of the cross platform experience just by code sharing through the design system context all on its own. And for me personally it's just great to see more contenders in this space, it's good to have more options when building a React Native design system and it's also great to see the community evolving and taking this space more seriously.

7. Challenges of Navigation in React Native

Short description:

Navigation has been historically difficult to solve across platforms. Internal navigation is where you navigate using the UI itself, while external navigation is like what we find on the web. To build a navigational solution for every platform, we need to support both internal and external navigation. React router lacks native bindings on mobile, while React navigation works well on mobile but doesn't feel proper on the web. Incremental loading of routes and URL bar rewriting felt off on the web.

And so going back to the example I mentioned before, where are we now with our 95 plus percent code sharing journey? So if Tamagui mentions that they give 40% of that, composing that upwards into screens or pages maybe brings us to 60%, another 80% is maybe provided by a data layer, but then what's remaining in that bottom section there? Like, what's left to bring us to 95 plus percent? And really that's the next tier of what we're kind of figuring out right now within the React Native space, and that's navigation.

Navigation has been historically difficult and challenging to solve across every single platform, because fundamentally there's internal navigation, and what I mean by that is where you navigate using the UI itself. The actual navigational experience is internal to the UI, and that's what you'll find on like a mobile experience, you'll tap a button and you'll navigate to a new page, you'll tap a back button, within the UI you'll navigate backwards. The main exception to that is Android's back button, of course, which is external to the UI, but I won't spend a lot of time getting into that one. Then, of course, there's external navigation, like what we find on the web, and so if you use a browser before, you're familiar that there's a back button, a forward button, a refresh button and a URL bar, as well as tabs, all external to the UI of the application you're building. All of these manipulate the navigational state of the application, entirely external to the application itself, of course. So I don't have to explain how a browser works, but the main thing is the URL bar, and so that's fundamentally different and lacking on an internal navigation experience, but it's present on an external navigation experience. You should be able to copy that URL into a new tab, and it should just load that same page for you. It should all just work. And to demonstrate an example of that, I have a recording of my cat's Instagram page. She's too adorable, isn't she? If we navigate using the UI, like internally to that experience, you can see a modal opens It opens up contextually over what's behind it because it knows what's behind it because all of that application state is handled by the application itself. This is similar to how mobile and desktop navigation could work. But as you can see, copying that URL into a new tab opens the same page but it doesn't know what to put behind it, so it renders that as an entirely full page. This is, again, like external navigation working on the web. So really to build in every platform navigational solution, we need to support both. External navigation and external navigation all within the same experience. And this has been historically very challenging to do, especially in React Native. So how do we get building on this? Well, there's React router, of course, which advertises support for browser-based DOM routing as well as React Native. And while this works very well, it lacks the native bindings on mobile to do things like dragging from the side of the screen to navigate backwards. It just doesn't feel native. The state management works but it doesn't feel native on those platforms. Then there's React navigation, which is a full on mobile-first navigational experience. If you worked with React Native before, you've likely used React navigation. It uses React Native screens from Software Mansion to provide that drag from the edge of the screen to go back functionality. And on mobile, it works great. In recent years, they've also shipped web support, as I'm showing here, and so we ended up trying this at Guild and it just didn't quite feel proper on the web. While it technically works, a bunch of things just felt off. Things like incremental loading of routes, which you obviously want on the web, you don't want to ship everything in one massive payload. It would also rewrite the URL bar incrementally as well, so you see the URL bar rewriting itself as you waited for the rest of the page to load, which just felt odd. And if you press the back and forward buttons, it would put the app into a weird state where it just couldn't recover, so you would go and refresh it again and the URL bar would rewrite itself again, so it just felt entirely off.

8. React Navigation vs React Router

Short description:

React router has great state management but it doesn't feel native on non-web platforms. React navigation state management is a bit wonky but it has that native feel. We've picked React navigation despite its flaws in the web. The UX won't be ideal but at least the users will just have to live with it for now. The team is working hard to improve the user experience with each release.

But to summarize, then, basically, React router has great state management but it doesn't feel native on non-web platforms and React navigation state management is a bit wonky but it has that native feel. So if we're aiming for 95 plus percent code sharing for every platform, we've picked React navigation despite its flaws in the web. The UX won't be ideal but at least the users will just have to live for it for now. Its wonkiness is just the best we have. And I know the team there is smart and they're working very hard on this, like, I know them very well and I know that they're putting a lot of time and effort into this. And so I've tried to lend a hand by sending in pull requests but the state of the code base was just beyond my comprehension to actually properly contribute, so we'll just have to wait and upgrade as they release new features. The user experience will hopefully improve after every release, and that's really the best that we have today. So that's basically what we went for.

9. Solido for Separate Web and Native Navigation

Short description:

Solido makes it easier to manage a web navigation stack separately from a native navigation stack. It's not what we're looking for if we're focused on code sharing.

More recently, speaking with other folks in the community, they've all told me about Solido. There's been a lot of marketing around Solido solving cross platform navigation. And so my view is that Solido makes it easier to manage a web navigation stack, powered by Next.js, separately from a native navigation stack powered by React Navigation. You have two entirely different navigational stacks. That's how this solution gets around the types of challenges I mentioned before. You can see in their docs when creating a route, it requires you to define a route on the web, and then separately define another route entirely on native. It's two entirely different navigational stacks. By design, this is not 95% plus code sharing. This is two entirely different navigational stacks. And Solido does a fantastic job of making it easier to manage two different navigational stacks. But it's not really what we're looking for if we're focused on code sharing. If it was code sharing, that would be just one step. You just create a screen. That would be it.

10. Expo Router and Future Plans

Short description:

I'm excited about Expo Router, which unifies native routing around URLs, making it easier to author navigational stacks across platforms. Deep linking on mobile is also simplified. Although it's still in beta and lacks web support, the team is working on refining it and adding web-based build tooling and bundling. I can't wait for the final release and the increased code sharing it enables. For now, we'll continue using React navigation despite its flaws.

So on my travels, I was fortunate enough to bump into the expo team in April, back at React Miami, because communities are everywhere after all. Like, React Miami was a fantastic community. I'm here with Brent, a core maintainer for React navigation, as well as Evan and Charlie. I had such a good chat with them that I said, hey, Evan, we have to chat a bit more about every platform. We have the front tier of every development. So the next day we sat down to chat about build tooling, navigation, and bundling and recorded it all for our YouTube channel. You can check that out down below.

He had some amazing ideas back then in April, and six months later, it's awesome to see it finally come to fruition in Expo Router. Honestly, this looks amazing. To create a screen, you just create a screen. That's it. It's one step. You're done. Fundamentally, it unifies native routing around URLs, which makes it far easier to author your navigational stack across every platform, as a URL path is a first class construct everywhere. Another nice side effect of this is deep linking on mobile is dramatically easier. You just refer to the same URL as you would on web. URLs. Who would have guessed that solved navigation?

This router is in beta at the moment as the Expo team is seeking feedback to refine it before an official public release. It's not quite ready for us to use in the web, in my opinion, because it still only supports the metro bundler, which doesn't do code splitting. It still ships everything as one gigantic payload. But again, this is really feedback for the team to see if this approach works. Speaking to the team, the next thing they'll be working on is proper web-based build tooling and bundling for this. So I'm super excited about the direction of this. This looks legitimately amazing. 95% plus code sharing is possible because of this. And I can't wait for the final release of it being officially possible. But as I mentioned before, it's not quite there yet. And so for now we just have to stick with React navigation and kind of go through all the flaws that that has. And so that's really my talk. Thanks.

11. React Native URL Router

Short description:

I fooled you. I'm disappointed in all of you. Complained to my friend Lorenzo. He told me about React Native URL router, which combines the best parts of React router and React Native screens. Unfortunately, it didn't work for the web.

Thank you very much, Taz. I fooled you. Oh! There was another one? I can't end a talk like that. Come on. What do you think? What do you expect? I even fooled Cattelan. That's a terrible way to end a talk. Are you kidding me? There's no real solution at the end of that. I'm disappointed in all of you. I'm disappointed in all of you for that. Come on. You should expect more out of me.

So by now you should know that if I solve all my problems in the community with incessant complaining to members of the community. And so this time it was complaining to my good friend Lorenzo, pictured here at my friend, Phil and Cindy's wedding. It's the only photo I have with him and it's too bad he's just not here today. I'm going to take another picture with him, you know, just me and him this time. So just to resolve any ambiguity here in case you're wondering how this works. Reading from the left to the right, I'm clearly the best man and Lorenzo's clearly the second best man and there's no other way to interpret this photo. And it's a good thing Lorenzo wasn't here to tell you either. But anyway, Lorenzo was also a former maintainer of React navigation and also heavily involved with the React Native community efforts. Oftentimes when I don't know if a good way to proceed in the React Native space, I just go ask Lorenzo. Because he tends to know about community happenings before a lot of the rest of us do. And this time, he came through. He told me of a new library called React Native URL router. And that sounds like exactly what I want, a React Native router but with URLs. And so I took a look at their documentation and found this example. So I'm not sure if you can see the small text on the left, but basically it's all the best parts of React router and their excellent state management mashed together with the best parts of React Native screens to provide that drag from the edge navigation experience that's native to mobile. This looked amazing. So I went to go try it out and found it just did not work at web at all fundamentally. Just didn't compile. Just didn't work.

12. React Native URL Router and Partnership

Short description:

Adding web support to React Native URL Router looked straightforward by swapping out two components. Before contributing, I checked with the maintainers and was surprised by their support and kindness. They were interested in Guild's direction and wanted to help the community effort. We partnered on React Native URL Router, rewrote the app, and removed more code than introduced. The app feels snappier with browser-based navigation. Did you notice Guild's use of React Native Web, an experimental design system, and navigational framework?

It's still experimental. Still built mainly for mobile. But adding web support looked pretty straightforward. If you can see that red outline there, it looked like just swapping out those two components and that's it. Swap out a native router for a browser router and swap out a stack navigator for a router component from React router. Swapping out two components made it look as if the rest of this would just work very well on web.

But I didn't want to go through all the effort of sending PRs over only for the maintainers to reject them during review due to not being aligned with their direction. So I wanted to check with the maintainers before contributing essentially to this project. I got in touch with Alec from Software Mansion and asked if we could have a quick chat about the direction before I started just sending over PRs. And what I got really surprised me.

Alec set up a call and invited Christoph, who I looked up on LinkedIn beforehand because I didn't know who he was. It said he's the director of engineering at Software Mansion and I was, like, gearing up for like a, well Taz, we're a consultancy. And if you want to hire us as a consultancy, here's our rate sheet. And we'll be happy to help you out with anything you need based on that rate sheet. But what I got instead really surprised me. I got so much support and kindness from both of them that I was really taken aback.

They told me that they're here to help with any aspect of using their library and they didn't ask for anything in return but kind feedback on ways we can improve together. In fact, they were more interested in the direction of Guild as a platform and wanted to help support the community effort along with us. I have to say, I've been in the software business for over two decades now. I don't think I've seen so much love and dedication to the craft as I've seen from these two. It was honestly amazing. I can only speak of them in the highest and would recommend you check out their community efforts as well. We agreed to partner up on React Native URL Router to use Guild as an example app of how that works as a production ready full fledged application and we can test out the paradigm, fix any kinks and get that library working for everyone out there in the community as well. So, I rolled up my sleeves. I rewrote our entire app. I ripped up that React Navigation and wrapped in React Router as a stepping stone towards React Native URL Router and here are the stats from that PR. As you can see, I removed more than double the code I introduced. And overall, the app feels much snappier now because all the browser-based navigation feels much more at home. I think the best way to ask if it was worth it is to ask you. Did you even notice? Did you notice that Guild is using React Native Web? Did you notice that Guild is built using an experimental homegrown design system? Did you notice that it's also using an experimental navigational framework? Or did you think it was an ordinary app built in ordinary ways all along? I spoke a lot about running on every platform.

13. Future Plans and Community

Short description:

We're still focused on the web, but plan to release mobile and desktop apps in the future. Our success is thanks to the community, and we're privileged to have met and learned from them. We started TorontoJS in 2010 and now work on Guild. Communities are everywhere, and so is technology.

But right now we're still focused on just the web. But we hope to incrementally release a mobile and desktop app in the future because our entire infrastructure is built to accommodate that. It's much easier releasing that from where we are today than starting a whole new codebase. But if you've taken away anything from this talk, it should be that we're only as good as the community around us. Throughout this journey I'm fortunate and privileged to have met the people I've met through the community. Without them and without their support, I would be nowhere at all. It's not like I'm special. I just go to events and I talk to the people there and I learn from them. That's why we started TorontoJS back in 2010, and that's why we're working on Guild now. Because at the end of the day, communities are everywhere. And now your technology is, too.

QnA

Gratitude and Q&A Introduction

Short description:

Thank you so much, Taz. Is it okay now? We have enough time for some Q&A. Sorry about the previous talk. If you have asked something, it seems that I haven't moderated the forum, so go ahead to Lorenzo and ask the question personally. I have prepared some questions on my own.

Thank you. Thank you. Thank you so much, Taz. Thank you so much. Is it okay now? Yeah! Nothing was prepared, by the way, but yeah, it was really, really nice at the end. So yeah, thank you so much for the talk. Thank you. No, oh, yeah, we have enough time for some Q&A. Sorry about the previous talk. If you have asked something, it seems that I haven't moderated the forum, so go ahead to Lorenzo and ask the question personally. Wait, and Lorenzo's here? I asked questions anyway. So please do so. And I feel sorry about that and really bad, yeah, shameful. So speaking about questions, I haven't... Right now it's auto-moderate off, so if you're doing something, you'll be able to see it on the screen. But I have prepared some questions on my own.

Future of React Native and Embedable Components

Short description:

Our journey and commitment to React Native everywhere means literally everywhere. The next frontier will be embedability, allowing us to place our experience where the traffic exists. We're exploring how to embed across different web and mobile experiences, stitching in React Native into other frameworks. Micro front ends play a significant role in this work, and we're focused on creating a truly embeddable experience on every platform.

Where do you see React and React Native in the future, and in terms of embedable components? Oh, I'm so happy you asked that question. So essentially, our journey and commitment to React Native everywhere is we mean very literally everywhere. So right now, as I mentioned, five years ago, we were kind of obsessed with how does this physically execute on every platform? Like, what's the method of execution to run the same code across every single platform? And that was kind of the forefront of five years ago. Today, it's design systems and navigation, and I'm super happy to see tons of great solutions out there, as I obviously talked about in my talk. But I think to have... I swear that's not me. And so I think the next frontier will be embedability. How do we take the experience that we've built and how do we place that where the traffic exists? So for us at Guild, obviously we're an event-driven website, events include ticketing, for example. You might have a conference website, you might want to put the ticketing experience on the conference website. That requires embeddability of an experience. And so it's our view that that will be the next frontier of how do we embed across different web experiences, essentially for React Native Everywhere. Conversely, how do we embed across mobile experiences? How do you take the same experience, embed it within another app? How do you take that same experience, and stitch it in seamlessly anywhere? We've done experiments of stitching in React Native into Flutter because at the end of the day, they're both reporting down to native mobile views. It's technically possible to stitch in native views. You can stitch in one native view powered by React Native into another native view. The same thing for stitching in React Native into any web experience out there as well. You need to wrap it in a container and then you can kind of ship it around. So I think a lot of this work falls back onto the work on micro front ends. I know Alex LaBerra and Ruben Casa are here to talk about that as well. But that's kind of the next frontier as we think about it is how do we go from where we are now into creating a truly embeddable every platform experience?

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

React Advanced Conference 2023React Advanced Conference 2023
29 min
Raising the Bar: Our Journey Making React Native a Preferred Choice
At Microsoft, we're committed to providing our teams with the best tools and technologies to build high-quality mobile applications. React Native has long been a preferred choice for its high performance and great user experience, but getting stakeholders on board can be a challenge. In this talk, we will share our journey of making React Native a preferred choice for stakeholders who prioritize ease of integration and developer experience. We'll discuss the specific strategies we used to achieve our goal and the results we achieved.
React Finland 2021React Finland 2021
27 min
Opensource Documentation—Tales from React and React Native
Documentation is often your community's first point of contact with your project and their daily companion at work. So why is documentation the last thing that gets done, and how can we do it better? This talk shares how important documentation is for React and React Native and how you can invest in or contribute to making your favourite project's docs to build a thriving community
React Day Berlin 2023React Day Berlin 2023
29 min
Bringing React Server Components to React Native
React Server Components are new topic in community, bunch of frameworks are implementing them, people are discussing around this topic. But what if we could use React Server Components in React Native? And bring all optimisation features that RSC allows to mobile apps? In this talk I would present what we are able to do with RSC in React Native!
React Advanced Conference 2021React Advanced Conference 2021
21 min
Building Cross-Platform Component Libraries for Web and Native with React
Top Content
Building products for multiple platforms such as web and mobile often requires separate code-based despite most of the components being identical in look and feel. Is there a way where we could use shared React component library on different platforms and save time? In this presentation I'll demonstrate one way to build truly cross-platform component library with a unique approach of using React & React Native in combination.

Workshops on related topic

React Advanced Conference 2022React Advanced Conference 2022
81 min
Introducing FlashList: Let's build a performant React Native list all together
Top Content
WorkshopFree
In this workshop you’ll learn why we created FlashList at Shopify and how you can use it in your code today. We will show you how to take a list that is not performant in FlatList and make it performant using FlashList with minimum effort. We will use tools like Flipper, our own benchmarking code, and teach you how the FlashList API can cover more complex use cases and still keep a top-notch performance.You will know:- Quick presentation about what FlashList, why we built, etc.- Migrating from FlatList to FlashList- Teaching how to write a performant list- Utilizing the tools provided by FlashList library (mainly the useBenchmark hook)- Using the Flipper plugins (flame graph, our lists profiler, UI & JS FPS profiler, etc.)- Optimizing performance of FlashList by using more advanced props like `getType`- 5-6 sample tasks where we’ll uncover and fix issues together- Q&A with Shopify team
React Summit 2022React Summit 2022
117 min
Detox 101: How to write stable end-to-end tests for your React Native application
Top Content
WorkshopFree
Compared to unit testing, end-to-end testing aims to interact with your application just like a real user. And as we all know it can be pretty challenging. Especially when we talk about Mobile applications.
Tests rely on many conditions and are considered to be slow and flaky. On the other hand - end-to-end tests can give the greatest confidence that your app is working. And if done right - can become an amazing tool for boosting developer velocity.
Detox is a gray-box end-to-end testing framework for mobile apps. Developed by Wix to solve the problem of slowness and flakiness and used by React Native itself as its E2E testing tool.
Join me on this workshop to learn how to make your mobile end-to-end tests with Detox rock.
Prerequisites- iOS/Android: MacOS Catalina or newer- Android only: Linux- Install before the workshop
React Summit Remote Edition 2021React Summit Remote Edition 2021
60 min
How to Build an Interactive “Wheel of Fortune” Animation with React Native
Top Content
Workshop
- Intro - Cleo & our mission- What we want to build, how it fits into our product & purpose, run through designs- Getting started with environment set up & “hello world”- Intro to React Native Animation- Step 1: Spinning the wheel on a button press- Step 2: Dragging the wheel to give it velocity- Step 3: Adding friction to the wheel to slow it down- Step 4 (stretch): Adding haptics for an immersive feel
React Advanced Conference 2023React Advanced Conference 2023
159 min
Effective Detox Testing
Workshop
So you’ve gotten Detox set up to test your React Native application. Good work! But you aren’t done yet: there are still a lot of questions you need to answer. How many tests do you write? When and where do you run them? How do you ensure there is test data available? What do you do about parts of your app that use mobile APIs that are difficult to automate? You could sink a lot of effort into these things—is the payoff worth it?
In this three-hour workshop we’ll address these questions by discussing how to integrate Detox into your development workflow. You’ll walk away with the skills and information you need to make Detox testing a natural and productive part of day-to-day development.
Table of contents:
- Deciding what to test with Detox vs React Native Testing Library vs manual testing- Setting up a fake API layer for testing- Getting Detox running on CI on GitHub Actions for free- Deciding how much of your app to test with Detox: a sliding scale- Fitting Detox into you local development workflow
Prerequisites
- Familiarity with building applications with React Native- Basic experience with Detox- Machine setup: a working React Native CLI development environment including either Xcode or Android Studio
React Summit 2023React Summit 2023
88 min
Deploying React Native Apps in the Cloud
WorkshopFree
Deploying React Native apps manually on a local machine can be complex. The differences between Android and iOS require developers to use specific tools and processes for each platform, including hardware requirements for iOS. Manual deployments also make it difficult to manage signing credentials, environment configurations, track releases, and to collaborate as a team.
Appflow is the cloud mobile DevOps platform built by Ionic. Using a service like Appflow to build React Native apps not only provides access to powerful computing resources, it can simplify the deployment process by providing a centralized environment for managing and distributing your app to multiple platforms. This can save time and resources, enable collaboration, as well as improve the overall reliability and scalability of an app.
In this workshop, you’ll deploy a React Native application for delivery to Android and iOS test devices using Appflow. You’ll also learn the steps for publishing to Google Play and Apple App Stores. No previous experience with deploying native applications is required, and you’ll come away with a deeper understanding of the mobile deployment process and best practices for how to use a cloud mobile DevOps platform to ship quickly at scale.
React Advanced Conference 2022React Advanced Conference 2022
131 min
Introduction to React Native Testing Library
Workshop
Are you satisfied with your test suites? If you said no, you’re not alone—most developers aren’t. And testing in React Native is harder than on most platforms. How can you write JavaScript tests when the JS and native code are so intertwined? And what in the world are you supposed to do about that persistent act() warning? Faced with these challenges, some teams are never able to make any progress testing their React Native app, and others end up with tests that don’t seem to help and only take extra time to maintain.
But it doesn’t have to be this way. React Native Testing Library (RNTL) is a great library for component testing, and with the right mental model you can use it to implement tests that are low-cost and high-value. In this three-hour workshop you’ll learn the tools, techniques, and principles you need to implement tests that will help you ship your React Native app with confidence. You’ll walk away with a clear vision for the goal of your component tests and with techniques that will help you address any obstacle that gets in the way of that goal.you will know:- The different kinds React Native tests, and where component tests fit in- A mental model for thinking about the inputs and outputs of the components you test- Options for selecting text, image, and native code elements to verify and interact with them- The value of mocks and why they shouldn’t be avoided- The challenges with asynchrony in RNTL tests and how to handle them- Options for handling native functions and components in your JavaScript tests
Prerequisites:- Familiarity with building applications with React Native- Basic experience writing automated tests with Jest or another unit testing framework- You do not need any experience with React Native Testing Library- Machine setup: Node 16.x or 18.x, Yarn, be able to successfully create and run a new Expo app following the instructions on https://docs.expo.dev/get-started/create-a-new-app/