
Streamlines cross-platform content sharing in applications with a unified API, supporting Android and iOS with features like native performance, file sharing, and customizable options.
Universal sharing function for Compose Multiplatform.
Check out the sample project in the /sample directory for complete usage examples.
Intent system and iOS UIActivityViewController
@Composable
fun ShareButton() {
val share = rememberShare()
Button(
onClick = {
share(
data = "file:///path/to/your/file.jpg",
options = SharingOptions(
android = AndroidSharingOptions(
dialogTitle = "Share Image",
mimeType = "image/jpeg"
),
ios = IosSharingOptions(
anchor = Anchor(x = 100f, y = 100f, width = 200f, height = 50f)
)
)
)
}
) {
Text("Share")
}
}For installation instructions visit our dedicated document.
Check out our dedicated documentation page for the API reference.
We welcome contributions! Please feel free to submit a pull request.
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product β Hire us.
Made by @software-mansion and
community π
Universal sharing function for Compose Multiplatform.
Check out the sample project in the /sample directory for complete usage examples.
Intent system and iOS UIActivityViewController
@Composable
fun ShareButton() {
val share = rememberShare()
Button(
onClick = {
share(
data = "file:///path/to/your/file.jpg",
options = SharingOptions(
android = AndroidSharingOptions(
dialogTitle = "Share Image",
mimeType = "image/jpeg"
),
ios = IosSharingOptions(
anchor = Anchor(x = 100f, y = 100f, width = 200f, height = 50f)
)
)
)
}
) {
Text("Share")
}
}For installation instructions visit our dedicated document.
Check out our dedicated documentation page for the API reference.
We welcome contributions! Please feel free to submit a pull request.
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product β Hire us.
Made by @software-mansion and
community π