Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-material-ripple

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-material-ripple

Base component for touchable elements

  • 0.9.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-material-ripple

npm license codeclimate

Base component for touchable elements

example

Features

  • Easy to use
  • Configurable
  • Consistent look and feel on iOS and Android
  • Can be used as drop-in replacement for TouchableWithoutFeedback
  • Pure javascript implementation
  • RTL Support

Installation

npm install --save react-native-material-ripple

Usage

import React, { Component } from 'react';
import { Text } from 'react-native';
import Ripple from 'react-native-material-ripple';

class Example extends Component {
  render() {
    return (
      <Ripple>
        <Text>touch me</Text>
      </Ripple>
    );
  }
}

Properties

namedescriptiontypedefault
rippleColorRipple colorStringrgb(0, 0, 0)
rippleOpacityRipple opacityNumber0.3
rippleDurationRipple duration in msNumber400
rippleSizeRipple size restrictionNumber0
rippleContainerBorderRadiusRipple container border radiusNumber0
rippleCenteredRipple always starts from centerBooleanfalse
rippleSequentialRipple should start in sequenceBooleanfalse
rippleFadesRipple fades outBooleantrue
disabledRipple should ignore touchesBooleanfalse
onPressInTouch moved in or started callbackFunction-
onPressOutTouch moved out or terminated callbackFunction-
onPressTouch up inside bounds callbackFunction-
onLongPressTouch delayed after onPressIn callbackFunction-
onRippleAnimationAnimation start callbackFunction-

Other TouchableWithoutFeedback properties will also work

Example

git clone https://github.com/n4kz/react-native-material-ripple
cd react-native-material-ripple/example
npm install
react-native run-ios # or run-android

BSD License

Copyright 2017-2018 Alexander Nazarov. All rights reserved.

Keywords

FAQs

Package last updated on 26 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc