portkey-cloud / aws-clj-sdk

Clojure bindings for AWS
103 stars 12 forks source link

React Native support #19

Open viesti opened 6 years ago

viesti commented 6 years ago

React Native sits on top of JavaScriptCore (at least last time I checked). Would be good to check that #1 aligns with usage of aws-clj-sdk in React Native projects

dupuchba commented 6 years ago

really love the idea, we might wait after finishing the 5 protocols right ? How do you see it ?

viesti commented 6 years ago

AWS has a project called Amplify which has React components for authentication with Cognito and probably a set of helpers for making requests to AWS API's, but probably also to API's made with API Gateway intended to work as a backend for the mobile app. I haven't used or looked at Amplify, or the current state of ClojureScript with React Native, but I'd think that we have at least possibility of providing a Clojure native experience.

I'd think that it's best to finish service support, although RN app uses probably quite limited set of services (say DynamoDB and S3). Spinning up few servers with EC2 API isn't necessary, although might be fun, for some definition of fun :)

dupuchba commented 6 years ago

I've used a yeard ago cljs & react-native. If it compiles to cljs I don't see why aws-clj-sdk could not work

cgrand commented 6 years ago

I guess it’s about host api. You don’t have the same apis (network, crypto ) in React Native and in Node.

viesti commented 6 years ago

Yes, now that my mind refreshes, RN uses Fetch API for HTTP. Don't know what's the thing used in Node, maybe some XMLHttpRequest wrapper? But yeah, a survey of the host api is in order.