react-native-sg-basic-carousel 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.tsx +2 -3
  2. package/package.json +4 -5
package/index.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react-native/no-inline-styles */
2
- import React, { useState, useRef, useEffect } from "react";
2
+ import { useState, useRef, useEffect, JSX } from "react";
3
3
  import {
4
4
  View,
5
5
  FlatList,
@@ -7,7 +7,6 @@ import {
7
7
  StyleSheet,
8
8
  ViewStyle,
9
9
  StyleProp,
10
- ImageBackground,
11
10
  } from "react-native";
12
11
 
13
12
  interface CarouselProps {
@@ -60,7 +59,7 @@ const BasicCarousel = ({
60
59
  if (viewableItems.length > 0) {
61
60
  setActiveIndex(viewableItems[0].index);
62
61
  }
63
- }
62
+ },
64
63
  ).current;
65
64
 
66
65
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-sg-basic-carousel",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "An npm package to display basic carousel on react native applications",
5
5
  "main": "index.tsx",
6
6
  "scripts": {
@@ -24,9 +24,8 @@
24
24
  },
25
25
  "homepage": "https://github.com/siddhant124/react-native-sg-basic-carousel#readme",
26
26
  "dependencies": {
27
- "@types/react": "^18.3.11",
28
- "@types/react-native": "^0.72.8",
29
- "react": "^18.3.1",
30
- "react-native": "^0.75.4"
27
+ "@types/react": "^19.2.0",
28
+ "react": "19.2.0",
29
+ "react-native": "0.83.0"
31
30
  }
32
31
  }