1.0.2 • Published 3 years ago

react-native-svg-url v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

react-native-svg-url

npm version CircleCI js-standard-style Dependency Status devDependencies Status typings included npm

Yet another react-native package

Status

  • iOS & Android:
    • ???
  • react-native:
    • supported versions ">= 0.62.2"

Installation

0. Setup Swift and Kotlin

  • Open your iOS project in Xcode and create empty Swift file and bridging header to enable Swift support
  • Modify android/build.gradle:

    buildscript {
      ext {
        ...
    +   kotlinVersion = "1.3.72"
      }
    ...
    
      dependencies {
    +   classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
        ...

1. Install latest version from npm

$ npm i react-native-svg-url -S

2. Install pods

$ cd ios && pod install && cd ..

Demo

AndroidiOS
??????

Example

import * as React from 'react'
import { View } from 'react-native'
import {
  SvgUrl
} from 'react-native-svg-url'

Reference