Skip to content

Commit

Permalink
Registration of AppInbox before button creation
Browse files Browse the repository at this point in the history
  • Loading branch information
adam1929 committed Jun 7, 2023
1 parent 7635a9b commit f762d3a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 34 deletions.
33 changes: 33 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,39 @@ export default class App extends React.Component<{}, AppState> {
projectToken: projectToken,
publicKey: advancedAuthKey,
});
Exponea.setAppInboxProvider({
appInboxButton: {
textSize: '16sp',
textWeight: 'bold',
},
detailView: {
title: {
textColor: '#262626',
textSize: '20sp',
},
content: {
textColor: '#262626',
textSize: '16sp',
},
button: {
textSize: '16sp',
textColor: '#262626',
backgroundColor: '#ffd500',
borderRadius: '10dp',
},
},
listView: {
list: {
backgroundColor: 'white',
item: {
content: {
textSize: '16sp',
textColor: '#262626',
},
},
},
},
});
Exponea.configure({
projectToken: projectToken,
authorizationToken: authorization,
Expand Down
34 changes: 0 additions & 34 deletions example/src/screens/TrackingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,40 +27,6 @@ export default class TrackingScreen extends React.Component<{}, AppState> {
};

componentDidMount(): void {
Exponea.setAppInboxProvider({
appInboxButton: {
textSize: '16sp',
textWeight: 'bold',
backgroundColor: 'red',
},
detailView: {
title: {
textColor: '#262626',
textSize: '20sp',
},
content: {
textColor: '#262626',
textSize: '16sp',
},
button: {
textSize: '16sp',
textColor: '#262626',
backgroundColor: '#ffd500',
borderRadius: '10dp',
},
},
listView: {
list: {
backgroundColor: 'white',
item: {
content: {
textSize: '16sp',
textColor: '#262626',
},
},
},
},
});
Exponea.getCustomerCookie()
.then((cookie) => this.setState({customerCookie: cookie}))
.catch((error) => {
Expand Down

0 comments on commit f762d3a

Please sign in to comment.