Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
First [PinchZoom] release by @JongtaekChoi 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Nov 22, 2020
1 parent f047b4b commit a27f7ba
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/PinchZoom/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PinchZoom.example.tsx
3 changes: 3 additions & 0 deletions packages/PinchZoom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[0.0.1]

- First release.
2 changes: 1 addition & 1 deletion packages/PinchZoom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import React, {
useRef,
useState,
} from 'react';
import { number } from '@storybook/addon-knobs';

type Props = PropsWithChildren<{
style?: ViewStyle,
Expand Down Expand Up @@ -250,6 +249,7 @@ function PinchZoom(props: Props, ref: Ref<PinchZoomRef>): ReactElement {

return <Animated.View
testID="PINCH_ZOOM_CONTAINER"
// @ts-ignore
ref={(ref: NativeMethods) => { containerView.current = ref; }}
style={[style, style?.transform ? {} : {
transform: [
Expand Down
43 changes: 43 additions & 0 deletions packages/PinchZoom/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@dooboo-ui/pinch-zoom",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"version": "0.0.1",
"license": "MIT",
"postinstall": "tsc",
"scripts": {
"build": "rm -rf ./lib && tsc",
"watch": "tsc -w"
},
"repository": {
"type": "git",
"url": "https://github.com/dooboolab/dooboo-ui.git",
"directory": "packages/PinchZoom"
},
"bugs": {
"url": "https://github.com/dooboolab/dooboo-ui/issues"
},
"homepage": "https://github.com/dooboolab/dooboo-ui#readme",
"dependencies": {
"dooboolab-welcome": "^1.2.0"
},
"devDependencies": {
"styled-components": "^5.0.0",
"typescript": "^3.9.5"
},
"peerDependencies": {
"react": ">=16.9",
"react-native": ">=0.58",
"styled-components": ">=4.4.0"
},
"publishConfig": {
"access": "public"
},
"keywords": [
"search-input",
"react-hook",
"react-native",
"dooboo-ui/native",
"dooboolab"
]
}
7 changes: 7 additions & 0 deletions packages/PinchZoom/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfigPackage.json",
"compilerOptions": {
"outDir": "./lib"
},
"exclude": ["lib", "node_modules"]
}
2 changes: 1 addition & 1 deletion packages/PinchZoomSliderModal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"repository": {
"type": "git",
"url": "https://github.com/dooboolab/dooboo-ui.git",
"directory": "src/components/shared/PinchZoomSliderModal"
"directory": "packages/PinchZoomSliderModal"
},
"bugs": {
"url": "https://github.com/dooboolab/dooboo-ui/issues"
Expand Down

0 comments on commit a27f7ba

Please sign in to comment.