amazon-archives / aws-sdk-react-native

AWS SDK for React Native (developer preview)
Apache License 2.0
631 stars 68 forks source link

Provide samples and/or examples #15

Open tioback opened 7 years ago

tioback commented 7 years ago

Please provide samples and/or examples on how to use the SDK.

adrienjt commented 7 years ago

There are a few integration tests in the code. They've helped me. But I agree real samples (explained) would be better.

Parrryy commented 7 years ago

+1 Better instructions would be great...

mecmuc commented 7 years ago

+1

The "detail step-by-step guide" of chunghe helped me a lot making it run on android. https://github.com/awslabs/aws-sdk-react-native/issues/35

Now I'm looking for sample code how to authenticate and subscribe. The tests include code how to i.e. subscribe to get emails or list the topics: https://github.com/awslabs/aws-sdk-react-native/blob/master/SNS/IntegrationTests/SNSTests.js

I'd like to receive notifications in the app, but don't know how to create the platformEndpoint, the PlatformApplicationArn and the deviceToken. Some sample code would be great.