mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
* [INJIMOB-1204]: Renaming sharing utils file and removing state variable in QRCodeOverlay Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-1204]: Removing state variable for base64 string. Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-1204] : Error logging and renaming to imageUtils Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> * [INJIMOB-1204]: Renaming the function name Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> --------- Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>
14 lines
381 B
TypeScript
14 lines
381 B
TypeScript
import RNShare, {ShareOptions} from 'react-native-share';
|
|
|
|
export async function shareImageToAllSupportedApps(
|
|
sharingOptions: ShareOptions,
|
|
): Promise<Boolean> {
|
|
try {
|
|
const shareStatusResult = await RNShare.open(sharingOptions);
|
|
return shareStatusResult['success'];
|
|
} catch (err) {
|
|
console.error('Exception while sharing image::', err);
|
|
return false;
|
|
}
|
|
}
|