dbarner1 / react-native-stickers

A fully style-customizable image editing tool that allows the user to add a sticker, and output an updated image.
32 stars 6 forks source link

Add multiple sticker support #6

Open dbarner1 opened 5 years ago

reemasaleh9 commented 3 years ago

Is there a way to add multiple stickers for one image? I tried but still gets errors in dealing with arrays Thank you

dbarner1 commented 3 years ago

Not at this time.

I encourage you to fork to add this feature. At this point I don't have the time to add it in.

On Feb 12, 2021 at 7:31 AM, reemasaleh9 notifications@github.com wrote:

Is there a way to add multiple stickers for one image? I tried but still gets errors in dealing with arrays Thank you

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dbarner1/react-native-stickers/issues/6#issuecomment-778168416, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFQSV4GSDOVU2HMKUEQXCELS6UNSLANCNFSM4HCSV7GQ .

reemasaleh9 commented 3 years ago

I tried the following: {finalStickers.map((sticker, index) => { return( <TouchableOpacity key={index} onPress={() => this._isMounted && this.setState({showSticker: true, sticker: sticker.concat([sticker[1]] )})}> {sticker[0]} ) })}

and when rendering the image: {this.state.sticker.map( e => { <Image style={{width: this.props.stickerSize, height: this.props.stickerSize}} source={e} /> })}

it works fine but there are no stickers are rendered, any suggestions?