0.0.31 • Published 5 years ago

react-native-ripple-controls v0.0.31

Weekly downloads
10
License
ISC
Repository
github
Last release
5 years ago

REACT-NATIVE-RIPPLE-CONTROLS

Base component for TouchableWithoutFeedback element.

alt text

FEATURES

  • Easy to use
  • Easy to configurable
  • Consistent on iOS and Android
  • Can be used as drop-in replacement for TouchableOpacity, TouchableHighlight, TouchableNativeFeedback
  • Pure javascript implementation.

Installation

  • Step 1: Install react-native-ripple-controls

    npm i --save react-native-ripple-controls

  • Step 2: Install react-native-elements

    npm i --save react-native-elements

  • Step 3: Install react-native-vector-icons

    npm i --save react-native-vector-icons

  • Step 4: Link react-native-vector-icons

    react-native link react-native-vector-icons

Usage

import React, { Component } from "react";
import {  StyleSheet, View } from "react-native";
import {RippleTouchable, RippleButton, RippleIcon} from 'react-native-ripple-controls;

export default class App extends Component {
render() {
    return (
        <View style={styles.container}>
            <RippleTouchable
                containerStyle={{
                    width: "90%",
                    borderRadius: 10,
                    height: 100,
                    backgroundColor: "#ff1a1a"
                }}
            />

            <RippleTouchable
                rippleColor={"#1a6600"}
                haveSubPress={true}
                containerStyle={{
                    width: "90%",
                    marginTop: 20,
                    borderRadius: 10,
                    height: 100,
                    backgroundColor: "#e6f2ff"
                }}
            >
                <RippleIcon
                    containerStyle={{ marginTop: 20 }}
                    name={"birthday-cake"}
                    size={50}
                    type={"font-awesome-5"}
                    color={"#ff9900"}
                />
            </RippleTouchable>

            <RippleIcon
                containerStyle={{ marginTop: 20 }}
                name={"birthday-cake"}
                size={50}
                type={"font-awesome-5"}
                color={"#ff9900"}
            />

            <RippleButton
                text={"BUTTON 1"}
                textStyle={{ color: "#fff", fontSize: 30 }}
                buttonContainerStyle={{
                    width: "90%",
                    marginTop: 20,
                    borderRadius: 10,
                    height: 100,
                    backgroundColor: "#009900"
                }}
            />
        </View>
    );
}

}

const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgroundColor: "#F5FCFF" } });

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago