Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

RNGRP returns null #22

Open
ambessh opened this issue Jul 16, 2020 · 1 comment
Open

RNGRP returns null #22

ambessh opened this issue Jul 16, 2020 · 1 comment

Comments

@ambessh
Copy link

ambessh commented Jul 16, 2020

// im selecting a video using react-native-image-picker

ImagePicker.showImagePicker(options, response => {

            RNGRP.getRealPathFromURI(response.uri).then(path=>{
              console.log(path);  //returns null
            })
});
@demchenkoalex
Copy link

Hi, I actually had the same problem and also found this library, which also didn't work for me, so I wrote my own. I have tested the code you provided and got a correct absolute path. Hope that helps https://github.com/flyerhq/react-native-android-uri-path

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

No branches or pull requests

2 participants