react-native-offlinebar
v1.4.3
Published
<h2>A React Native component to display offline or online status on mobile devices.</h2>
Downloads
7
Readme
react-native-offlinebar
Installation
Install the package via npm:
npm install react-native-offlinebar
Or via yarn:
yarn add react-native-offlinebar
import React from 'react';
import { View } from 'react-native';
import OfflineBar from 'react-native-offlinebar';
const App = () => {
return (
<View style={{ flex: 1 }}>
<OfflineBar bgColor="#930F1F" color="#fff" title="You must connect to Wi-Fi or a cellular network to get online again" />
{/* Your other components */}
</View>
);
};
export default App;
Modify the props as needed to customize the appearance and message of OfflineBar in your application.