rn-share-url
v0.1.1
Published
rn-share-url help u to share url with the react native application
Downloads
10
Maintainers
Readme
rn-share-url
rn-share-url is a React Native TurboModule that allows you to share a URL using the native iOS and Android share dialogs.
Installation
npm install rn-share-urlor
yarn add rn-share-urlNote: This module uses TurboModules, so make sure your app is configured for the new architecture.
Usage
import ShareUrl from 'rn-share-url';
// Share a URL
ShareUrl.shareUrl('https://example.com');Example
You can trigger sharing like this:
import { Button } from 'react-native';
import ShareUrl from 'rn-share-url';
export default function App() {
return (
<Button
title="Share Link"
onPress={() => ShareUrl.shareUrl('https://yourdomain.com')}
/>
);
}
Development
This library was bootstrapped with create-react-native-library.
To contribute, see the contributing guide.
License
MIT
