Mikael Sand
|
e98b0fe1d1
|
Merge branch 'master' into NativeAnimation
# Conflicts:
# android/src/main/java/com/horcrux/svg/RenderableShadowNode.java
# android/src/main/java/com/horcrux/svg/SvgViewShadowNode.java
# elements/Image.js
# elements/Rect.js
# elements/Use.js
# lib/attributes.js
|
2018-08-19 15:48:40 +03:00 |
|
Maksym Komarychev
|
4fc6f4fd87
|
[ios] fire onLayout
|
2018-06-09 00:20:27 +03:00 |
|
Mikael Sand
|
fbd6591251
|
Experiment to allow animating fillOpacity of Rect using native driver.
import React, { Component } from 'react';
import { StyleSheet, View, Dimensions, Animated } from 'react-native';
import { Svg, Rect } from 'react-native-svg';
const { width, height } = Dimensions.get('window');
const AnimatedRect = Animated.createAnimatedComponent(Rect);
export default class App extends Component {
state = {
anim: new Animated.Value(0),
};
componentDidMount() {
Animated.timing(this.state.anim, {
toValue: 1,
duration: 3000,
useNativeDriver: true,
}).start();
}
render() {
const { anim } = this.state;
return (
<View style={styles.container}>
<Svg width={width} height={height} viewBox="0 0 100 100">
<AnimatedRect
x="5"
y="5"
width="90"
height="90"
fill="green"
fillOpacity={anim}
/>
</Svg>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: '#ecf0f1',
},
});
|
2018-02-24 23:45:42 +02:00 |
|
Horcrux
|
152e839126
|
Remove path data usage in clipPath
Remove path data usage in clipPath.
Use clipPath in SVG way
|
2017-01-07 23:17:10 +08:00 |
|
Horcrux
|
92ea884d6f
|
native prop trans => matrix
|
2016-07-27 15:54:45 +08:00 |
|
Horcrux
|
a2598a5591
|
native prop tranform => trans,fix defs typo
|
2016-07-25 11:15:39 +08:00 |
|
Horcrux
|
5ee5c2239a
|
fix memory leak issue with CGMutablePathRef
|
2016-07-21 18:22:23 +08:00 |
|
Horcrux
|
dd6cb80e84
|
refactor Use and Defs element with native code support(iOS)
|
2016-07-19 23:09:51 +08:00 |
|
Horcrux
|
d610729208
|
clipPathId => clipPathRef
|
2016-07-19 09:34:27 +08:00 |
|
Horcrux
|
1f21660a88
|
touchable => responsible
|
2016-06-11 09:38:20 +08:00 |
|
Horcrux
|
f34c0c209a
|
run hitTest only if necessary
|
2016-05-18 20:15:29 +08:00 |
|
Horcrux
|
5c0aa77390
|
fix touch system on iOS
subViews in G will run hitTest now.
fix hitTest while using clipPath
|
2016-05-18 18:30:51 +08:00 |
|
Horcrux
|
8d01e8eccb
|
refactor shape elements add responder system.
refactor shape elements add responder system.
Just iOS.
|
2016-05-15 00:40:43 +08:00 |
|
Horcrux
|
fa751e31b0
|
complete ClipPath element on iOS
|
2016-04-27 23:14:15 +08:00 |
|
Horcrux
|
c8aaa1eb12
|
change copy right and add clip for ios
|
2016-04-21 15:42:30 +08:00 |
|
Horcrux
|
d700ca5493
|
refactor all components and isolated from ART dependency
|
2016-04-20 00:52:59 +08:00 |
|