Skip to content

Commit 9cd96a1

Browse files
committed
chore: tidy
1 parent a92dd96 commit 9cd96a1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ The `package.json` file contains various scripts for common tasks:
9393
- `yarn`: setup project by installing dependencies.
9494
- `yarn typecheck`: type-check files with TypeScript.
9595
- `yarn lint`: lint files with ESLint.
96+
- `yarn format`: format files with Prettier.
9697
- `yarn test`: run unit tests with Jest.
98+
- `yarn tidy`: run `typecheck`, `lint`, and `format`.
9799
- `yarn example start`: start the Metro server for the example app.
98100
- `yarn example android`: run the example app on Android.
99101
- `yarn example ios`: run the example app on iOS.

example/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2-
31
# Getting Started
42

5-
>**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
3+
>[!IMPORTANT] Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
64
75
## Step 1: Start the Metro Server
86

src/TrueSheet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class TrueSheet extends PureComponent<TrueSheetProps, TrueSheetState> {
128128

129129
render(): ReactNode {
130130
const {
131-
sizes,
131+
sizes = ['medium', 'large'],
132132
backgroundColor = 'white',
133133
dismissible = true,
134134
grabber = true,
@@ -148,7 +148,7 @@ export class TrueSheet extends PureComponent<TrueSheetProps, TrueSheetState> {
148148
ref={this.ref}
149149
style={$nativeSheet}
150150
scrollableHandle={this.state.scrollableHandle}
151-
sizes={sizes ?? ['medium', 'large']}
151+
sizes={sizes}
152152
blurTint={blurTint}
153153
cornerRadius={cornerRadius}
154154
grabber={grabber}

0 commit comments

Comments
 (0)