Search code examples
react-nativereact-native-iospdftron

PDFTron Custom UI -- crops , undo and redo


Is it possible to customise the ui of crops, undo and redo buttons without touching the java and swift code. this is the default crops button this is the default undo , redo button what im looking for is to create my own buttons and call thoses functions perspectation I tried setToolMode, but it works only with tools. Any suggestions ?

React-native


Solution

  • All three APIs can be found in the React-Native project now:

    Undo: https://github.com/PDFTron/pdftron-react-native/blob/master/API.md#undo

    Redo: https://github.com/PDFTron/pdftron-react-native/blob/master/API.md#redo

    ShowCrop: https://github.com/PDFTron/pdftron-react-native/blob/master/API.md#showcrop