Skip to content

Commit

Permalink
add faq about expo-sharing results (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeubank authored Mar 24, 2023
1 parent f4f46ac commit 93a64ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,15 @@ A prop may be necessary to properly capture GL Surface View in the view tree:
handleGLSurfaceViewOnAndroid?: boolean;
```
### Trying to share the capture result with `expo-sharing`?

`tmpfile` or the default capture result works best for this. Just be sure to prepend `file://` to result before you call `shareAsync`.

```js
captureRef(viewRef)
.then((uri) => Sharing.shareAsync(`file://${uri}`, options)
```
---
## Thanks
Expand Down

0 comments on commit 93a64ee

Please sign in to comment.