hungdev / react-native-instagram-login

a react native instagram login component (support android & ios). Pull requests are welcome!
https://www.npmjs.com/package/react-native-instagram-login
187 stars 105 forks source link

refactor: convert to functional component #124

Open ddanielsantos opened 2 months ago

ddanielsantos commented 2 months ago

Most react code written today uses functional components and hooks, with this PR, the main class component (Instagram) is converted to its equivalent functional component.

It does not lead to changes in behavior or improvements in performance, but it brings the code closer to the present day and will facilitate future maintenance by other people.

renderClose and renderWebview are still inner functions of the main component