repodio / react-native-scrubber Goto Github PK
View Code? Open in Web Editor NEWA video/audio scrubber for react native.
License: MIT License
A video/audio scrubber for react native.
License: MIT License
After onSlideComplete i see the scrubber for short time on the position before i started the slide.
it took me long time to find workaround but it still happens sometimes.
I used url and not local file.
An onSlidingStart function supplied as a prop is only called, if the onSlide prop is also present.
As a substitute I was able to supply an empty function for onSlide, and onSlidingStart is executed as it should.
Please add a LICENSE file so I know whether it can be used in commercial projects. For instance MIT is a popular permissive license. Here's an example: https://github.com/nick-michael/react-scrubber/blob/master/LICENSE
When interacting with the scrubber, the Animated library in react-native will throw a warning:
Animated:
useNativeDriver
was not specified. This is a required option and must be explicitly set totrue
orfalse
Although not stated in the documentation of Animated, apparently the config of Animated.timing
is also required to specify a value for useNativeDriver
.
Found in version [email protected].
Users might want to tap on a location to navigate there. Most media controls support this feature. Any plan to add this?
I'd like to implement this and make a PR, how should we do this? I'm thinking of using TouchableWithoutFeedback
with an onPress
handler for track container.
Hi,
tapNavigation feature seems not working on IOS. The event from TapGestureHandler component doesn't fire, maybe due to elements which override the background track.
After making some tests, wrapping TapGestureHandler around trackContainer View seems to fix the issue. We can nest multiple gesture handler so it'll not affect the PanGestureHandler one. Like this:
<TapGestureHandler
onHandlerStateChange={this.onTap}
maxDurationMs={2000}
hitSlop={{ top: 20, bottom: 20, left: 0, right: 0 }}
>
<View style={styles.trackContainer} onLayout={this.onLayoutContainer}>
What do you think ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.