react-native-svg

SVG library for React Native, React Native Web, and plain React web projects. [Moved to: https://github.com/react-native-svg/react-native-svg] (by react-native-community)

React-native-svg Alternatives

Similar projects and alternatives to react-native-svg

  • progressbar.js

    Responsive and slick progress bars

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better react-native-svg alternative or higher similarity.

react-native-svg reviews and mentions

Posts with mentions or reviews of react-native-svg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-27.
  • Animating react-native-svg dash length of a <Circle />
    2 projects | /r/codehunter | 27 Apr 2022
    import React, { Component } from "react";import PropTypes from "prop-types";import styled from "styled-components/native";import { Animated } from "react-native";import { Svg } from "expo";import { colour, dimension, animation } from "../Styles";const { Circle, Defs, LinearGradient, Stop } = Svg;const SSvg = styled(Svg)` transform: rotate(90deg); margin-left: ${dimension.ExperienceCircleMarginLeft}; margin-top: ${dimension.ExperienceCircleMarginTop};`;class ExperienceCircle extends Component { // -- prop validation ----------------------------------------------------- // static propTypes = { nextExp: PropTypes.number.isRequired, currentExp: PropTypes.number.isRequired }; // -- state --------------------------------------------------------------- // state = { percentage: new Animated.Value(0) }; // -- methods ------------------------------------------------------------- // componentDidMount() { this.state.percentage.addListener(percentage => { const circumference = dimension.ExperienceCircleRadius * 2 * Math.PI; const dashLength = percentage.value * circumference; this.circle.setNativeProps({ strokeDasharray: [dashLength, circumference] }); }); this._onAnimateExp(this.props.nextExp, this.props.currentExp); } componentWillReceiveProps({ nextExp, currentExp }) { this._onAnimateExp(currentExp, nextExp); } _onAnimateExp = (currentExp, nextExp) => { const percentage = currentExp / nextExp; Animated.timing(this.state.percentage, { toValue: percentage, duration: animation.duration.long, easing: animation.easeOut }).start(); }; // -- render -------------------------------------------------------------- // render() { const { ...props } = this.props; // const circumference = dimension.ExperienceCircleRadius * 2 * Math.PI; // const dashLength = this.state.percentage * circumference; return ( (this.circle = x)} cx={dimension.ExperienceCircleWidthHeight / 2} cy={dimension.ExperienceCircleWidthHeight / 2} r={dimension.ExperienceCircleRadius} stroke="url(#ExperienceCircle-gradient)" strokeWidth={dimension.ExperienceCircleThickness} fill="transparent" strokeDasharray={[0, 0]} strokeLinecap="round" /> ); }}export default ExperienceCircle; UPDATE: Extended discussion and more examples (similar approach working for different elements) available via issue posted to react-native-svg repo: https://github.com/react-native-community/react-native-svg/issues/451
  • Touchable opacity on press not working inside SVG tags
    1 project | /r/codehunter | 13 Apr 2022
    { console.log('DSDA') }} >Click me!! https://github.com/react-native-community/react-native-svg/issues/1050

Stats

Basic react-native-svg repo stats
2
5,983
7.7
about 2 years ago

react-native-community/react-native-svg is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of react-native-svg is Java.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com