Skip to content

Commit fa3aae4

Browse files
committed
Fixed styling
Added native driver support to flash animation
1 parent 06a5612 commit fa3aae4

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Inherits all valid [FlatList props](https://facebook.github.io/react-native/docs
5252

5353

5454
# Todo (PRs welcome!)
55-
- [ ] Add native driver support
55+
- [x] Add native driver support
56+
- [ ] Implement with [react-native-interactable](https://github.com/wix/react-native-interactable) for better performance
5657
- [ ] Rewrite with TypeScript
5758
- [ ] Add support for FlatList ref

src/QuickScrollList.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,22 +160,17 @@ const styles = {
160160
scrollBar: {
161161
position: 'absolute',
162162
width: 10,
163-
backgroundColor: 'transparent'
163+
backgroundColor: 'transparent',
164+
alignItems: 'center'
164165
},
165166
touchArea: {
166-
position: 'absolute',
167-
backgroundColor: 'transparent'
167+
backgroundColor: 'black',
168+
alignItems: 'center'
168169
},
169170
thumb: {
170-
position: 'absolute',
171-
width: 7,
171+
width: 6,
172172
borderRadius: 4,
173-
backgroundColor: 'white',
174-
borderWidth: 0.2,
175-
borderColor: 'black',
173+
backgroundColor: '#4C4C4C',
176174
elevation: 2
177175
}
178176
};
179-
180-
// event.nativeEvent.pageY; //distance of TOUCH from the top of the screen
181-
// this.position.__getValue().y; //distance of thumb from the top of the screen

0 commit comments

Comments
 (0)