Skip to content

Commit

Permalink
avoided react 16 warning for package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fondakogb committed Jul 25, 2021
1 parent 88d6c08 commit 850a117
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## react-native-carousel-loop

Fork of https://github.com/sannajammeh/react-native-carousel-loop wiht few pull merges from
original implementation of https://github.com/phil-r/react-native-looped-carousel.
Fork of https://github.com/sannajammeh/react-native-carousel-loop
wiht few pull merges from original implementation of https://github.com/phil-r/react-native-looped-carousel.

NOTE source map files not re-generated, are the same as in the forked repo
NOTE source map files are not re-generated (I left the same as in the forked repo)
## Example usage

```tsx
Expand Down Expand Up @@ -46,7 +46,7 @@ interface CarouselProps {
pageStyle?: ViewProps['style']; // undefined
contentContainerStyle?: ViewProps['style']; // undefined
pageInfo?: boolean; // false
pageInfoBackgroundColor?: string; // rgba(0, 0, 0, 0.25)
pageInfoBackgroundColor?: string; // 'rgba(0, 0, 0, 0.25)'
pageInfoTextStyle?: TextProps['style']; // undefined
pageInfoBottomContainerStyle?: ViewProps['style']; // undefined
pageInfoTextSeparator?: string; // ' / '
Expand All @@ -65,6 +65,6 @@ interface CarouselProps {
onPageBeingChanged?: (index: number) => void; // undefined
swipe?: boolean; // true
isLooped?: boolean; // true
keyboardShouldPersistTaps?: string; // never
keyboardShouldPersistTaps?: string; // 'never'
}
```
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-native-carousel-loop",
"name": "@fondakogb/carousel-loop",
"version": "1.1.0",
"description": "A typescript based infinite carousel for react-native",
"main": "lib/index.js",
Expand All @@ -16,28 +16,30 @@
},
"keywords": [
"react",
"native",
"react-native",
"carousel",
"infinite",
"loop"
"loop",
"slider"
],
"author": "Sanna Jammeh",
"author": "fondakogb",
"license": "MIT",
"bugs": {
"url": "https://github.com/fondakogb/react-native-carousel-loop/issues"
},
"homepage": "https://github.com/fondakogb/react-native-carousel-loop#readme",
"devDependencies": {
"@types/lodash.isequal": "^4.5.5",
"@types/react": "^16.9.35",
"@types/react-native": "^0.62.12",
"react": "^16.0.0",
"react-native": "^0.60.0",
"typescript": "^3.9.3"
"@types/react": ">16.8",
"@types/react-native": ">0.61",
"react": "16 - 17",
"react-native": ">0.60",
"typescript": ">3.9.3 <5"
},
"peerDependencies": {
"react": "^16.0.0",
"react-native": "^0.60.0"
"react": "16 - 17",
"react-native": ">0.60"
},
"dependencies": {
"lodash.isequal": "^4.5.0"
Expand Down

0 comments on commit 850a117

Please sign in to comment.