Closed kishanbharda closed 5 years ago
Hiii,
I want to create an asset of local image which is in my project directory.
Here is my directory structure :
I want to create asset of that logo.png.
However I write some code as following :
RCTCameraRollRNPhotosFrameworkManager.createAssets({ images : [require('../assets/logo.png')], album : album, includeMetadata : true }).then((result)=>{ alert(JSON.stringify(result)); }).catch((error)=>{ alert("Error in creating assets.\n"+JSON.stringify(error)); });
But that creating issue for me. I explained issue here
Please tell me how can I solve this issue.
I have solved. Here is the solution.
Hiii,
I want to create an asset of local image which is in my project directory.
Here is my directory structure :
I want to create asset of that logo.png.
However I write some code as following :
But that creating issue for me. I explained issue here
Please tell me how can I solve this issue.