LucasBassetti / react-native-chatbot

:speech_balloon: Easy way to create conversation chats
https://github.com/LucasBassetti/react-simple-chatbot
MIT License
248 stars 116 forks source link

Move code from componentWillMount to class' constructor #62

Closed Nilomiranda closed 4 years ago

Nilomiranda commented 4 years ago

Description

File ChatBot.js still uses componentWillMount() to run some of its logic.

But this lifecycle method is not recommended to be used anymore.

From what I looked into the code, there are no side effects running inside willMount() but wouldn't it be interesting to update the code, so we wouldn't face any warning when developing an app?

Screenshots

react-native-chatbot issue

Nilomiranda commented 4 years ago

Closing because this can be solved by merging Pull Request #50