NPM Package - A react native component that let you to add a wavy background UI.

Overview

react-native-wavy-background

A react native component that let you to add a wavy background UI.

Installation

npm install react-native-wavy-background

Props:

Name Default Required Description
width null yes width of the wave.
height null yes height of the wave.
frequency null yes number of waves in the given length.
amplitude null yes distance from rest to crest.
offset null yes height of two wave shapes.
color 'black' no Color inside the wave shape.
bottom 'false' no If the wave need to be in bottom.

Example

screens

Usage

import WavyBackground from "react-native-wavy-background";

// ...

<WavyBackground
    height={300}
    width={1100}
    amplitude={25}
    frequency={1}
    offset={150}
    color="#1F618D"
/>
import WavyBackground from "react-native-wavy-background";

// ...

<View
    style={{
        position: 'absolute',
        bottom: 0,
        left: 0,
        right: 0,
    }}>
        <WavyBackground
          height={300}
          width={1100}
          amplitude={25}
          frequency={1}
          offset={150}
          color="#1F618D"
          bottom
        />
</View>

REACT NATIVE SVG LINKING | To Fix -

Invariant Violation: requireNativeComponent: "RNSVGPath" was not found in the UIManager

Android pre RN 0.60
  1. yarn add react-native-svg In RN 0.60+, this is all you should ever need to do get Android working. Before this, react-native link was responsible for the following steps:

  2. Append the following lines to android/settings.gradle:

    include ':react-native-svg'
    project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
  3. Insert the following lines inside the dependencies block in android/app/build.gradle:

    implementation project(':react-native-svg')
  4. Open up android/app/src/main/java/[...]/MainApplication.java

  • Add import com.horcrux.svg.SvgPackage; to the imports at the top of the file
  • Add new SvgPackage() to the list returned by the getPackages() method. Add a comma to the previous item if there's already something there.
iOS pre RN 0.60

Manual linking

To install react-native-svg on iOS visit the link referenced above or do the following (react-native link should do this for you):

  1. Open your project in XCode and drag the RNSVG.xcodeproj file (located in .../node_modules/react-native-svg/ios) into the Libraries directory shown in XCode.
  2. Expand the RNSVG.xcodeproj file you just added to XCode until you see: libRNSVG.a (located in RNSVG.xcodeproj > Products )
  3. Drag libRNSVG.a into the Link Binary With Libraries section (located in Build Phases which may be found at the top of the XCode window)
CocoaPods

Alternatively, you can use CocoaPods to manage your native (Objective-C and Swift) dependencies:

  1. Add RNSVG to your Podfile (with RN 0.60+ autolinking, this is not needed)
pod 'RNSVG', :path => '../node_modules/react-native-svg'

If cocoapods is used and if error RNSVGImage.m:12:9: 'React/RCTImageLoader.h' file not found occurs:

Add the following entry in Podfile:

    pod 'React', :path => '../node_modules/react-native', :subspecs => [
        [...]
        'RCTImage', # <-- Add RCTImage
    ]

and run pod install from ios folder

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

You might also like...

Projeto final curso Let's Code Web Full Stack

Projeto final curso Let's Code Web Full Stack

E-Commerce Description Microservices-based backend application to manage an e-commerce. Please see the project statement (pt-BR) for details. How-To R

May 31, 2022

Version-agnostic and package-agnostic interfaces used in Constellar. Zero strict dependencies, works as a submodule.

bridge Version-agnostic and package-agnostic interfaces used in Constellar. Zero strict dependencies, works as a submodule. Used for cross-compatibili

Feb 23, 2022

EliteRising Lava Rising Package v1.1 for MC-1.17.1

EliteRising v1.1 for 1.17 v1.1 Changelog This update took significant my time. So v1.1 update's content is so big. Let's start. Commands -Added team c

Jun 19, 2022

The Minecraft Mod Package Manager!

The Minecraft Mod Package Manager!

Modget-Minecraft The Minecraft Mod Package Manager! Modget is based on TheBrokenRail's ModUpdater mod and is inspired heavily by Microsoft's Winget. C

Dec 28, 2022

By this package we can get sim info, call logs and sms logs.Also we can find for specific sim info and call logs as well.

sim_sms_call_info A new flutter plugin project. Getting Started This project is a starting point for a Flutter plug-in package, a specialized package

Sep 17, 2022

Lightweight React Native UI Components inspired on Vant

vant-react-native Install yarn add vant-react-native Or npm install vant-react-native Usage import React, { Component } from 'react'; import { View, T

Sep 29, 2022

Admob for React Native with powerful hooks and components

React Native Admob ⚠️ Please note, this package is under active development, which means it may be not stable to apply on production. Please use this

Jan 6, 2023

React Native wrapper around Indy SDK Java and Objective-C wrappers.

React Native Indy SDK React Native Indy SDK wrapper. Installation with npm: $ npm install indy-sdk-react-native --save with Yarn: $ yarn add indy-sdk-

Dec 5, 2022

Ship React Native .jsbundles compressed by Brotli algorithm.

Ship compressed JS bundles Warning: not yet available for Android. Sometimes you need a very small .app, for example if you are building an App Clip.

Nov 15, 2022
Owner
Shevon Soyza
Software Engineer
Shevon Soyza
You want to go to a cafe but don't know where to go. Let cafe hub support you. Ok let's go

cafe-hub You want to go to a cafe but don't know where to go. Let cafe hub support you. Ok let's go Architecture: Domain Driven Design (DDD) LDM Insta

Khoa 1 Nov 12, 2022
An awesome native wheel picker component for React Native.

⛏️ react-native-picky An awesome native wheel picker component for react-native. Features Supports multiple columns ✅ Supports looping ✅ Native Androi

null 28 Dec 4, 2022
With react-native-update-in-app library you can easily implement in-app updates in your React Native app using CDN or any other file server

React Native In-App update With react-native-update-in-app library you can easily implement in-app updates in your React Native app using CDN or any o

Nepein Andrey 7 Dec 21, 2022
A React Native project starter with Typescript, a theme provider with hook to easy styling component, a folder architecture ready and some configs to keep a codebase clean.

React Native Boilerplate Folder structure : src ├── assets │   ├── audios │   ├── fonts │   ├── icons │   └── images ├── components │   ├── Layout.tsx

LazyRabbit 23 Sep 1, 2022
An app which will never give you up and never let you down

rickroll-android-edition An app which will never give you up and never let you down How to install On your phone, Turn on Install apps from unknown so

null 1 Feb 3, 2022
A minecraft plugin that let's you suicide in game

Suicide A minecraft plugin that let's you suicide in game Command /suicide - Let's you suicide Permission me.suicide - You can edit this in config.yml

Krumpez 1 Feb 16, 2022
React native wrapper for Jitsi Meet SDK Library that rely on the native view (Activity / ViewController)

react-native-jitsi-meet-sdk React native wrapper for Jitsi Meet SDK Library. This Library implements the Jitsi SDK with a native activity on the Andro

null 7 May 2, 2022
Generates and keeps up-to-date your Spring Boot applications' Let's Encrypt or other ACME compliant SSL certificates.

Generates and keeps up-to-date your Spring Boot applications' Let's Encrypt or other ACME compliant SSL certificates. Pure Java in a single file of library code. An automated embedded alternative to Certbot and docker-sidecars. No JVM restart is needed on certificate update.

Valentyn Berezin 12 Nov 18, 2022
100DaysOfChallenge - Let's Play with Code

100 Days Of Challenge Let's Play with OOP DAY 1 Introduction Intro. Identifiers Reserved Keywords DAY 2 Primitive Dataypes Integral Datatypes Floating

Achiever 2 Feb 3, 2022
Let Litematica be able to paste tile entity data of block / entity data in a server

Litematica Server Paster Let Litematica be able to paste tile entity data of block / entity data in a server By using a custom chat packet to bypass t

Fallen_Breath 23 Dec 24, 2022