This plugin allows for a creation of a custom button near the "done" button. In order for this button to work the following conditions must be met:
- The button image MUST be an SVG
- The
ToolBarType
must be set todefault
This button will look in the following way:
Config options:
buttonNearDone | ||||||||||||||||||||||||||||
|
First, please open your app in xcode.
Then, please add an svg file into Assets.xcassets
like so:
Legend:
- The file where you need to add your icon to
- Your icon
- The
1x
size. The plugin will always use the1x
size
Later, you would use it as:
InAppBrowser.openWebView({
url: WEB_URL,
buttonNearDone: {
ios: { icon: 'monkey', iconType: 'asset' },
}
})
First, please open your app in vscode.
Then, please add an svg file into public/your_file.svg
like so:
Legend:
- The folder where you need the file into
- Your icon
Later, you would use it as:
InAppBrowser.openWebView({
url: WEB_URL,
buttonNearDone: {
android: { icon: 'public/monkey.svg', iconType: 'asset' }
}
})
If you use both platforms, you would use the following config:
InAppBrowser.openWebView({
url: WEB_URL,
buttonNearDone: {
ios: { icon: 'monkey', iconType: 'resource' },
android: { icon: 'public/monkey.svg', iconType: 'asset' }
}
})
InAppBrowser.addListener('buttonNearDoneClick', async (msg) => {
// Write your code here
await InAppBrowser.setUrl({ url: 'https://web.capgo.app/login' })
})