react-stickerpipe v3.0.1
React StickerPipe
Component for the StickerPipe API. Currently in development.
Usage
Install from npm
Basic Usage
import StickerMenu from 'react-stickerpipe';
function sendSticker(sticker) {
send.sticker(sticker);
}
function MyComponent() {
return (
<StickerMenu
apiKey={your.apiKey}
userId={your.userId}
sendSticker={sendSticker}
/>
);
}Installation
src
Install node_modules used in ./src:
$ npm iCompile ./src with Babel:
$ npm run compileexamples
Install node_modules used in ./examples:
$ cd examples && npm iCreate a settings.json file in ./examples/src:
{
"apiKey": "yourApiKey",
"userId": "yourUserId"
}Development
src
To watch for changes in ./src run:
$ npm run watchBabel will compile ./src on changes.
examples
To start the webpack server run:
$ cd examples && npm run startWebpack wil compile on changes in ./examples/src.
Contributing
If you want to help with the development of this module and need to test your changes with the examples you can import <StickerMenu /> directly from ./dist. Be sure to run npm run compile first.
'./examples/src/app.js'
// Change this
import StickerMenu from 'react-stickerpipe';
// to this
import StickerMenu from '../../dist/index';License
This project is licensed under the terms of the MIT license.
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
