diff --git a/README.md b/README.md index 1642618..1567e19 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @matcane/image-comparison-slider-react-native +# @image-compare/react-native Before/after image comparison slider for React Native and Expo. @@ -7,7 +7,7 @@ Before/after image comparison slider for React Native and Expo. ## Install ```sh -pnpm add @matcane/image-comparison-slider-react-native expo-image react-native-reanimated react-native-gesture-handler react-native-worklets +pnpm add @image-compare/react-native expo-image react-native-reanimated react-native-gesture-handler react-native-worklets ``` Peer dependencies: `react`, `react-native`, `expo-image`, `react-native-reanimated`, `react-native-gesture-handler`, `react-native-worklets`. @@ -15,7 +15,7 @@ Peer dependencies: `react`, `react-native`, `expo-image`, `react-native-reanimat ## Usage ```tsx -import { ImageComparisonSlider } from "@matcane/image-comparison-slider-react-native"; +import { ImageComparisonSlider } from "@image-compare/react-native"; import { StyleSheet, View } from "react-native"; import { GestureHandlerRootView } from "react-native-gesture-handler"; diff --git a/example/App.tsx b/example/App.tsx index 3eaf211..1e9ed8d 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -1,4 +1,4 @@ -import { ImageComparisonSlider } from "@matcane/image-comparison-slider-react-native"; +import { ImageComparisonSlider } from "@image-compare/react-native"; import { StyleSheet, View } from "react-native"; import { GestureHandlerRootView } from "react-native-gesture-handler"; diff --git a/example/metro.config.js b/example/metro.config.js index 4d1b1d9..0ee0f4b 100644 --- a/example/metro.config.js +++ b/example/metro.config.js @@ -15,7 +15,7 @@ const config = withMetroConfig(getDefaultConfig(__dirname), { root, dirname: __dirname, workspaces: ["example"], - conditions: ["image-comparison-slider-react-native-source"], + conditions: ["image-compare-react-native-source"], }); module.exports = config; diff --git a/example/package.json b/example/package.json index 052c514..e208001 100644 --- a/example/package.json +++ b/example/package.json @@ -11,7 +11,7 @@ "dependencies": { "expo": "catalog:", "expo-image": "catalog:", - "@matcane/image-comparison-slider-react-native": "workspace:*", + "@image-compare/react-native": "workspace:*", "react": "catalog:", "react-native": "catalog:", "react-native-gesture-handler": "catalog:", diff --git a/package.json b/package.json index 54b9e32..2e2327d 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,22 @@ { - "name": "@matcane/image-comparison-slider-react-native", + "name": "@image-compare/react-native", "version": "0.1.0", "description": "Before/after image comparison slider for React Native and Expo", "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/matcane/image-comparison-slider-react-native.git" + "url": "git+https://github.com/matcane/image-compare-react-native.git" }, - "homepage": "https://github.com/matcane/image-comparison-slider-react-native#readme", + "homepage": "https://github.com/matcane/image-compare-react-native#readme", "bugs": { - "url": "https://github.com/matcane/image-comparison-slider-react-native/issues" + "url": "https://github.com/matcane/image-compare-react-native/issues" }, + "keywords": [ + "image-comparison-slider", + "before-after", + "expo", + "react-native" + ], "publishConfig": { "access": "public" }, @@ -19,7 +25,7 @@ "types": "./lib/typescript/src/index.d.ts", "exports": { ".": { - "image-comparison-slider-react-native-source": "./src/index.ts", + "image-compare-react-native-source": "./src/index.ts", "types": "./lib/typescript/src/index.d.ts", "default": "./lib/module/index.js" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index af4e0b8..cee007d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -104,7 +104,7 @@ importers: example: dependencies: - '@matcane/image-comparison-slider-react-native': + '@image-compare/react-native': specifier: workspace:* version: link:.. expo: