Closed dheeraj-jft closed 8 months ago
I removed the code related to color, but now I got another error.
Please let me know what I am missing here. @JimmyDaddy
@dheeraj-jft does ../../../assets/images/Avatar.jpg
exists in your project?
@dheeraj-jft 1.2.1 is available
Thanks, it worked.
Describe the bug Crash on ios when running markText
I am using sample code from readme.
import Marker, { ImageFormat, Position, TextBackgroundType, } from 'react-native-image-marker'; export const AddTextToImage = (path, text) => { const options = { // background image backgroundImage: { src: require('../../../assets/images/Avatar.jpg'), scale: 1, }, watermarkTexts: [ { text: text, positionOptions: { position: Position.topLeft, }, style: { color: '#ff00ff', fontSize: 30, fontName: 'Arial', shadowStyle: { dx: 10, dy: 10, radius: 10, color: '#008F6D', }, textBackgroundStyle: { padding: '10% 10%', type: TextBackgroundType.none, color: '#0FFF00', }, }, }, ], scale: 1, quality: 100, filename: 'test', saveFormat: ImageFormat.png, }; Marker.markText(options); };