Skip to content

Commit

Permalink
chore: update package name to rn-swiper-list and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Skipperlla committed May 12, 2024
1 parent c3a3556 commit 8dfb722
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 33 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

https://github.com/Skipperlla/rn-tinder-swiper/assets/68515357/149b7418-cc2f-489b-9133-e6ba7120b277


⚡ Lightning fast and customizable tinder-like swiper for React Native

## Installation ⚙️
Expand All @@ -22,8 +21,6 @@ yarn add react-native-reanimated react-native-gesture-handler
- [react-native-reanimated](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation)
- [react-native-gesture-handler](https://docs.swmansion.com/react-native-gesture-handler/docs/installation)

> **_NOTE:_** I will change the name of the repository to rn-tinder-swiper via npm as soon as possible 📌
## Overview

- [x] Rotation animation
Expand Down Expand Up @@ -110,7 +107,7 @@ import {
} from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { AntDesign } from '@expo/vector-icons';
import { Swiper, type SwiperCardRefType } from 'rn-tinder-swiper';
import { Swiper, type SwiperCardRefType } from 'rn-swiper-list';

import { ActionButton } from '../components';

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rn-tinder-swiper-example",
"name": "rn-swiper-list-example",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { AntDesign } from '@expo/vector-icons';
import { Swiper, type SwiperCardRefType } from 'rn-tinder-swiper';
import { Swiper, type SwiperCardRefType } from 'rn-swiper-list';

import { ActionButton } from '../components';

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rn-tinder-swiper",
"name": "rn-swiper-list",
"version": "2.0.0",
"description": "⚡ Lightning fast and customizable tinder-like swipe card for React Native",
"main": "lib/commonjs/index",
Expand All @@ -26,7 +26,7 @@
"!**/.*"
],
"scripts": {
"example": "yarn workspace rn-tinder-swiper-example",
"example": "yarn workspace rn-swiper-list-example",
"test": "jest",
"typecheck": "tsc --noEmit",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
Expand Down
2 changes: 1 addition & 1 deletion src/Swiper.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useImperativeHandle, type ForwardedRef } from 'react';
import { runOnJS, useAnimatedReaction } from 'react-native-reanimated';
import { Dimensions } from 'react-native';
import type { SwiperCardRefType, SwiperOptions } from 'rn-tinder-swiper';
import type { SwiperCardRefType, SwiperOptions } from 'rn-swiper-list';

import useSwipeControls from './hooks/useSwipeControls';
import SwiperCard from './SwiperCard';
Expand Down
2 changes: 1 addition & 1 deletion src/SwiperCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Animated, {
withSpring,
withTiming,
} from 'react-native-reanimated';
import type { SwiperCardOptions, SwiperCardRefType } from 'rn-tinder-swiper';
import type { SwiperCardOptions, SwiperCardRefType } from 'rn-swiper-list';

import OverlayLabel from './OverlayLabel';

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSwipeControls.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createRef, useCallback, useMemo, type RefObject } from 'react';
import { useSharedValue } from 'react-native-reanimated';
import type { SwiperCardRefType } from 'rn-tinder-swiper';
import type { SwiperCardRefType } from 'rn-swiper-list';

const useSwipeControls = <T>(data: T[]) => {
const activeIndex = useSharedValue(0);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"rn-tinder-swiper": ["./src/index"]
"rn-swiper-list": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down
42 changes: 21 additions & 21 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15548,28 +15548,9 @@ __metadata:
languageName: node
linkType: hard

"rn-tinder-swiper-example@workspace:example":
version: 0.0.0-use.local
resolution: "rn-tinder-swiper-example@workspace:example"
dependencies:
"@babel/core": ^7.20.0
"@expo/webpack-config": ^18.0.1
babel-loader: ^8.1.0
babel-plugin-module-resolver: ^5.0.0
expo: ~50.0.17
expo-status-bar: ~1.11.1
react: 18.2.0
react-dom: 18.2.0
react-native: 0.73.6
react-native-gesture-handler: ~2.14.0
react-native-reanimated: ~3.6.2
react-native-web: ~0.19.6
languageName: unknown
linkType: soft

"rn-tinder-swiper@workspace:.":
"rn-swiper-list@workspace:.":
version: 0.0.0-use.local
resolution: "rn-tinder-swiper@workspace:."
resolution: "rn-swiper-list@workspace:."
dependencies:
"@commitlint/config-conventional": ^17.0.2
"@evilmartians/lefthook": ^1.5.0
Expand Down Expand Up @@ -15599,6 +15580,25 @@ __metadata:
languageName: unknown
linkType: soft

"rn-tinder-swiper-example@workspace:example":
version: 0.0.0-use.local
resolution: "rn-tinder-swiper-example@workspace:example"
dependencies:
"@babel/core": ^7.20.0
"@expo/webpack-config": ^18.0.1
babel-loader: ^8.1.0
babel-plugin-module-resolver: ^5.0.0
expo: ~50.0.17
expo-status-bar: ~1.11.1
react: 18.2.0
react-dom: 18.2.0
react-native: 0.73.6
react-native-gesture-handler: ~2.14.0
react-native-reanimated: ~3.6.2
react-native-web: ~0.19.6
languageName: unknown
linkType: soft

"run-applescript@npm:^5.0.0":
version: 5.0.0
resolution: "run-applescript@npm:5.0.0"
Expand Down

0 comments on commit 8dfb722

Please sign in to comment.