Skip to content

Instantly share code, notes, and snippets.

@imgly-gists imgly-gists/App.js
Last active Feb 20, 2020

Embed
What would you like to do?
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
You can’t perform that action at this time.