Skip to content

Commit e43e4b6

Browse files
authored
Merge pull request #82 from dohooo/fix/issue_77
docs: update README
2 parents 6045796 + 0c85e0f commit e43e4b6

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ import Carousel from 'react-native-reanimated-carousel';
102102
/>;
103103
```
104104

105-
## Optimizing
105+
## Tips
106106

107-
- When rendering a large number of elements, you can use the 'windowSize' property to control how many items of the current element are rendered. The default is full rendering. After testing without this property, frames will drop when rendering 200 empty views. After setting this property, rendering 1000 empty views is still smooth. (The specific number depends on the phone model tested)
107+
- Optimizing
108+
- When rendering a large number of elements, you can use the 'windowSize' property to control how many items of the current element are rendered. The default is full rendering. After testing without this property, frames will drop when rendering 200 empty views. After setting this property, rendering 1000 empty views is still smooth. (The specific number depends on the phone model tested)
109+
110+
- RTL
111+
- Support to RTL mode with no more configuration needed. But in RTL mode, need to manually set the autoPlayReverse props for autoplay to control scrolling direction.
108112

109113
## Props
110114

README.zh-CN.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ import Carousel from 'react-native-reanimated-carousel';
102102
/>;
103103
```
104104

105-
## 优化
105+
## 提示
106+
107+
- 优化
108+
- 当渲染大量元素时,可使用`windowSize`属性,来控制当前元素的两侧渲染数量,默认为全量渲染。经测试不加此属性,渲染 200 个空 view 时会出现掉帧情况,设置此属性后渲染 1000 个空 view 依旧流畅。(具体数量与测试的手机型号相关)
106109

107-
- 当渲染大量元素时,可使用`windowSize`属性,来控制当前元素的两侧渲染数量,默认为全量渲染。经测试不加此属性,渲染 200 个空 view 时会出现掉帧情况,设置此属性后渲染 1000 个空 view 依旧流畅。(具体数量与测试的手机型号相关)
110+
- RTL
111+
- 所有layout均完美支持RTL模式,并且无需再做任何配置。但在RTL模式下使用自动播放时,默认不会自动转换方向,需要结合autoPlayReverse来手动控制方向。
108112

109113
## Props
110114

0 commit comments

Comments
 (0)