Creative Kit sample code for React Native.
There is no special setup required to use Creative Kit Web (other than including the share button on your site).
- Go to the Snap Kit developer portal > Sign-in with your Snapchat Account > Either create a new App by clicking on New Project Or Open an already existing app.
-
After the app is registered, click Setup and you should see two OAuth Client IDs:
OAuth Client ID Usage Production This lets your app post content from any Snapchat account but your app must be approved for the Production Client ID to work. Staging This lets your app post content even before an app is reviewed and approved but only Snapchat accounts listed under the Demo Userswill be able to use your application.
-
Clone the Sample App repository on your local machine
# Clone the repo $ git clone https://github.com/Snapchat/creative-kit-sample.git # CD into the React root directory $ cd creative-kit-sample/reactjs/
Note: You should now be inside the react-native root directory:
/Users/.../creative-kit-sample/react-native/
-
Run the
ReactCreativeKitDemoapp# Running on localhost $ yarn dev