amazon-archives / amazon-cognito-js

Amazon Cognito Sync Manager for JavaScript
http://aws.amazon.com/cognito
Apache License 2.0
202 stars 83 forks source link

Request: React native support #52

Open anthonyjoeseph opened 6 years ago

anthonyjoeseph commented 6 years ago

Because aws-sdk has nodejs dependencies, to integrate with my react-native project, I have to change a line of code in node_modules/dist/amazon-cognito.min.js from require("aws-sdk") to require("aws-sdk/dist/aws-sdk-react-native").

This of course isn't ideal for my project, since it makes me worry that if amazon-cognito-js updates, my code might break.

Would it be possible to release a branch of this project for react-native users containing this small change, or offer a more dynamic require system? Thanks!