Skip to content

Commit 26dfff6

Browse files
VitaliiK91robcalcroft
authored andcommitted
rename passProps to additionalProps
pass as additionalProps instead of spread
1 parent 4ab77e3 commit 26dfff6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Notification.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ class Notification extends Component {
2929
}
3030

3131
show(
32-
{ title, message, onPress, icon, vibrate, passProps } = {
32+
{ title, message, onPress, icon, vibrate, additionalProps } = {
3333
title: '',
3434
message: '',
3535
onPress: null,
3636
icon: null,
3737
vibrate: true,
38-
passProps: {},
38+
additionalProps: {},
3939
},
4040
) {
4141
const { closeInterval } = this.props;
@@ -54,7 +54,7 @@ class Notification extends Component {
5454
onPress,
5555
icon,
5656
vibrate,
57-
passProps,
57+
additionalProps,
5858
},
5959
() => this.showNotification(() => {
6060
this.currentNotificationInterval = setTimeout(() => {
@@ -66,7 +66,7 @@ class Notification extends Component {
6666
onPress: null,
6767
icon: null,
6868
vibrate: true,
69-
passProps,
69+
additionalProps,
7070
},
7171
this.closeNotification,
7272
);
@@ -137,7 +137,7 @@ class Notification extends Component {
137137
icon={icon}
138138
vibrate={vibrate}
139139
onClose={() => this.setState({ isOpen: false }, this.closeNotification)}
140-
{...this.state.passProps}
140+
additionalProps={this.state.additionalProps}
141141
/>
142142
</Animated.View>
143143
);

0 commit comments

Comments
 (0)