expo-scroll-forwarder 1.0.1 → 1.0.2

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.
@@ -1 +1 @@
1
- export { ExpoScrollForwarderView } from "./src/ExpoScrollForwarderView";
1
+ export { ExpoScrollForwarderView } from "./src/ExpoScrollForwarderView";
package/build/index.js ADDED
@@ -0,0 +1 @@
1
+ export { ExpoScrollForwarderView } from "./src/ExpoScrollForwarderView";
@@ -0,0 +1,4 @@
1
+ export interface ExpoScrollForwarderViewProps {
2
+ scrollViewTag: number | null;
3
+ children: React.ReactNode;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { ExpoScrollForwarderViewProps } from "./ExpoScrollForwarder.types";
3
+ export declare function ExpoScrollForwarderView({ children, }: ExpoScrollForwarderViewProps): React.ReactNode;
@@ -0,0 +1,3 @@
1
+ export function ExpoScrollForwarderView({ children, }) {
2
+ return children; // placeholder for Android
3
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import { ExpoScrollForwarderViewProps } from "./ExpoScrollForwarder.types";
3
+ export declare function ExpoScrollForwarderView({ children, }: ExpoScrollForwarderViewProps): React.ReactNode;
@@ -0,0 +1,2 @@
1
+ import { ExpoScrollForwarderViewProps } from "./ExpoScrollForwarder.types";
2
+ export declare function ExpoScrollForwarderView({ children, ...rest }: ExpoScrollForwarderViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { requireNativeViewManager } from "expo-modules-core";
3
+ const NativeView = requireNativeViewManager("ExpoScrollForwarder");
4
+ export function ExpoScrollForwarderView({ children, ...rest }) {
5
+ return _jsx(NativeView, { ...rest, children: children });
6
+ }
@@ -0,0 +1,3 @@
1
+ export function ExpoScrollForwarderView({ children, }) {
2
+ return children; // cross-platform fallback
3
+ }
@@ -0,0 +1 @@
1
+ {"root":["../src/exposcrollforwarder.types.ts","../src/exposcrollforwarderview.android.tsx","../src/exposcrollforwarderview.ios.tsx","../src/exposcrollforwarderview.tsx","../index.ts"],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,13 +1,30 @@
1
1
  {
2
2
  "name": "expo-scroll-forwarder",
3
- "version": "1.0.1",
4
- "main": "index.ts",
5
- "types": "index.ts",
3
+ "version": "1.0.2",
4
+ "description": "Forward scroll gestures from a UIView to a UIScrollView in Expo.",
5
+ "main": "build/index.js",
6
+ "types": "build/index.d.ts",
7
+ "sideEffects": false,
6
8
  "files": [
7
- "src",
8
- "index.ts",
9
+ "build",
10
+ "src/ios",
9
11
  "ExpoScrollForwarder.podspec",
10
- "expo-module.config.json"
12
+ "expo-module.config.json",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsc --build",
18
+ "clean": "rimraf build",
19
+ "prepare": "yarn build"
20
+ },
21
+ "keywords": [
22
+ "expo",
23
+ "react-native",
24
+ "expo-module",
25
+ "scroll",
26
+ "gesture",
27
+ "ios"
11
28
  ],
12
29
  "peerDependencies": {
13
30
  "react": "*",
@@ -18,16 +35,9 @@
18
35
  "typescript": "^5.2.0",
19
36
  "@types/react": "^18.2.0",
20
37
  "@types/react-native": "^0.72.0",
21
- "expo-modules-core": "*"
22
- },
23
- "scripts": {
24
- "build": "tsc --build"
38
+ "expo-modules-core": "*",
39
+ "rimraf": "^5.0.0"
25
40
  },
26
- "keywords": [
27
- "expo",
28
- "react-native",
29
- "scroll",
30
- "forwarder",
31
- "module"
32
- ]
41
+ "license": "MIT",
42
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
33
43
  }
@@ -1,4 +0,0 @@
1
- export interface ExpoScrollForwarderViewProps {
2
- scrollViewTag: number | null;
3
- children: React.ReactNode;
4
- }
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- import { ExpoScrollForwarderViewProps } from "./ExpoScrollForwarder.types";
3
-
4
- export function ExpoScrollForwarderView({
5
- children,
6
- }: ExpoScrollForwarderViewProps) {
7
- return children; // placeholder for Android
8
- }
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- import { requireNativeViewManager } from "expo-modules-core";
3
- import { ExpoScrollForwarderViewProps } from "./ExpoScrollForwarder.types";
4
-
5
- const NativeView: React.ComponentType<ExpoScrollForwarderViewProps> =
6
- requireNativeViewManager("ExpoScrollForwarder");
7
-
8
- export function ExpoScrollForwarderView({
9
- children,
10
- ...rest
11
- }: ExpoScrollForwarderViewProps) {
12
- return <NativeView {...rest}>{children}</NativeView>;
13
- }
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- import { ExpoScrollForwarderViewProps } from "./ExpoScrollForwarder.types";
3
-
4
- export function ExpoScrollForwarderView({
5
- children,
6
- }: ExpoScrollForwarderViewProps) {
7
- return children; // cross-platform fallback
8
- }