mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 17:45:59 +00:00
ac12f98689
Summary:This adds a `takeSnapshot` method to UIManager that can be used to capture screenshots as an image. The takeSnapshot method accepts either 'screen', 'window' or a view ref as an argument. You can also specify the size, format and quality of the captured image. I've added an example of capturing a screenshot at UIExplorer > Snapshot / Screenshot. I've also added an example of sharing a screenshot to the UIExplorer > ActionSheetIOS demo. Reviewed By: javache Differential Revision: D2958351 fb-gh-sync-id: d2eb93fea3297ec5aaa312854dd6add724a7f4f8 shipit-source-id: d2eb93fea3297ec5aaa312854dd6add724a7f4f8
Run the website server
The first time, get all the dependencies loaded via
npm install
Then, run the server via
npm start
open http://localhost:8079/react-native/index.html
Anytime you change the contents, just refresh the page and it's going to be updated.
Publish the website
cd website
npm run publish-website