Skip to content

Commit 187e300

Browse files
authored
chore: Fix precommit hooks, add CI actions (#166)
1 parent 7bb8381 commit 187e300

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Node.js CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [8.x, 10.x, 12.x]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: yarn
21+
- run: yarn lint
22+
- run: yarn typescript
23+
env:
24+
CI: true

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
664664
nativeEvent: {
665665
layout: { height },
666666
},
667-
}: LayoutChangeEvent) => requestAnimationFrame(() => this.height.setValue(height))
667+
}: LayoutChangeEvent) =>
668+
requestAnimationFrame(() => this.height.setValue(height))
668669

669670
private handleLayoutContent = ({
670671
nativeEvent: {

0 commit comments

Comments
 (0)