Skip to content

Commit

Permalink
badge style
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmzb committed Jul 5, 2020
1 parent cef7d2d commit 7b2af56
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@

<p align="center">
<a href="https://npmjs.org/package/react-native-gesture-detector">
<img src="https://img.shields.io/npm/v/react-native-gesture-detector" />
<img src="https://img.shields.io/npm/v/react-native-gesture-detector?style=for-the-badge" />
</a>
<a href="https://github.com/mxmzb/react-native-gesture-detector/blob/master/LICENSE">
<img src="https://img.shields.io/npm/l/react-native-gesture-detector" />
<img src="https://img.shields.io/npm/l/react-native-gesture-detector?style=for-the-badge" />
</a>
<a href="https://npmjs.org/package/react-native-gesture-detector">
<img src="https://img.shields.io/bundlephobia/min/react-native-gesture-detector" />
<img src="https://img.shields.io/bundlephobia/min/react-native-gesture-detector?style=for-the-badge" />
</a>
<a href="https://circleci.com/gh/mxmzb/react-native-gesture-detector/">
<img src="https://img.shields.io/circleci/build/github/mxmzb/react-native-gesture-detector" />
<img src="https://img.shields.io/circleci/build/github/mxmzb/react-native-gesture-detector?style=for-the-badge" />
</a>
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" />
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=for-the-badge&logo=github" />
</p>

## Demos
Expand Down Expand Up @@ -105,7 +105,7 @@ const gestures = {

const CoilExample = () => (
<GestureDetector
onGestureFinish={gesture => console.log(`Gesture "${gesture}" finished!`)}
onGestureFinish={(gesture) => console.log(`Gesture "${gesture}" finished!`)}
onProgress={({ gesture, progress }) => {
console.log(`Gesture: ${gesture}, progress: ${progress}`);
}}
Expand All @@ -129,7 +129,7 @@ const RecordGestureExample = () => {
const [finishedGesture, setFinishedGesture] = useState([]);

return (
<GestureRecorder onPanRelease={gesture => setFinishedGesture(gesture)}>
<GestureRecorder onPanRelease={(gesture) => setFinishedGesture(gesture)}>
{({ gesture }) => (
<View style={{ position: "relative", width: "100%", height: "100%" }}>
<GesturePath path={gesture} color="green" slopRadius={35} />
Expand Down

0 comments on commit 7b2af56

Please sign in to comment.