Skip to content

Instantly share code, notes, and snippets.

@imgly-gists
Last active February 20, 2020 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imgly-gists/64daef5ec746c10a335dc02da810549d to your computer and use it in GitHub Desktop.
Save imgly-gists/64daef5ec746c10a335dc02da810549d to your computer and use it in GitHub Desktop.
Minimal React Native app which shows how to add custom stickers to PhotoEditor SDK
import React, { Component } from 'react';
import { Configuration, PhotoEditorModal } from 'react-native-photoeditorsdk';
const configuration: Configuration = {
sticker: {
categories: [{
identifier: "demo_sticker_category", name: "Logos",
thumbnailURI: require("./react.png"),
items: [{
identifier: "demo_sticker_react", name: "React",
stickerURI: require("./react.png")
}, {
identifier: "demo_sticker_imgly", name: "img.ly",
stickerURI: require("./imgly.png")
}
]}
]}
}
export default class App extends Component {
render() {
return (
<PhotoEditorModal visible={true}
image={require("./image.jpg")}
configuration={configuration}/>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment