At times when you'll want to put into practice some native functionality into your app, you will have to eject from Expo and go back to React Native CLI. and you'll never ever revert it back to Expo CLI.
this post https://tayasljt631830.wikicorrespondent.com/5729815/new_step_by_step_map_for_react_native_socket_io