1.0.5 • Published 1 year ago

@snskar125/rn-ripple v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@snskar125/rn-ripple

Ripple Effect Component for React Native

Usage

import { StyleSheet, Text, View } from "react-native";
import TouchableRipple from "@snskar125/rn-ripple";

export default function App() {
  return (
    <View style={styles.container}>
      <TouchableRipple
        rippleColor={"rgba(255,255,255,0.5)"}
        style={styles.button}
      >
        <Text style={styles.text}>Button</Text>
      </TouchableRipple>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center",
  },
  button: {
    backgroundColor: "#6fd5fc",
    paddingVertical: 15,
    paddingHorizontal: 50,
    borderRadius: 30,
  },
  text: {
    color: "#252525",
    fontWeight: "600",
    fontSize: 20,
  },
});

Props

PropType
rippleColorString (Use RGBA for Transparency)
backgroundBoolean (Ripple Position)

All TouchableWithoutFeedback Props

1.0.2

1 year ago

1.0.1

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

1 year ago