react-native-offline-mode
react-native-offline-mode copied to clipboard
Style of no connection page
Hi, is there a way to change it so that when it loses connection only a small message appears at the bottom (like facebook/messenger) loses connection, rather than a full blank page?
This library switches between 2 components - one when the app is connected and the second when the app is offline. While you could potentially just show a blank View when online and a styled message at the bottom when offline, you'll probably be better off with implementing this with NetInfo yourself.
@MeganGilligan1 you could try using this component for that ismdcf/react-native-internet-status-view if interested contribute to it (PR's are welcomed)
@MeganGilligan1, @rauchy I think we should implement a default style that will be a bit more fancy than the one we have now (i.e. show load indicator or something else); but then the user/developer should be able to customise accordingly, like passing his own UI component.
What do you think?
@marudy that's a great idea! In the end we ended up using the suggestion from @ismdcf as we didn't want the whole screen to be hidden.