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
184 stars 103 forks source link

refactor: convert to functional component #124

Open ddanielsantos opened 1 month ago

ddanielsantos commented 1 month 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