Closed TomatoesMan closed 1 year ago
file:///xxx
for Android and iOS:
Hi @JimmyDaddy, I'm having the same problem. I'm trying to use a uri
or file:///....
as src
, then it crashes.
Hi @JimmyDaddy, I'm having the same problem. I'm trying to use a
uri
orfile:///....
assrc
, then it crashes.
Hi @thongquach , can you give me a MRE and crash logs
I found out the issue: https://github.com/JimmyDaddy/react-native-image-marker/issues/43#issuecomment-510333330
I found out the issue: #43 (comment)
Which version are you using?
I'm using an old version, which is 0.6.3
. I intended to use the latest version but encountered some Android build issues.
I'm using an old version, which is
0.6.3
. I intended to use the latest version but encountered some Android build issues.
Could you please provide your sample code and crash log? I can take a look and see what the specific issue is.
I first got a complain about node version, mine is 14 and yours is 16. I bypassed using --ignore-engines
.
Then I got Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0
I first got a complain about node version, mine is 14 and yours is 16. I bypassed using
--ignore-engines
. Then I gotModule was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0
"react-native-image-marker": "^0.6.3", "react-native-image-picker": "^4.10.0", "react-native": "0.69.5",
import {launchCamera} from 'react-native-image-picker'; import ImageMarker from 'react-native-image-marker';
const cameraAction = async () => { const result = await launchCamera({ quality: 0.2, mediaType: 'photo', }); console.log(result, 222) const { assets: [{uri}], } = result; ImageMarker.markText({ src: uri, text: 'text marker', X: 30, Y: 30, color: 'red', // '#ff0000aa' '#f0aa' fontName: 'Arial-BoldItalicMT', fontSize: 22, shadowStyle: { dx: 10.5, dy: 20.8, radius: 20.9, color: '#ff00ff', // '#ff00ffad' }, textBackgroundStyle: { type: 'stretchX', paddingX: 1, paddingY: 1, color: '#0f0', // '#0f0a' }, scale: 1, quality: 100, }).then((res) => { console.log(res, 111) }).catch((err) => { console.log(err) }) }; <TouchableOpacity onPress={() => cameraAction()}>
<Image style={{width: 300, height: 300}} source={{uri}} />