Open dbarner1 opened 5 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 .
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?
Is there a way to add multiple stickers for one image? I tried but still gets errors in dealing with arrays Thank you