Giter Club home page Giter Club logo

Comments (9)

xuanheScript avatar xuanheScript commented on July 26, 2024 6

@gre Very happy i solved this problem using CameraRoll successfully saved pictures that i have not tested yet android but i hope it can help to someone else.
Thank you for your help.
image

from react-native-view-shot.

xuanheScript avatar xuanheScript commented on July 26, 2024

image

from react-native-view-shot.

xuanheScript avatar xuanheScript commented on July 26, 2024

This is the code
image

from react-native-view-shot.

xuanheScript avatar xuanheScript commented on July 26, 2024

@gre Need your help, thanks

from react-native-view-shot.

gre avatar gre commented on July 26, 2024

sounds like it's a permission issue.

Do you really need to save it to PictureDir ? path is an advanced feature and i'm not sure i got it right. but takeSnapshot should work if you don't provide a path, it will be a temporary file but you can use its URI to do things like sharing. (via http://facebook.github.io/react-native/docs/actionsheetios.html for instance )

from react-native-view-shot.

xuanheScript avatar xuanheScript commented on July 26, 2024

Sorry, I really need to save to the phone album, I use the react native 0.43, I do not know if this is related, but also can provide some other help?

from react-native-view-shot.

gre avatar gre commented on July 26, 2024

sorry but this is a bit beyond my knowledge on the subject, I added a disclaimer on the path usage and I can't guarantee it works nor to provide any help on that, sorry :'(

I even think this path feature should not be in the lib because it's a complex topic beyond the scope of this library that "snapshot a view":
I feel this problem of moving a file to a given place with "intent" & permissions should be solved by a more generic react-native library. maybe something like https://github.com/itinance/react-native-fs would do that? Would that solve the problem?

thanks

from react-native-view-shot.

gre avatar gre commented on July 26, 2024

oh great!

from react-native-view-shot.

bohehe avatar bohehe commented on July 26, 2024

@gre Very happy i solved this problem using CameraRoll successfully saved pictures that i have not tested yet android but i hope it can help to someone else.
Thank you for your help.
image

excellent. solved my problem on android.

from react-native-view-shot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.