Skip to content

Commit 69d99fb

Browse files
authored
docs: update readme
Signed-off-by: Daniel Olugbade <110384307+DanielOS7-TM@users.noreply.github.com>
1 parent 6aecb49 commit 69d99fb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,27 @@ You can configure up to 3 buttons as a custom module. Each button accepts a call
774774
</IgniteProvider>
775775
```
776776

777+
Single button example:
778+
779+
```typescript
780+
<IgniteProvider
781+
options={{
782+
apiKey: API_KEY,
783+
clientName: CLIENT_NAME,
784+
primaryColor: PRIMARY_COLOR
785+
}}
786+
customModules={{
787+
button1: {
788+
enabled: true,
789+
title: 'My Button 1',
790+
callback: () => console.log('Button 1 called!'),
791+
},
792+
}}
793+
>
794+
<App />
795+
</IgniteProvider>
796+
```
797+
777798
| iOS | Android|
778799
| ------ | ------ |
779800
| <img src="docs/assets/custom-modules/ios-single-button.png" width="150"> | <img src="docs/assets/custom-modules/android-single-button.png" width="150"> |

0 commit comments

Comments
 (0)