Skip to content

graysheeep/vue-touchable

Repository files navigation

vue-touchable

npm npm

React-Native中TouchableOpacity和TouchableHighlight的Vue组件实现。

Simple Live Demo

install

npm install vue-touchable

usage

import { TouchableOpacity, TouchableHighlight } from 'vue-touchable'

<template>
  <touchable-opacity>
    <div>
      Click to toggle opacity
    </div>
  </touchable-opacity>

  <touchable-highlight>
    <div>
      Click to toggle highlight
    </div>
  </touchable-highlight>
</template>

dev

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

todo

  • unit test
  • doc