Skip to content

Commit

Permalink
IOS-9159 Update readme highlight tab (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhidalgofadrique authored Aug 3, 2023
1 parent 6734b65 commit 1a98785
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,34 @@ updatePhoneNumbers:(Array<{
}>) => Promise<Void>;
```
### highlightNavigationTab
Method that allows WebView to highlight a home tab bar setting a badge (numeric
or not)
```typescript
highlightNavigationTab: ({
tab: string,
highlight: boolean,
count?: number
}) => Promise<void>;
```
If `highlight` is `false` no badge is shown
If `highlight` is `true`:
- If `count` is not null, it will show a numberic badge with `count`value
- If `count` is null, it will show a non-numeric badge
#### Example
```javascript
import {highlightNavigationTab} from '@tef-novum/webview-bridge';

highlightNavigationTab({tab: 'explore', highlight: true, count: 4});
```
## getAttStatus
Method that allows a WebView to ask an iOS app user about the authorization
Expand Down

0 comments on commit 1a98785

Please sign in to comment.