Skip to content

Commit 9dcad4d

Browse files
committed
chore: update deps
1 parent 8c710c0 commit 9dcad4d

File tree

14 files changed

+8731
-11873
lines changed

14 files changed

+8731
-11873
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ jobs:
2323
- name: Typecheck files
2424
run: yarn typecheck
2525

26-
test:
27-
runs-on: ubuntu-latest
28-
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v3
31-
32-
- name: Setup
33-
uses: ./.github/actions/setup
34-
35-
- name: Run unit tests
36-
run: yarn test --maxWorkers=2 --coverage
37-
3826
build:
3927
runs-on: ubuntu-latest
4028
steps:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.18.1
1+
>=v18

README.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,25 @@
1313

1414
```sh
1515
yarn add react-native-spacer-view
16-
cd ios && pod install
1716
```
1817

1918
#### Note
20-
This component depends on safe area insets provided by [react-native-safe-area-context](https://github.com/th3rdwave/react-native-safe-area-context). If you don't have this library installed, you'll need to add it and [wrap the root of your app in SafeAreaProvider](https://github.com/th3rdwave/react-native-safe-area-context#providers).
2119

22-
If you already have react-native-safe-area-context in your project, you may need to update the version to match what's used in this library. Otherwise you'll get a `Tried to register two views to RNCSafeAreaView` error.
20+
This component depends on safe area insets provided by [react-native-safe-area-context](https://github.com/th3rdwave/react-native-safe-area-context). If you don't have this library installed, you'll need to add it and [wrap the root of your app in SafeAreaProvider](https://github.com/th3rdwave/react-native-safe-area-context#providers).
2321

2422
## API
25-
Extends [ViewProps](https://reactnative.dev/docs/view#props). Note that view props are applied *last*, so they will take precendence over Spacer's props. For example, if you pass `flex={2}` and `style={{ flex: 5 }}`, the `flex: 5` will win out.
2623

27-
*All props are optional.*
24+
Extends [ViewProps](https://reactnative.dev/docs/view#props). Note that view props are applied _last_, so they will take precendence over Spacer's props. For example, if you pass `flex={2}` and `style={{ flex: 5 }}`, the `flex: 5` will win out.
2825

29-
| Prop | Type | Description |
30-
| --- | --- | --- |
31-
| height | `number` | Adds to total `height` of Spacer. |
32-
| width | `number` | Adds to total `width` of Spacer. |
33-
| safeTop | `boolean` | Adds the device's top safe area inset to the total height of Spacer. |
34-
| safeBottom | `boolean` | Adds the device's bottom safe area inset to the total height of Spacer. |
35-
| flex | `true` or `number` | Passing `true` gives Spacer `flex: 1`, passing a number gives Spacer `flex: [number]`. |
26+
_All props are optional._
27+
28+
| Prop | Type | Description |
29+
| ---------- | ------------------ | -------------------------------------------------------------------------------------- |
30+
| height | `number` | Adds to total `height` of Spacer. |
31+
| width | `number` | Adds to total `width` of Spacer. |
32+
| safeTop | `boolean` | Adds the device's top safe area inset to the total height of Spacer. |
33+
| safeBottom | `boolean` | Adds the device's bottom safe area inset to the total height of Spacer. |
34+
| flex | `true` or `number` | Passing `true` gives Spacer `flex: 1`, passing a number gives Spacer `flex: [number]`. |
3635

3736
## Usage
3837

@@ -52,18 +51,22 @@ export function MyNeatScreen() {
5251
<Footer />
5352
<Spacer safeBottom height={24} />
5453
</ScrollView>
55-
)
54+
);
5655
}
5756
```
5857

5958
## Example App
59+
6060
You can run an [example](example/src/App.tsx) implementation of how you might use `Spacer` in a `FlatList` by cloning this repo and running the following commands:
61+
6162
```sh
6263
cd example
6364
yarn
6465
yarn ios (or yarn android)
6566
```
67+
6668
## License
69+
6770
MIT
6871

6972
---

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/babel.config.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

example/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12-
"expo": "~47.0.12",
13-
"expo-status-bar": "~1.4.2",
14-
"react": "18.1.0",
15-
"react-dom": "18.1.0",
16-
"react-native": "0.70.5",
17-
"react-native-safe-area-context": "^4.5.0",
18-
"react-native-web": "~0.18.9"
12+
"@types/react-native": "~0.73.0",
13+
"expo": "~52.0.26",
14+
"expo-status-bar": "~2.0.1",
15+
"react": "19.0.0",
16+
"react-dom": "19.0.0",
17+
"react-native": "0.76.6",
18+
"react-native-safe-area-context": "^5.1.0",
19+
"react-native-web": "~0.19.13"
1920
},
2021
"devDependencies": {
21-
"@babel/core": "^7.12.9",
22-
"@expo/webpack-config": "^0.17.2",
23-
"babel-loader": "^8.1.0",
24-
"babel-plugin-module-resolver": "^4.1.0"
22+
"@babel/core": "^7.26.0",
23+
"@expo/webpack-config": "^19.0.1",
24+
"babel-loader": "^9.2.1",
25+
"babel-plugin-module-resolver": "^5.0.2"
2526
},
2627
"private": true
2728
}

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import {
44
FlatList,
55
ImageBackground,
6-
ListRenderItemInfo,
6+
type ListRenderItemInfo,
77
StyleSheet,
88
Text,
99
} from 'react-native';

0 commit comments

Comments
 (0)