New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-forceify

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-forceify

Simple, yet powerful touch-force level detector

latest
npmnpm
Version
0.2.14
Version published
Maintainers
1
Created
Source

react-forceify

React wrapper for Forceify

Installing

$ npm install react-forceify
# or
$ yarn add react-forceify

CDN

# unpkg.com
https://unpkg.com/react-forceify

# npmcdn
https://npmcdn.com/react-forceify

# jsDelivr
https://cdn.jsdelivr.net/npm/react-forceify

Usage

import Forceify from 'react-forceify';
import React from 'react';
import ReactDOM from 'react-dom';

class MyApp extends React.Component {
    onForce = ({force}) => {
        console.log('Force level', force);
    }
    render () { 
        return (<Forceify onForce={this.onForce}>
        {'child elems'}
        </Forceify>)
    }
}

ReactDOM.render(<MyApp/>, myMountTarget);

Compatibility

It's target is ES3 compatible-browsers, but it works best within following browser:

BrowserSupported VersionRecommended VersionBest Version
IE>9>10>11
Android>4.1.2>4.4>5.1
iOS>7>9>10
macOS/OS X>9>10>10.12
Firefox>15> 35>47

License

MIT

Keywords

3d

FAQs

Package last updated on 22 May 2018

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