@ledvance/base 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.0.1",
7
+ "version": "1.0.3",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -7,6 +7,8 @@ import LdvTopName from './ldvTopName'
7
7
  interface PageProps extends PropsWithChildren<ViewProps> {
8
8
  backText: string
9
9
  onBackClick?: () => void
10
+ rightButtonIcon?: string
11
+ rightButtonIconClick?: () => void
10
12
  headlineText?: string
11
13
  headlineIcon?: string
12
14
  onHeadlineIconClick?: () => void
@@ -21,7 +23,10 @@ const Page = (props: PageProps) => {
21
23
  title={props.backText}
22
24
  onBackPress={props.onBackClick || (() => {
23
25
  navigation.goBack()
24
- })} />
26
+ })}
27
+ rightButtonIcon={props.rightButtonIcon}
28
+ onRightButtonPress={props.rightButtonIconClick}
29
+ />
25
30
  {props.headlineText &&
26
31
  <LdvTopName
27
32
  title={props.headlineText}