-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while using FlatUIImplementationProvider. #395
Comments
confirm this still happens in react-native 0.47.0 with FlatUIImplementationProvider. |
@chunghe still reproducible for |
any progress on this? |
Can we get an update? is that is on the roadmap of this project maintainers? |
hm, some progress? |
Is this still an issue with the latest version? class CheckIcon extends PureComponent {
static defaultProps = {
color: "#ffffff",
thickness: 2,
};
render() {
return (
<Svg
width={this.props.width}
height={this.props.height}
viewBox="0 1 45 33">
<Path
stroke={this.props.color}
strokeWidth={this.props.thickness}
strokeLinecap="round"
fill="none"
d="M3 19.3995271L14.775 30.475 42.25 3" />
</Svg>
);
}
}
class Screen extends Component {
render () {
return (
<View style={[styles.summary]}>
<View style={[styles.body]}>
<View style={[styles.status, {left: STATUS_ICON_SIZE / 2}]}>
<CheckIcon width={24} height={18} thickness={6} />
</View>
</View>
</View>
);
}
}
const STATUS_ICON_SIZE = 50;
export default class App extends Component {
render() {
return (
<Screen />
);
}
}
const styles = StyleSheet.create({
summary: {
flex: 1,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#515fa7',
},
body: {
position: 'relative',
},
status: {
position: 'absolute',
top: -60,
backgroundColor: '#00b670',
height: STATUS_ICON_SIZE,
width: STATUS_ICON_SIZE,
borderRadius: STATUS_ICON_SIZE / 2,
justifyContent: 'center',
alignItems: 'center',
},
}); |
Problem
When FlatUIImplementationProvider is enabled as a default UIImplementationProvider usage of
Svg
component leads to crash on Android platform:Red screen dissolves only when I delete usage of component with
Svg
withPath
instance inside from screen layout. Rendering only<Svg />
without children seems OK.Some extra data:
Versions:
Component example
Usage example
Possibly the problem related to facebook/react-native#12770 issue, but I'm not sure about that
The text was updated successfully, but these errors were encountered: