Skip to content

Commit

Permalink
Remove bootsplash
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUltDev committed Jun 16, 2024
1 parent a16a2ea commit a91f787
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 204 deletions.
3 changes: 0 additions & 3 deletions client/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,6 @@ DEPENDENCIES:
- ReactTestApp-DevSupport (from `../node_modules/react-native-test-app`)
- ReactTestApp-Resources (from `..`)
- rive-react-native (from `../node_modules/rive-react-native`)
- RNBootSplash (from `../node_modules/react-native-bootsplash`)
- "RNCCheckbox (from `../node_modules/@react-native-community/checkbox`)"
- "RNCPicker (from `../node_modules/@react-native-picker/picker`)"
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
Expand Down Expand Up @@ -1333,8 +1332,6 @@ EXTERNAL SOURCES:
:path: ".."
rive-react-native:
:path: "../node_modules/rive-react-native"
RNBootSplash:
:path: "../node_modules/react-native-bootsplash"
RNCCheckbox:
:path: "../node_modules/@react-native-community/checkbox"
RNCPicker:
Expand Down
1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"react-dom": "^18.2.0",
"react-exo": "workspace:*",
"react-exo-ui": "workspace:*",
"react-native-bootsplash": "^5.5.2",
"react-native-gesture-handler": "^2.16.0",
"react-native-get-random-values": "^1.11.0",
"react-native-linear-gradient": "^2.8.3",
Expand Down
2 changes: 0 additions & 2 deletions library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
"react": ">=18",
"react-dom": ">=18",
"react-native": ">=73",
"react-native-bootsplash": ">=5",
"react-native-gesture-handler": ">=2",
"react-native-get-random-values": ">=1",
"react-native-linear-gradient": ">=2",
Expand Down Expand Up @@ -229,7 +228,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": "^0.73.6",
"react-native-bootsplash": "^5.5.2",
"react-native-gesture-handler": "^2.16.0",
"react-native-get-random-values": "^1.11.0",
"react-native-linear-gradient": "^2.8.3",
Expand Down
6 changes: 3 additions & 3 deletions library/src/services/device/Device.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ Device. // [!code focus]
## Platform Support

:::info
For native support you must install [RN Boot Splash](https://react-native-bootsplash.github.io/react-native-bootsplash) and [RN Net Info](https://github.com/react-native-netinfo/react-native-netinfo)
For native support you must install [RN Net Info](https://github.com/react-native-netinfo/react-native-netinfo)

`npm i react-native-bootsplash @react-native-community/netinfo{:bash}`
`npm i @react-native-community/netinfo{:bash}`
:::


| Platform | Technology | Functional | Notes |
| -------- | ---------- | :--------: | :---: |
| Web | [Web API Navigator](https://developer.mozilla.org/en-US/docs/Web/API/Navigator) || - |
| Native | [react-native-bootsplash](https://react-native-bootsplash.github.io/react-native-bootsplash) <br/> [@react-native-community/netinfo](https://github.com/react-native-netinfo/react-native-netinfo) || - |
| Native | [@react-native-community/netinfo](https://github.com/react-native-netinfo/react-native-netinfo) || - |
3 changes: 0 additions & 3 deletions library/src/services/device/Device.interface.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
//import type BootSplash from 'react-native-bootsplash';

export interface DeviceBase {
//BootSplash: typeof BootSplash,
share(url: string, title: string): void,
isOnline(): Promise<boolean>,
suscribeOnline(update: (isOnline: boolean) => void): () => void,
Expand Down
3 changes: 0 additions & 3 deletions library/src/services/device/Device.native.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// import BootSplash from 'react-native-bootsplash';
import NetInfo from '@react-native-community/netinfo';
import {Share} from 'react-native';

import type {DeviceBase} from './Device.interface';

export class DeviceService implements DeviceBase {
// BootSplash = BootSplash;

share(url: string, title: string) {
Share.share({url, title, message: url}, {
dialogTitle: title,
Expand Down
Loading

0 comments on commit a91f787

Please sign in to comment.