Skip to content

Commit

Permalink
Merge pull request #5 from kanzitelli/1.2.0
Browse files Browse the repository at this point in the history
1.2.0-rc
  • Loading branch information
kanzitelli committed Aug 29, 2022
2 parents 679390f + 2afd368 commit 00dbc70
Show file tree
Hide file tree
Showing 4 changed files with 1,743 additions and 1,043 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-bounceable",
"version": "1.1.0",
"version": "1.2.0-rc.0",
"description": "Native bounceable effect for any React Native component. Built with Reanimated. Compatible with Expo.",
"author": "Batyr (dev@batyr.io)",
"main": "lib/index.js",
Expand Down Expand Up @@ -36,18 +36,18 @@
"react-native-reanimated": ">= 2.x.x"
},
"devDependencies": {
"@react-native-community/eslint-config": "^3.0.1",
"@tsconfig/react-native": "^1.0.4",
"@types/react": "^17.0.24",
"@types/react-native": "^0.65.1",
"dotenv-cli": "^4.0.0",
"eslint": "^7.32.0",
"prettier": "^2.4.1",
"react": "^17.0.2",
"react-native": "^0.65.1",
"react-native-gesture-handler": "^1.10.3",
"react-native-reanimated": "^2.2.2",
"typescript": "^4.5.4"
"@react-native-community/eslint-config": "^3.1.0",
"@tsconfig/react-native": "^2.0.2",
"@types/react": "^18.0.17",
"@types/react-native": "^0.69.5",
"dotenv-cli": "^6.0.0",
"eslint": "^8.23.0",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react-native": "^0.69.5",
"react-native-gesture-handler": "^2.6.0",
"react-native-reanimated": "^2.10.0",
"typescript": "^4.8.2"
},
"license": "MIT"
}
7 changes: 4 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import Animated, {
useAnimatedStyle,
withSpring,
runOnJS,
WithSpringConfig,
} from 'react-native-reanimated';
import {TapGestureHandler, State} from 'react-native-gesture-handler';
import {useMemo} from 'react';

type PureFunc = () => void;
export type BounceableProps = {
export type BounceableProps = React.PropsWithChildren<{
disabled?: boolean;
noBounce?: boolean;
onPress?: PureFunc;
Expand All @@ -19,9 +20,9 @@ export type BounceableProps = {
delayLongPress?: number;
activeScale?: number;
delayActiveScale?: number;
springConfig?: Animated.WithSpringConfig;
springConfig?: WithSpringConfig;
contentContainerStyle?: StyleProp<ViewStyle>;
};
}>;

export const Bounceable: React.FC<BounceableProps> = ({
children,
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"extends": "@tsconfig/react-native/tsconfig.json",
"compilerOptions": {
"jsx": "react",
"noEmit": false,
"rootDir": "src",
"outDir": "lib",
"declaration": true,
"skipLibCheck": true,
"module": "ESNext"
"module": "ESNext",
"types": ["node"]
},
"exclude": ["node_modules", "lib", "expo-example"]
}
Loading

0 comments on commit 00dbc70

Please sign in to comment.