reactjsreact-nativeaws-amplifyamplifyjs

How to use existing amplify backend in both react and react native


I have setup a simple Amplify backend API and connected it to a React Native frontend. Now I want to connect it to a React frontend.

Could I extract all of the Amplify code into its own project to be used by both frontends? I want to avoid code duplication as much as possible. Has anyone done this before?


Solution

  • This is a supported feature. You can read all about it in the docs about multiple front-ends