rn-onboarding-slides 1.0.0
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.
- package/README.md +182 -0
- package/lib/commonjs/components/Dot.js +2 -0
- package/lib/commonjs/components/Dot.js.map +1 -0
- package/lib/commonjs/components/NextButton.js +2 -0
- package/lib/commonjs/components/NextButton.js.map +1 -0
- package/lib/commonjs/components/OnboardingScreen.js +339 -0
- package/lib/commonjs/components/OnboardingScreen.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +2 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/RenderItem.js +2 -0
- package/lib/commonjs/components/RenderItem.js.map +1 -0
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/types/index.js +6 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/module/components/Dot.js +2 -0
- package/lib/module/components/Dot.js.map +1 -0
- package/lib/module/components/NextButton.js +2 -0
- package/lib/module/components/NextButton.js.map +1 -0
- package/lib/module/components/OnboardingScreen.js +332 -0
- package/lib/module/components/OnboardingScreen.js.map +1 -0
- package/lib/module/components/Pagination.js +2 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/RenderItem.js +2 -0
- package/lib/module/components/RenderItem.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/types/index.js +2 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/typescript/example/App.d.ts +3 -0
- package/lib/typescript/example/App.d.ts.map +1 -0
- package/lib/typescript/src/components/Dot.d.ts +1 -0
- package/lib/typescript/src/components/Dot.d.ts.map +1 -0
- package/lib/typescript/src/components/NextButton.d.ts +1 -0
- package/lib/typescript/src/components/NextButton.d.ts.map +1 -0
- package/lib/typescript/src/components/OnboardingScreen.d.ts +5 -0
- package/lib/typescript/src/components/OnboardingScreen.d.ts.map +1 -0
- package/lib/typescript/src/components/Pagination.d.ts +1 -0
- package/lib/typescript/src/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/src/components/RenderItem.d.ts +1 -0
- package/lib/typescript/src/components/RenderItem.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +34 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/package.json +66 -0
- package/src/components/Dot.tsx +0 -0
- package/src/components/NextButton.tsx +0 -0
- package/src/components/OnboardingScreen.tsx +459 -0
- package/src/components/Pagination.tsx +0 -0
- package/src/components/RenderItem.tsx +0 -0
- package/src/index.ts +6 -0
- package/src/types/index.ts +43 -0
package/README.md
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# rn-onboarding-slides
|
|
2
|
+
|
|
3
|
+
A beautiful, fully customizable onboarding screen for React Native with **animated pagination dots**, smooth **swipe transitions**, and a **morphing next/start button**.
|
|
4
|
+
|
|
5
|
+
Built with `react-native-reanimated` for buttery-smooth 60fps animations running on the native thread.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install rn-onboarding-slides
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Peer Dependencies
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install react-native-reanimated expo-image
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
> Make sure to follow the [react-native-reanimated setup guide](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/) to add Babel plugin and configure your app.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import { OnboardingScreen } from "rn-onboarding-slides";
|
|
27
|
+
|
|
28
|
+
const data = [
|
|
29
|
+
{
|
|
30
|
+
id: 1,
|
|
31
|
+
image: require("./assets/slide1.jpg"),
|
|
32
|
+
title: "Welcome",
|
|
33
|
+
text: "The best app for sports fans",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 2,
|
|
37
|
+
image: require("./assets/slide2.jpg"),
|
|
38
|
+
title: "Track Everything",
|
|
39
|
+
text: "Follow your favorite teams live",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 3,
|
|
43
|
+
image: require("./assets/slide3.jpg"),
|
|
44
|
+
title: "Get Started",
|
|
45
|
+
text: "Join millions of fans today",
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
export default function App() {
|
|
50
|
+
return (
|
|
51
|
+
<OnboardingScreen
|
|
52
|
+
data={data}
|
|
53
|
+
onPress={() => console.log("Onboarding done!")}
|
|
54
|
+
buttonLabel="Get Started"
|
|
55
|
+
showSkipButton
|
|
56
|
+
onSkip={() => console.log("Skipped")}
|
|
57
|
+
/>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Theming & Customization
|
|
65
|
+
|
|
66
|
+
```tsx
|
|
67
|
+
<OnboardingScreen
|
|
68
|
+
data={data}
|
|
69
|
+
onPress={handleDone}
|
|
70
|
+
buttonLabel="Let's Go"
|
|
71
|
+
showSkipButton
|
|
72
|
+
onSkip={handleSkip}
|
|
73
|
+
skipLabel="Skip"
|
|
74
|
+
theme={{
|
|
75
|
+
// Dots
|
|
76
|
+
dotActiveColor: "#FF6B6B",
|
|
77
|
+
dotInactiveColor: "#555",
|
|
78
|
+
dotActiveWidth: 24,
|
|
79
|
+
dotHeight: 10,
|
|
80
|
+
|
|
81
|
+
// Button
|
|
82
|
+
buttonColor: "#FF6B6B",
|
|
83
|
+
buttonTextColor: "#fff",
|
|
84
|
+
buttonSize: 60,
|
|
85
|
+
buttonFinalWidth: 150,
|
|
86
|
+
buttonPosition: "right", // 'left' | 'right' | 'center'
|
|
87
|
+
|
|
88
|
+
// Layout
|
|
89
|
+
paginationPosition: "bottom-left", // 'bottom-left' | 'bottom-center' | 'bottom-right'
|
|
90
|
+
backgroundColor: "#0a0a0a",
|
|
91
|
+
}}
|
|
92
|
+
/>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Custom Slide Rendering
|
|
98
|
+
|
|
99
|
+
Override the default slide layout completely using `renderItem`:
|
|
100
|
+
|
|
101
|
+
```tsx
|
|
102
|
+
<OnboardingScreen
|
|
103
|
+
data={data}
|
|
104
|
+
onPress={handleDone}
|
|
105
|
+
renderItem={(item, index) => (
|
|
106
|
+
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
|
|
107
|
+
<Image source={item.image} style={{ width: "100%", height: "70%" }} />
|
|
108
|
+
<Text style={{ color: "#fff", fontSize: 24 }}>{item.title}</Text>
|
|
109
|
+
<Text style={{ color: "#aaa", fontSize: 16 }}>{item.text}</Text>
|
|
110
|
+
</View>
|
|
111
|
+
)}
|
|
112
|
+
/>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Props
|
|
118
|
+
|
|
119
|
+
| Prop | Type | Default | Description |
|
|
120
|
+
| ---------------- | ---------------------------- | --------------- | ---------------------------------------- |
|
|
121
|
+
| `data` | `TOnboardingItem[]` | **required** | Array of slide data objects |
|
|
122
|
+
| `onPress` | `() => void` | **required** | Called when last slide button is pressed |
|
|
123
|
+
| `buttonLabel` | `string` | `'Get Started'` | Label shown on final slide button |
|
|
124
|
+
| `showSkipButton` | `boolean` | `false` | Whether to show a Skip button |
|
|
125
|
+
| `onSkip` | `() => void` | `undefined` | Called when skip button is tapped |
|
|
126
|
+
| `skipLabel` | `string` | `'Skip'` | Label for the skip button |
|
|
127
|
+
| `theme` | `TOnboardingTheme` | see below | Full theme/style customization |
|
|
128
|
+
| `renderItem` | `(item, index) => ReactNode` | `undefined` | Custom slide renderer |
|
|
129
|
+
| `containerStyle` | `ViewStyle` | `undefined` | Override outer container style |
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## TOnboardingItem
|
|
134
|
+
|
|
135
|
+
| Field | Type | Description |
|
|
136
|
+
| ------- | --------------------- | --------------------------------------- |
|
|
137
|
+
| `id` | `number` | Unique identifier for the slide |
|
|
138
|
+
| `image` | `ImageSourcePropType` | Slide background image (require or URI) |
|
|
139
|
+
| `title` | `string?` | Optional slide title |
|
|
140
|
+
| `text` | `string?` | Optional slide description text |
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Theme Options (TOnboardingTheme)
|
|
145
|
+
|
|
146
|
+
| Key | Type | Default | Description |
|
|
147
|
+
| -------------------- | ---------------------------------------------------- | --------------- | ---------------------------------------- |
|
|
148
|
+
| `dotActiveColor` | `string` | `'#32CD32'` | Active (current) dot color |
|
|
149
|
+
| `dotInactiveColor` | `string` | `'#ccc'` | Inactive dot color |
|
|
150
|
+
| `dotActiveWidth` | `number` | `20` | Width of the active animated dot |
|
|
151
|
+
| `dotHeight` | `number` | `10` | Height of all dots |
|
|
152
|
+
| `buttonColor` | `string` | `'#32CD32'` | Next/Start button background color |
|
|
153
|
+
| `buttonTextColor` | `string` | `'#ffffff'` | Button label color |
|
|
154
|
+
| `buttonSize` | `number` | `60` | Button diameter in circular state |
|
|
155
|
+
| `buttonFinalWidth` | `number` | `140` | Button width when expanded on last slide |
|
|
156
|
+
| `buttonPosition` | `'left' \| 'right' \| 'center'` | `'right'` | Horizontal alignment of button |
|
|
157
|
+
| `paginationPosition` | `'bottom-left' \| 'bottom-center' \| 'bottom-right'` | `'bottom-left'` | Alignment of pagination dots |
|
|
158
|
+
| `backgroundColor` | `string` | `'#000000'` | Screen background color |
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Publishing Updates
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
# Bug fix
|
|
166
|
+
npm version patch # 1.0.0 → 1.0.1
|
|
167
|
+
npm publish
|
|
168
|
+
|
|
169
|
+
# New feature
|
|
170
|
+
npm version minor # 1.0.0 → 1.1.0
|
|
171
|
+
npm publish
|
|
172
|
+
|
|
173
|
+
# Breaking change
|
|
174
|
+
npm version major # 1.0.0 → 2.0.0
|
|
175
|
+
npm publish
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
MIT © [Arbab Naseer](https://github.com/ArbabNaseer82)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/Dot.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/NextButton.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
10
|
+
var _expoImage = require("expo-image");
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
+
const {
|
|
13
|
+
width: SCREEN_WIDTH
|
|
14
|
+
} = _reactNative.Dimensions.get("window");
|
|
15
|
+
const DEFAULT_THEME = {
|
|
16
|
+
dotActiveColor: "#32CD32",
|
|
17
|
+
dotInactiveColor: "#ccc",
|
|
18
|
+
dotActiveWidth: 20,
|
|
19
|
+
dotHeight: 10,
|
|
20
|
+
buttonColor: "#32CD32",
|
|
21
|
+
buttonTextColor: "#ffffff",
|
|
22
|
+
buttonSize: 60,
|
|
23
|
+
buttonFinalWidth: 140,
|
|
24
|
+
buttonPosition: "right",
|
|
25
|
+
paginationPosition: "bottom-left",
|
|
26
|
+
backgroundColor: "#000000"
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// ─── Dot ────────────────────────────────────────────────────────────────────
|
|
30
|
+
|
|
31
|
+
const Dot = /*#__PURE__*/(0, _react.memo)(({
|
|
32
|
+
index,
|
|
33
|
+
x,
|
|
34
|
+
theme
|
|
35
|
+
}) => {
|
|
36
|
+
const animatedDotStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
37
|
+
const width = (0, _reactNativeReanimated.interpolate)(x.value, [(index - 1) * SCREEN_WIDTH, index * SCREEN_WIDTH, (index + 1) * SCREEN_WIDTH], [theme.dotHeight, theme.dotActiveWidth, theme.dotHeight], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
38
|
+
const opacity = (0, _reactNativeReanimated.interpolate)(x.value, [(index - 1) * SCREEN_WIDTH, index * SCREEN_WIDTH, (index + 1) * SCREEN_WIDTH], [0.5, 1, 0.5], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
39
|
+
return {
|
|
40
|
+
width,
|
|
41
|
+
opacity
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
const colorStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
45
|
+
const backgroundColor = (0, _reactNativeReanimated.interpolateColor)(x.value, [0, SCREEN_WIDTH], [theme.dotActiveColor, theme.dotActiveColor]);
|
|
46
|
+
return {
|
|
47
|
+
backgroundColor
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
51
|
+
style: [styles.dot, {
|
|
52
|
+
height: theme.dotHeight
|
|
53
|
+
}, animatedDotStyle, colorStyle]
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// ─── Pagination ──────────────────────────────────────────────────────────────
|
|
58
|
+
|
|
59
|
+
const Pagination = /*#__PURE__*/(0, _react.memo)(({
|
|
60
|
+
data,
|
|
61
|
+
x,
|
|
62
|
+
theme,
|
|
63
|
+
position
|
|
64
|
+
}) => {
|
|
65
|
+
const justifyContent = position === "bottom-center" ? "center" : position === "bottom-right" ? "flex-end" : "flex-start";
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
67
|
+
style: [styles.paginationContainer, {
|
|
68
|
+
justifyContent
|
|
69
|
+
}]
|
|
70
|
+
}, data.map((_, index) => /*#__PURE__*/_react.default.createElement(Dot, {
|
|
71
|
+
key: index,
|
|
72
|
+
index: index,
|
|
73
|
+
x: x,
|
|
74
|
+
theme: theme
|
|
75
|
+
})));
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
// ─── Next Button ─────────────────────────────────────────────────────────────
|
|
79
|
+
|
|
80
|
+
const NextButton = /*#__PURE__*/(0, _react.memo)(({
|
|
81
|
+
flatListRef,
|
|
82
|
+
flatListIndex,
|
|
83
|
+
dataLength,
|
|
84
|
+
onPress,
|
|
85
|
+
buttonLabel,
|
|
86
|
+
theme
|
|
87
|
+
}) => {
|
|
88
|
+
const buttonAnimationStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
89
|
+
width: flatListIndex.value === dataLength - 1 ? (0, _reactNativeReanimated.withSpring)(theme.buttonFinalWidth) : (0, _reactNativeReanimated.withSpring)(theme.buttonSize),
|
|
90
|
+
height: theme.buttonSize
|
|
91
|
+
}));
|
|
92
|
+
const arrowStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
93
|
+
opacity: flatListIndex.value === dataLength - 1 ? (0, _reactNativeReanimated.withTiming)(0) : (0, _reactNativeReanimated.withTiming)(1),
|
|
94
|
+
transform: [{
|
|
95
|
+
translateX: flatListIndex.value === dataLength - 1 ? (0, _reactNativeReanimated.withTiming)(100) : (0, _reactNativeReanimated.withTiming)(0)
|
|
96
|
+
}]
|
|
97
|
+
}));
|
|
98
|
+
const textStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
|
|
99
|
+
opacity: flatListIndex.value === dataLength - 1 ? (0, _reactNativeReanimated.withTiming)(1) : (0, _reactNativeReanimated.withTiming)(0),
|
|
100
|
+
transform: [{
|
|
101
|
+
translateX: flatListIndex.value === dataLength - 1 ? (0, _reactNativeReanimated.withTiming)(0) : (0, _reactNativeReanimated.withTiming)(-100)
|
|
102
|
+
}]
|
|
103
|
+
}));
|
|
104
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
105
|
+
onPress: () => {
|
|
106
|
+
if (flatListIndex.value < dataLength - 1) {
|
|
107
|
+
flatListRef.current?.scrollToIndex({
|
|
108
|
+
index: flatListIndex.value + 1
|
|
109
|
+
});
|
|
110
|
+
} else {
|
|
111
|
+
onPress();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
115
|
+
style: [styles.buttonContainer, {
|
|
116
|
+
backgroundColor: theme.buttonColor
|
|
117
|
+
}, buttonAnimationStyle]
|
|
118
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.Text, {
|
|
119
|
+
style: [styles.buttonText, {
|
|
120
|
+
color: theme.buttonTextColor
|
|
121
|
+
}, textStyle]
|
|
122
|
+
}, buttonLabel), /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.Text, {
|
|
123
|
+
style: [styles.arrow, arrowStyle]
|
|
124
|
+
}, "\u2192")));
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// ─── Main Component ───────────────────────────────────────────────────────────
|
|
128
|
+
|
|
129
|
+
const OnboardingScreen = /*#__PURE__*/(0, _react.memo)(props => {
|
|
130
|
+
const {
|
|
131
|
+
data,
|
|
132
|
+
onPress,
|
|
133
|
+
buttonLabel = "Get Started",
|
|
134
|
+
theme = {},
|
|
135
|
+
containerStyle,
|
|
136
|
+
showSkipButton = false,
|
|
137
|
+
onSkip,
|
|
138
|
+
skipLabel = "Skip",
|
|
139
|
+
renderItem: customRenderItem
|
|
140
|
+
} = props;
|
|
141
|
+
const mergedTheme = {
|
|
142
|
+
...DEFAULT_THEME,
|
|
143
|
+
...theme
|
|
144
|
+
};
|
|
145
|
+
const flatListRef = (0, _reactNativeReanimated.useAnimatedRef)();
|
|
146
|
+
const x = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
147
|
+
const flatListIndex = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
148
|
+
const onViewableItemsChanged = (0, _react.useCallback)(({
|
|
149
|
+
viewableItems
|
|
150
|
+
}) => {
|
|
151
|
+
const index = viewableItems[0]?.index;
|
|
152
|
+
if (index !== null && index !== undefined) {
|
|
153
|
+
flatListIndex.value = index;
|
|
154
|
+
}
|
|
155
|
+
}, []);
|
|
156
|
+
const onScroll = (0, _reactNativeReanimated.useAnimatedScrollHandler)({
|
|
157
|
+
onScroll: event => {
|
|
158
|
+
x.value = event.contentOffset.x;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
const buttonJustify = mergedTheme.buttonPosition === "center" ? "center" : mergedTheme.buttonPosition === "left" ? "flex-start" : "flex-end";
|
|
162
|
+
const renderListItem = (0, _react.useCallback)(({
|
|
163
|
+
item,
|
|
164
|
+
index
|
|
165
|
+
}) => {
|
|
166
|
+
if (customRenderItem) {
|
|
167
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
168
|
+
style: {
|
|
169
|
+
width: SCREEN_WIDTH
|
|
170
|
+
}
|
|
171
|
+
}, customRenderItem(item, index));
|
|
172
|
+
}
|
|
173
|
+
return /*#__PURE__*/_react.default.createElement(DefaultRenderItem, {
|
|
174
|
+
item: item,
|
|
175
|
+
index: index,
|
|
176
|
+
x: x
|
|
177
|
+
});
|
|
178
|
+
}, [customRenderItem, x]);
|
|
179
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
180
|
+
style: [styles.container, {
|
|
181
|
+
backgroundColor: mergedTheme.backgroundColor
|
|
182
|
+
}, containerStyle]
|
|
183
|
+
}, showSkipButton && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
184
|
+
style: styles.skipButton,
|
|
185
|
+
onPress: onSkip
|
|
186
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
187
|
+
style: styles.skipText
|
|
188
|
+
}, skipLabel)), /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.FlatList, {
|
|
189
|
+
ref: flatListRef,
|
|
190
|
+
onScroll: onScroll,
|
|
191
|
+
data: data,
|
|
192
|
+
renderItem: renderListItem,
|
|
193
|
+
keyExtractor: item => item.id.toString(),
|
|
194
|
+
scrollEventThrottle: 16,
|
|
195
|
+
horizontal: true,
|
|
196
|
+
bounces: false,
|
|
197
|
+
pagingEnabled: true,
|
|
198
|
+
showsHorizontalScrollIndicator: false,
|
|
199
|
+
onViewableItemsChanged: onViewableItemsChanged,
|
|
200
|
+
viewabilityConfig: {
|
|
201
|
+
minimumViewTime: 300,
|
|
202
|
+
viewAreaCoveragePercentThreshold: 10
|
|
203
|
+
}
|
|
204
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
205
|
+
style: [styles.bottomContainer, {
|
|
206
|
+
justifyContent: "space-between"
|
|
207
|
+
}]
|
|
208
|
+
}, /*#__PURE__*/_react.default.createElement(Pagination, {
|
|
209
|
+
data: data,
|
|
210
|
+
x: x,
|
|
211
|
+
theme: mergedTheme,
|
|
212
|
+
position: mergedTheme.paginationPosition
|
|
213
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
214
|
+
style: {
|
|
215
|
+
flex: 1,
|
|
216
|
+
alignItems: buttonJustify === "center" ? "center" : buttonJustify === "flex-start" ? "flex-start" : "flex-end"
|
|
217
|
+
}
|
|
218
|
+
}, /*#__PURE__*/_react.default.createElement(NextButton, {
|
|
219
|
+
flatListRef: flatListRef,
|
|
220
|
+
flatListIndex: flatListIndex,
|
|
221
|
+
dataLength: data.length,
|
|
222
|
+
x: x,
|
|
223
|
+
onPress: onPress,
|
|
224
|
+
buttonLabel: buttonLabel,
|
|
225
|
+
theme: mergedTheme
|
|
226
|
+
}))));
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// ─── Default Slide ───────────────────────────────────────────────────────────
|
|
230
|
+
|
|
231
|
+
const DefaultRenderItem = /*#__PURE__*/(0, _react.memo)(({
|
|
232
|
+
item,
|
|
233
|
+
index,
|
|
234
|
+
x
|
|
235
|
+
}) => {
|
|
236
|
+
const animStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
237
|
+
const translateY = (0, _reactNativeReanimated.interpolate)(x.value, [(index - 1) * SCREEN_WIDTH, index * SCREEN_WIDTH, (index + 1) * SCREEN_WIDTH], [200, 0, -200], _reactNativeReanimated.Extrapolation.CLAMP);
|
|
238
|
+
return {
|
|
239
|
+
transform: [{
|
|
240
|
+
translateY
|
|
241
|
+
}]
|
|
242
|
+
};
|
|
243
|
+
});
|
|
244
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
245
|
+
style: styles.itemContainer
|
|
246
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
247
|
+
style: [{
|
|
248
|
+
flex: 1,
|
|
249
|
+
width: "100%"
|
|
250
|
+
}, animStyle]
|
|
251
|
+
}, /*#__PURE__*/_react.default.createElement(_expoImage.Image, {
|
|
252
|
+
source: item.image,
|
|
253
|
+
style: styles.image,
|
|
254
|
+
contentFit: "cover"
|
|
255
|
+
})), item.title !== undefined && item.title !== "" && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
256
|
+
style: styles.title
|
|
257
|
+
}, item.title), item.text !== undefined && item.text !== "" && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
258
|
+
style: styles.itemText
|
|
259
|
+
}, item.text));
|
|
260
|
+
});
|
|
261
|
+
const styles = _reactNative.StyleSheet.create({
|
|
262
|
+
container: {
|
|
263
|
+
flex: 1
|
|
264
|
+
},
|
|
265
|
+
skipButton: {
|
|
266
|
+
position: "absolute",
|
|
267
|
+
top: 50,
|
|
268
|
+
right: 20,
|
|
269
|
+
zIndex: 10
|
|
270
|
+
},
|
|
271
|
+
skipText: {
|
|
272
|
+
color: "#fff",
|
|
273
|
+
fontSize: 16
|
|
274
|
+
},
|
|
275
|
+
bottomContainer: {
|
|
276
|
+
flexDirection: "row",
|
|
277
|
+
alignItems: "center",
|
|
278
|
+
marginHorizontal: 30,
|
|
279
|
+
paddingVertical: 30,
|
|
280
|
+
position: "absolute",
|
|
281
|
+
bottom: 20,
|
|
282
|
+
left: 0,
|
|
283
|
+
right: 0
|
|
284
|
+
},
|
|
285
|
+
itemContainer: {
|
|
286
|
+
flex: 1,
|
|
287
|
+
width: SCREEN_WIDTH,
|
|
288
|
+
justifyContent: "center",
|
|
289
|
+
alignItems: "center"
|
|
290
|
+
},
|
|
291
|
+
image: {
|
|
292
|
+
height: "100%",
|
|
293
|
+
width: "100%"
|
|
294
|
+
},
|
|
295
|
+
title: {
|
|
296
|
+
color: "#fff",
|
|
297
|
+
fontSize: 24,
|
|
298
|
+
fontWeight: "bold",
|
|
299
|
+
marginTop: 20,
|
|
300
|
+
textAlign: "center",
|
|
301
|
+
paddingHorizontal: 20
|
|
302
|
+
},
|
|
303
|
+
itemText: {
|
|
304
|
+
color: "#aaa",
|
|
305
|
+
fontSize: 16,
|
|
306
|
+
textAlign: "center",
|
|
307
|
+
paddingHorizontal: 30,
|
|
308
|
+
marginTop: 10,
|
|
309
|
+
marginBottom: 100
|
|
310
|
+
},
|
|
311
|
+
dot: {
|
|
312
|
+
marginHorizontal: 5,
|
|
313
|
+
borderRadius: 5
|
|
314
|
+
},
|
|
315
|
+
paginationContainer: {
|
|
316
|
+
flexDirection: "row",
|
|
317
|
+
alignItems: "center",
|
|
318
|
+
height: 40
|
|
319
|
+
},
|
|
320
|
+
buttonContainer: {
|
|
321
|
+
borderRadius: 100,
|
|
322
|
+
justifyContent: "center",
|
|
323
|
+
alignItems: "center",
|
|
324
|
+
overflow: "hidden",
|
|
325
|
+
padding: 10
|
|
326
|
+
},
|
|
327
|
+
buttonText: {
|
|
328
|
+
fontSize: 16,
|
|
329
|
+
fontWeight: "bold",
|
|
330
|
+
position: "absolute"
|
|
331
|
+
},
|
|
332
|
+
arrow: {
|
|
333
|
+
fontSize: 24,
|
|
334
|
+
position: "absolute",
|
|
335
|
+
color: "#fff"
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
var _default = exports.default = OnboardingScreen;
|
|
339
|
+
//# sourceMappingURL=OnboardingScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeReanimated","_expoImage","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","width","SCREEN_WIDTH","Dimensions","DEFAULT_THEME","dotActiveColor","dotInactiveColor","dotActiveWidth","dotHeight","buttonColor","buttonTextColor","buttonSize","buttonFinalWidth","buttonPosition","paginationPosition","backgroundColor","Dot","memo","index","x","theme","animatedDotStyle","useAnimatedStyle","interpolate","value","Extrapolation","CLAMP","opacity","colorStyle","interpolateColor","createElement","View","style","styles","dot","height","Pagination","data","position","justifyContent","paginationContainer","map","_","key","NextButton","flatListRef","flatListIndex","dataLength","onPress","buttonLabel","buttonAnimationStyle","withSpring","arrowStyle","withTiming","transform","translateX","textStyle","TouchableOpacity","current","scrollToIndex","buttonContainer","Text","buttonText","color","arrow","OnboardingScreen","props","containerStyle","showSkipButton","onSkip","skipLabel","renderItem","customRenderItem","mergedTheme","useAnimatedRef","useSharedValue","onViewableItemsChanged","useCallback","viewableItems","undefined","onScroll","useAnimatedScrollHandler","event","contentOffset","buttonJustify","renderListItem","item","DefaultRenderItem","container","skipButton","skipText","FlatList","ref","keyExtractor","id","toString","scrollEventThrottle","horizontal","bounces","pagingEnabled","showsHorizontalScrollIndicator","viewabilityConfig","minimumViewTime","viewAreaCoveragePercentThreshold","bottomContainer","flex","alignItems","length","animStyle","translateY","itemContainer","Image","source","image","contentFit","title","text","itemText","StyleSheet","create","top","right","zIndex","fontSize","flexDirection","marginHorizontal","paddingVertical","bottom","left","fontWeight","marginTop","textAlign","paddingHorizontal","marginBottom","borderRadius","overflow","padding","_default","exports"],"sourceRoot":"../../../src","sources":["components/OnboardingScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAaA,IAAAG,UAAA,GAAAH,OAAA;AAAmC,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GA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,QAAQ,EAAE;IACRtD,KAAK,EAAE,MAAM;IACb4D,QAAQ,EAAE,EAAE;IACZQ,SAAS,EAAE,QAAQ;IACnBC,iBAAiB,EAAE,EAAE;IACrBF,SAAS,EAAE,EAAE;IACbG,YAAY,EAAE;EAChB,CAAC;EACDnG,GAAG,EAAE;IACH2F,gBAAgB,EAAE,CAAC;IACnBS,YAAY,EAAE;EAChB,CAAC;EACD9F,mBAAmB,EAAE;IACnBoF,aAAa,EAAE,KAAK;IACpBlB,UAAU,EAAE,QAAQ;IACpBvE,MAAM,EAAE;EACV,CAAC;EACDyB,eAAe,EAAE;IACf0E,YAAY,EAAE,GAAG;IACjB/F,cAAc,EAAE,QAAQ;IACxBmE,UAAU,EAAE,QAAQ;IACpB6B,QAAQ,EAAE,QAAQ;IAClBC,OAAO,EAAE;EACX,CAAC;EACD1E,UAAU,EAAE;IACV6D,QAAQ,EAAE,EAAE;IACZM,UAAU,EAAE,MAAM;IAClB3F,QAAQ,EAAE;EACZ,CAAC;EACD0B,KAAK,EAAE;IACL2D,QAAQ,EAAE,EAAE;IACZrF,QAAQ,EAAE,UAAU;IACpByB,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAAC,IAAA0E,QAAA,GAAAC,OAAA,CAAAlJ,OAAA,GAEYyE,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/Pagination.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/RenderItem.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "OnboardingScreen", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _OnboardingScreen.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _OnboardingScreen = _interopRequireDefault(require("./components/OnboardingScreen"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_OnboardingScreen","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4E,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/Dot.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/NextButton.tsx"],"mappings":"","ignoreList":[]}
|