Use the Factory Pattern to Untangle your Code

The Factory pattern is a powerful way to decouple parts of your app. Unfortunately a lot of tutorials on this pattern miss the point about decoupling and have a switch statement in the factory to generate each object. This negates the benefit of the factory in my opinion so here’s a tutorial with full abstraction.

Create a React Native TypeScript Package

I wasted many hours trying to create a TypeScript package that would work with an existing React Native Typescript project. Here’s hoping this saves someone else some of those hours!