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