Skip to content

Commit 565bd83

Browse files
committed
feat: I'm coming back
1 parent dccda1a commit 565bd83

File tree

3 files changed

+50
-64
lines changed

3 files changed

+50
-64
lines changed
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: AUTO-COMMENTS
2-
on:
3-
issues:
4-
types:
5-
- opened
1+
# name: AUTO-COMMENTS
2+
# on:
3+
# issues:
4+
# types:
5+
# - opened
66

7-
jobs:
8-
testCreate:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Create comment
12-
uses: peter-evans/create-or-update-comment@v2
13-
with:
14-
issue-number: 1
15-
body: |
16-
<hr/>
17-
<p align="center">🔴</p>
18-
<p align="center">👨‍💻 I'm so busy recently, so I'm going away for a little while, but I'll come back by the end of this month.</p>
19-
<p align="center">♥️ Rest assured, I love this project, I will not give up.</p>
20-
<p align="right">2022.11.xx</p>
21-
<hr/>
7+
# jobs:
8+
# testCreate:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - name: Create comment
12+
# uses: peter-evans/create-or-update-comment@v2
13+
# with:
14+
# issue-number: 1
15+
# body: |
16+
# <hr/>
17+
# <p align="center">🔴</p>
18+
# <p align="center">👨‍💻 I'm so busy recently, so I'm going away for a little while, but I'll come back by the end of this month.</p>
19+
# <p align="center">♥️ Rest assured, I love this project, I will not give up.</p>
20+
# <p align="right">2022.11.xx</p>
21+
# <hr/>

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<hr/>
2-
<p align="center">🔴</p>
3-
<p align="center">👨‍💻 I'm so busy recently, so I'm going away for a little while, but I'll come back by the end of this month.</p>
4-
<p align="center">♥️ Rest assured, I love this project, I will not give up.</p>
5-
<p align="right">2022.11.4</p>
6-
<hr/>
7-
81
English | [简体中文](./README.zh-CN.md)
92

103
# react-native-reanimated-carousel

README.zh-CN.md

Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<hr/>
2-
<p align="center">🔴</p>
3-
<p align="center">👨‍💻 最近我太忙了,所以我会离开一段时间,但我会在这个月底回来。</p>
4-
<p align="center">♥️ 放心,我爱这个项目,我不会放弃的。</p>
5-
<p align="right">2022.11.4</p>
6-
<hr/>
7-
81
[English](./README.md) | 简体中文
92

103
# react-native-reanimated-carousel
@@ -91,38 +84,38 @@ npm install react-native-reanimated-carousel
9184
## 使用
9285

9386
```tsx
94-
import * as React from 'react';
95-
import { Dimensions, Text, View } from 'react-native';
96-
import Carousel from 'react-native-reanimated-carousel';
87+
import * as React from "react";
88+
import { Dimensions, Text, View } from "react-native";
89+
import Carousel from "react-native-reanimated-carousel";
9790

9891
function Index() {
99-
const width = Dimensions.get('window').width;
100-
return (
101-
<View style={{ flex: 1 }}>
102-
<Carousel
103-
loop
104-
width={width}
105-
height={width / 2}
106-
autoPlay={true}
107-
data={[...new Array(6).keys()]}
108-
scrollAnimationDuration={1000}
109-
onSnapToItem={(index) => console.log('current index:', index)}
110-
renderItem={({ index }) => (
111-
<View
112-
style={{
113-
flex: 1,
114-
borderWidth: 1,
115-
justifyContent: 'center',
116-
}}
117-
>
118-
<Text style={{ textAlign: 'center', fontSize: 30 }}>
119-
{index}
120-
</Text>
121-
</View>
122-
)}
123-
/>
124-
</View>
125-
);
92+
const width = Dimensions.get("window").width;
93+
return (
94+
<View style={{ flex: 1 }}>
95+
<Carousel
96+
loop
97+
width={width}
98+
height={width / 2}
99+
autoPlay={true}
100+
data={[...new Array(6).keys()]}
101+
scrollAnimationDuration={1000}
102+
onSnapToItem={index => console.log("current index:", index)}
103+
renderItem={({ index }) => (
104+
<View
105+
style={{
106+
flex: 1,
107+
borderWidth: 1,
108+
justifyContent: "center",
109+
}}
110+
>
111+
<Text style={{ textAlign: "center", fontSize: 30 }}>
112+
{index}
113+
</Text>
114+
</View>
115+
)}
116+
/>
117+
</View>
118+
);
126119
}
127120

128121
export default Index;

0 commit comments

Comments
 (0)