Skip to content

Commit 45a9817

Browse files
authored
Update RichTextToolbar.js
there is no componentDidReceiveProps lifecycle method
1 parent 478b9c4 commit 45a9817

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RichTextToolbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class RichTextToolbar extends Component {
5050
};
5151
}
5252

53-
componentDidReceiveProps(newProps) {
53+
componentWillReceiveProps(newProps) {
5454
const actions = newProps.actions ? newProps.actions : defaultActions;
5555
this.setState({
5656
actions,
@@ -189,4 +189,4 @@ const styles = StyleSheet.create({
189189
backgroundColor: 'red'
190190
},
191191
defaultUnselectedButton: {}
192-
});
192+
});

0 commit comments

Comments
 (0)