Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image background doesn't worl #202

Open
Merrick17 opened this issue May 9, 2021 · 1 comment
Open

image background doesn't worl #202

Merrick17 opened this issue May 9, 2021 · 1 comment

Comments

@Merrick17
Copy link

i'm trying to add a new image to background but it doesn't show

@mealCode
Copy link

mealCode commented Aug 26, 2021

it actually work for some images, i am using:

"react": "17.0.2",
"react-native": "0.65.1",

<RNSketchCanvas
localSourceImage={{
filename: 'form_8bit.png', // e.g. 'image.png' or '/storage/sdcard0/Pictures/image.png'
directory: 'SketchCanvas.MAIN_BUNDLE', // e.g. SketchCanvas.MAIN_BUNDLE or '/storage/sdcard0/Pictures/'
mode: 'AspectFill',
}}
/>

make sure you include image in drawer (in my case android)

android/app/src/main/res/drawable/form_8bit

but for long image or bigger size it won't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants