react-native-save-view
Library for saving React Native View/ScrollView elements
Example
{ this; } { return <View ref= this_viewRef = ref collapsable=false> <Text>Some content</Text> </View> ; } async { await this; await this; } async { await RNSaveView; // Check /sdcard/Download/view.png using Device File Explorer } async { const base64 = await RNSaveView; console; }
Methods
Name | Android | iOS | Description |
---|---|---|---|
saveToPNG | ✓ | ✓ | Save View to PNG file. Before the function is called, check that android has write to file permissions |
saveToPNGBase64 | ✓ | ✓ | Save View to PNG base64 |
License
Author
Other information
- Generated with react-native-create-library
- Zero JavaScript dependency. Which means that you do not bring other dependencies to your project
- If you think that something is missing or would like to propose new feature, please, discuss it with author
- Please, feel free to ⭐️ the project. This gives the confidence that you like it and a great job was done by publishing and supporting it 🤩