react-native-salespanda 0.1.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/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 lalit sangam and hritik
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # react-native-salespanda
2
+
3
+ sdk
4
+
5
+ ## Installation
6
+
7
+
8
+ ```sh
9
+ npm install react-native-salespanda
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+
16
+ ```js
17
+ import { multiply } from 'react-native-salespanda';
18
+
19
+ // ...
20
+
21
+ const result = multiply(3, 7);
22
+ ```
23
+
24
+
25
+ ## Contributing
26
+
27
+ - [Development workflow](CONTRIBUTING.md#development-workflow)
28
+ - [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
29
+ - [Code of conduct](CODE_OF_CONDUCT.md)
30
+
31
+ ## License
32
+
33
+ MIT
34
+
35
+ ---
36
+
37
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -0,0 +1,21 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "Salespanda"
7
+ s.version = package["version"]
8
+ s.summary = package["description"]
9
+ s.homepage = package["homepage"]
10
+ s.license = package["license"]
11
+ s.authors = package["author"]
12
+
13
+ s.platforms = { :ios => min_ios_version_supported }
14
+ s.source = { :git => "https://github.com/ntflabsdev/salespanda.git.git", :tag => "#{s.version}" }
15
+
16
+ s.source_files = "ios/**/*.{h,m,mm,cpp}"
17
+ s.private_header_files = "ios/**/*.h"
18
+
19
+
20
+ install_modules_dependencies(s)
21
+ end
@@ -0,0 +1,77 @@
1
+ buildscript {
2
+ ext.getExtOrDefault = {name ->
3
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Salespanda_' + name]
4
+ }
5
+
6
+ repositories {
7
+ google()
8
+ mavenCentral()
9
+ }
10
+
11
+ dependencies {
12
+ classpath "com.android.tools.build:gradle:8.7.2"
13
+ // noinspection DifferentKotlinGradleVersion
14
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
15
+ }
16
+ }
17
+
18
+
19
+ apply plugin: "com.android.library"
20
+ apply plugin: "kotlin-android"
21
+
22
+ apply plugin: "com.facebook.react"
23
+
24
+ def getExtOrIntegerDefault(name) {
25
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Salespanda_" + name]).toInteger()
26
+ }
27
+
28
+ android {
29
+ namespace "com.salespanda"
30
+
31
+ compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
32
+
33
+ defaultConfig {
34
+ minSdkVersion getExtOrIntegerDefault("minSdkVersion")
35
+ targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
36
+ }
37
+
38
+ buildFeatures {
39
+ buildConfig true
40
+ }
41
+
42
+ buildTypes {
43
+ release {
44
+ minifyEnabled false
45
+ }
46
+ }
47
+
48
+ lintOptions {
49
+ disable "GradleCompatible"
50
+ }
51
+
52
+ compileOptions {
53
+ sourceCompatibility JavaVersion.VERSION_1_8
54
+ targetCompatibility JavaVersion.VERSION_1_8
55
+ }
56
+
57
+ sourceSets {
58
+ main {
59
+ java.srcDirs += [
60
+ "generated/java",
61
+ "generated/jni"
62
+ ]
63
+ }
64
+ }
65
+ }
66
+
67
+ repositories {
68
+ mavenCentral()
69
+ google()
70
+ }
71
+
72
+ def kotlin_version = getExtOrDefault("kotlinVersion")
73
+
74
+ dependencies {
75
+ implementation "com.facebook.react:react-android"
76
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
77
+ }
@@ -0,0 +1,5 @@
1
+ Salespanda_kotlinVersion=2.0.21
2
+ Salespanda_minSdkVersion=24
3
+ Salespanda_targetSdkVersion=34
4
+ Salespanda_compileSdkVersion=35
5
+ Salespanda_ndkVersion=27.1.12297006
@@ -0,0 +1,2 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ </manifest>
@@ -0,0 +1,23 @@
1
+ package com.salespanda
2
+
3
+ import com.facebook.react.bridge.ReactApplicationContext
4
+ import com.facebook.react.module.annotations.ReactModule
5
+
6
+ @ReactModule(name = SalespandaModule.NAME)
7
+ class SalespandaModule(reactContext: ReactApplicationContext) :
8
+ NativeSalespandaSpec(reactContext) {
9
+
10
+ override fun getName(): String {
11
+ return NAME
12
+ }
13
+
14
+ // Example method
15
+ // See https://reactnative.dev/docs/native-modules-android
16
+ override fun multiply(a: Double, b: Double): Double {
17
+ return a * b
18
+ }
19
+
20
+ companion object {
21
+ const val NAME = "Salespanda"
22
+ }
23
+ }
@@ -0,0 +1,33 @@
1
+ package com.salespanda
2
+
3
+ import com.facebook.react.BaseReactPackage
4
+ import com.facebook.react.bridge.NativeModule
5
+ import com.facebook.react.bridge.ReactApplicationContext
6
+ import com.facebook.react.module.model.ReactModuleInfo
7
+ import com.facebook.react.module.model.ReactModuleInfoProvider
8
+ import java.util.HashMap
9
+
10
+ class SalespandaPackage : BaseReactPackage() {
11
+ override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
12
+ return if (name == SalespandaModule.NAME) {
13
+ SalespandaModule(reactContext)
14
+ } else {
15
+ null
16
+ }
17
+ }
18
+
19
+ override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
20
+ return ReactModuleInfoProvider {
21
+ val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
22
+ moduleInfos[SalespandaModule.NAME] = ReactModuleInfo(
23
+ SalespandaModule.NAME,
24
+ SalespandaModule.NAME,
25
+ false, // canOverrideExistingModule
26
+ false, // needsEagerInit
27
+ false, // isCxxModule
28
+ true // isTurboModule
29
+ )
30
+ moduleInfos
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,5 @@
1
+ #import <SalespandaSpec/SalespandaSpec.h>
2
+
3
+ @interface Salespanda : NSObject <NativeSalespandaSpec>
4
+
5
+ @end
@@ -0,0 +1,21 @@
1
+ #import "Salespanda.h"
2
+
3
+ @implementation Salespanda
4
+ - (NSNumber *)multiply:(double)a b:(double)b {
5
+ NSNumber *result = @(a * b);
6
+
7
+ return result;
8
+ }
9
+
10
+ - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
11
+ (const facebook::react::ObjCTurboModule::InitParams &)params
12
+ {
13
+ return std::make_shared<facebook::react::NativeSalespandaSpecJSI>(params);
14
+ }
15
+
16
+ + (NSString *)moduleName
17
+ {
18
+ return @"Salespanda";
19
+ }
20
+
21
+ @end
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ import { TurboModuleRegistry } from 'react-native';
4
+ export default TurboModuleRegistry.getEnforcing('Salespanda');
5
+ //# sourceMappingURL=NativeSalespanda.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeSalespanda.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;AAMpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,YAAY,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ import Salespanda from "./NativeSalespanda.js";
4
+ export function multiply(a, b) {
5
+ return Salespanda.multiply(a, b);
6
+ }
7
+
8
+ // Export screens
9
+ export { default as HomeScreen } from "./screens/HomeScreen.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Salespanda","multiply","a","b","default","HomeScreen"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,UAAU,MAAM,uBAAoB;AAE3C,OAAO,SAASC,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAU;EACrD,OAAOH,UAAU,CAACC,QAAQ,CAACC,CAAC,EAAEC,CAAC,CAAC;AAClC;;AAEA;AACA,SAASC,OAAO,IAAIC,UAAU,QAAQ,yBAAsB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,310 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { View, Text, StyleSheet, TouchableOpacity, ScrollView, Image, SafeAreaView } from 'react-native';
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ const MenuItem = ({
7
+ title,
8
+ icon,
9
+ onPress
10
+ }) => {
11
+ return /*#__PURE__*/_jsxs(TouchableOpacity, {
12
+ style: styles.menuItem,
13
+ onPress: onPress,
14
+ children: [/*#__PURE__*/_jsx(View, {
15
+ style: styles.iconContainer,
16
+ children: /*#__PURE__*/_jsx(Text, {
17
+ style: styles.iconText,
18
+ children: icon
19
+ })
20
+ }), /*#__PURE__*/_jsx(Text, {
21
+ style: styles.menuItemText,
22
+ children: title
23
+ })]
24
+ });
25
+ };
26
+ export default function HomeScreen() {
27
+ return /*#__PURE__*/_jsxs(SafeAreaView, {
28
+ style: styles.container,
29
+ children: [/*#__PURE__*/_jsxs(View, {
30
+ style: styles.header,
31
+ children: [/*#__PURE__*/_jsx(TouchableOpacity, {
32
+ style: styles.menuButton,
33
+ children: /*#__PURE__*/_jsx(Text, {
34
+ style: styles.menuIcon,
35
+ children: "\u2630"
36
+ })
37
+ }), /*#__PURE__*/_jsx(Text, {
38
+ style: styles.headerTitle,
39
+ children: "Home Page"
40
+ }), /*#__PURE__*/_jsx(Image, {
41
+ source: {
42
+ uri: 'https://via.placeholder.com/40x40'
43
+ },
44
+ style: styles.logo
45
+ })]
46
+ }), /*#__PURE__*/_jsxs(ScrollView, {
47
+ style: styles.scrollView,
48
+ children: [/*#__PURE__*/_jsxs(View, {
49
+ style: styles.banner,
50
+ children: [/*#__PURE__*/_jsxs(View, {
51
+ style: styles.bannerContent,
52
+ children: [/*#__PURE__*/_jsxs(Text, {
53
+ style: styles.bannerText,
54
+ children: ["Build strong relationships,", '\n', "improve relations & productivity", '\n', "by having conversations on", '\n', "WhatsAppppppppp."]
55
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
56
+ style: styles.startButton,
57
+ children: /*#__PURE__*/_jsx(Text, {
58
+ style: styles.startButtonText,
59
+ children: "Start Sharing \u2192"
60
+ })
61
+ })]
62
+ }), /*#__PURE__*/_jsx(View, {
63
+ style: styles.whatsappIconContainer,
64
+ children: /*#__PURE__*/_jsx(View, {
65
+ style: styles.whatsappIcon,
66
+ children: /*#__PURE__*/_jsx(Text, {
67
+ style: styles.whatsappText,
68
+ children: "\uD83D\uDCF1"
69
+ })
70
+ })
71
+ })]
72
+ }), /*#__PURE__*/_jsxs(View, {
73
+ style: styles.carouselIndicators,
74
+ children: [/*#__PURE__*/_jsx(View, {
75
+ style: [styles.indicator, styles.activeIndicator]
76
+ }), /*#__PURE__*/_jsx(View, {
77
+ style: styles.indicator
78
+ }), /*#__PURE__*/_jsx(View, {
79
+ style: styles.indicator
80
+ })]
81
+ }), /*#__PURE__*/_jsxs(View, {
82
+ style: styles.menuGrid,
83
+ children: [/*#__PURE__*/_jsx(MenuItem, {
84
+ title: "Content Library",
85
+ icon: "\uD83D\uDCDA"
86
+ }), /*#__PURE__*/_jsx(MenuItem, {
87
+ title: "Buy Now",
88
+ icon: "\uD83D\uDED2"
89
+ }), /*#__PURE__*/_jsx(MenuItem, {
90
+ title: "Quiz & Calculator",
91
+ icon: "\uD83E\uDDEE"
92
+ }), /*#__PURE__*/_jsx(MenuItem, {
93
+ title: "Social Setup",
94
+ icon: "\uD83D\uDCE2"
95
+ }), /*#__PURE__*/_jsx(MenuItem, {
96
+ title: "Microsite Setup",
97
+ icon: "\u2699\uFE0F"
98
+ }), /*#__PURE__*/_jsx(MenuItem, {
99
+ title: "Proposal",
100
+ icon: "\uD83D\uDCCB"
101
+ }), /*#__PURE__*/_jsx(MenuItem, {
102
+ title: "Email Campaign",
103
+ icon: "\uD83D\uDCE7"
104
+ }), /*#__PURE__*/_jsx(MenuItem, {
105
+ title: "View Microsite",
106
+ icon: "\uD83C\uDFB5"
107
+ }), /*#__PURE__*/_jsx(MenuItem, {
108
+ title: "Import Contact",
109
+ icon: "\uD83D\uDCC4"
110
+ }), /*#__PURE__*/_jsx(MenuItem, {
111
+ title: "Poster Of The Week",
112
+ icon: "\uD83D\uDDBC\uFE0F"
113
+ }), /*#__PURE__*/_jsx(MenuItem, {
114
+ title: "DigiCard",
115
+ icon: "\uD83D\uDC64"
116
+ }), /*#__PURE__*/_jsx(MenuItem, {
117
+ title: "Help Videos",
118
+ icon: "\u2753"
119
+ })]
120
+ })]
121
+ }), /*#__PURE__*/_jsxs(View, {
122
+ style: styles.bottomNav,
123
+ children: [/*#__PURE__*/_jsx(TouchableOpacity, {
124
+ style: styles.navItem,
125
+ children: /*#__PURE__*/_jsx(Text, {
126
+ style: styles.navIcon,
127
+ children: "\uD83C\uDFE0"
128
+ })
129
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
130
+ style: styles.navItem,
131
+ children: /*#__PURE__*/_jsx(Text, {
132
+ style: styles.navIcon,
133
+ children: "\uD83D\uDC8E"
134
+ })
135
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
136
+ style: styles.navItem,
137
+ children: /*#__PURE__*/_jsx(Text, {
138
+ style: styles.navIcon,
139
+ children: "\uD83D\uDD14"
140
+ })
141
+ }), /*#__PURE__*/_jsx(TouchableOpacity, {
142
+ style: styles.navItem,
143
+ children: /*#__PURE__*/_jsx(Text, {
144
+ style: styles.navIcon,
145
+ children: "\uD83D\uDCCA"
146
+ })
147
+ })]
148
+ })]
149
+ });
150
+ }
151
+ const styles = StyleSheet.create({
152
+ container: {
153
+ flex: 1,
154
+ backgroundColor: '#fff'
155
+ },
156
+ header: {
157
+ flexDirection: 'row',
158
+ alignItems: 'center',
159
+ justifyContent: 'space-between',
160
+ padding: 16,
161
+ backgroundColor: '#fff',
162
+ borderBottomWidth: 1,
163
+ borderBottomColor: '#e0e0e0'
164
+ },
165
+ menuButton: {
166
+ padding: 4
167
+ },
168
+ menuIcon: {
169
+ fontSize: 24,
170
+ color: '#333'
171
+ },
172
+ headerTitle: {
173
+ fontSize: 18,
174
+ fontWeight: '600',
175
+ color: '#333'
176
+ },
177
+ logo: {
178
+ width: 40,
179
+ height: 40,
180
+ borderRadius: 20
181
+ },
182
+ scrollView: {
183
+ flex: 1
184
+ },
185
+ banner: {
186
+ backgroundColor: '#4a148c',
187
+ margin: 16,
188
+ borderRadius: 16,
189
+ padding: 20,
190
+ flexDirection: 'row',
191
+ justifyContent: 'space-between',
192
+ alignItems: 'center',
193
+ minHeight: 180
194
+ },
195
+ bannerContent: {
196
+ flex: 1
197
+ },
198
+ bannerText: {
199
+ color: '#fff',
200
+ fontSize: 14,
201
+ lineHeight: 20,
202
+ marginBottom: 16
203
+ },
204
+ startButton: {
205
+ backgroundColor: 'transparent',
206
+ borderWidth: 1,
207
+ borderColor: '#fff',
208
+ borderRadius: 20,
209
+ paddingVertical: 8,
210
+ paddingHorizontal: 16,
211
+ alignSelf: 'flex-start'
212
+ },
213
+ startButtonText: {
214
+ color: '#fff',
215
+ fontSize: 12,
216
+ fontWeight: '600'
217
+ },
218
+ whatsappIconContainer: {
219
+ marginLeft: 16
220
+ },
221
+ whatsappIcon: {
222
+ width: 80,
223
+ height: 80,
224
+ borderRadius: 40,
225
+ backgroundColor: '#25D366',
226
+ justifyContent: 'center',
227
+ alignItems: 'center'
228
+ },
229
+ whatsappText: {
230
+ fontSize: 40
231
+ },
232
+ carouselIndicators: {
233
+ flexDirection: 'row',
234
+ justifyContent: 'center',
235
+ alignItems: 'center',
236
+ marginVertical: 16
237
+ },
238
+ indicator: {
239
+ width: 8,
240
+ height: 8,
241
+ borderRadius: 4,
242
+ backgroundColor: '#d0d0d0',
243
+ marginHorizontal: 4
244
+ },
245
+ activeIndicator: {
246
+ backgroundColor: '#4a148c',
247
+ width: 24
248
+ },
249
+ menuGrid: {
250
+ flexDirection: 'row',
251
+ flexWrap: 'wrap',
252
+ padding: 8,
253
+ justifyContent: 'space-between'
254
+ },
255
+ menuItem: {
256
+ width: '31%',
257
+ aspectRatio: 1,
258
+ backgroundColor: '#fff',
259
+ borderRadius: 16,
260
+ padding: 12,
261
+ marginBottom: 12,
262
+ alignItems: 'center',
263
+ justifyContent: 'center',
264
+ shadowColor: '#000',
265
+ shadowOffset: {
266
+ width: 0,
267
+ height: 2
268
+ },
269
+ shadowOpacity: 0.1,
270
+ shadowRadius: 4,
271
+ elevation: 3,
272
+ borderWidth: 1,
273
+ borderColor: '#f0f0f0'
274
+ },
275
+ iconContainer: {
276
+ width: 50,
277
+ height: 50,
278
+ borderRadius: 25,
279
+ backgroundColor: '#f5f5f5',
280
+ justifyContent: 'center',
281
+ alignItems: 'center',
282
+ marginBottom: 8
283
+ },
284
+ iconText: {
285
+ fontSize: 24
286
+ },
287
+ menuItemText: {
288
+ fontSize: 11,
289
+ textAlign: 'center',
290
+ color: '#333',
291
+ fontWeight: '500'
292
+ },
293
+ bottomNav: {
294
+ flexDirection: 'row',
295
+ backgroundColor: '#fff',
296
+ borderTopWidth: 1,
297
+ borderTopColor: '#e0e0e0',
298
+ paddingVertical: 8,
299
+ justifyContent: 'space-around'
300
+ },
301
+ navItem: {
302
+ flex: 1,
303
+ alignItems: 'center',
304
+ paddingVertical: 8
305
+ },
306
+ navIcon: {
307
+ fontSize: 24
308
+ }
309
+ });
310
+ //# sourceMappingURL=HomeScreen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Text","StyleSheet","TouchableOpacity","ScrollView","Image","SafeAreaView","jsx","_jsx","jsxs","_jsxs","MenuItem","title","icon","onPress","style","styles","menuItem","children","iconContainer","iconText","menuItemText","HomeScreen","container","header","menuButton","menuIcon","headerTitle","source","uri","logo","scrollView","banner","bannerContent","bannerText","startButton","startButtonText","whatsappIconContainer","whatsappIcon","whatsappText","carouselIndicators","indicator","activeIndicator","menuGrid","bottomNav","navItem","navIcon","create","flex","backgroundColor","flexDirection","alignItems","justifyContent","padding","borderBottomWidth","borderBottomColor","fontSize","color","fontWeight","width","height","borderRadius","margin","minHeight","lineHeight","marginBottom","borderWidth","borderColor","paddingVertical","paddingHorizontal","alignSelf","marginLeft","marginVertical","marginHorizontal","flexWrap","aspectRatio","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","textAlign","borderTopWidth","borderTopColor"],"sourceRoot":"../../../src","sources":["screens/HomeScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,EACVC,gBAAgB,EAChBC,UAAU,EACVC,KAAK,EACLC,YAAY,QACP,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQtB,MAAMC,QAAiC,GAAGA,CAAC;EAAEC,KAAK;EAAEC,IAAI;EAAEC;AAAQ,CAAC,KAAK;EACtE,oBACEJ,KAAA,CAACP,gBAAgB;IAACY,KAAK,EAAEC,MAAM,CAACC,QAAS;IAACH,OAAO,EAAEA,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U,EAAE;EACd,CAAC;EACDd,SAAS,EAAE;IACTM,aAAa,EAAE,KAAK;IACpBD,eAAe,EAAE,MAAM;IACvBiC,cAAc,EAAE,CAAC;IACjBC,cAAc,EAAE,SAAS;IACzBf,eAAe,EAAE,CAAC;IAClBhB,cAAc,EAAE;EAClB,CAAC;EACDP,OAAO,EAAE;IACPG,IAAI,EAAE,CAAC;IACPG,UAAU,EAAE,QAAQ;IACpBiB,eAAe,EAAE;EACnB,CAAC;EACDtB,OAAO,EAAE;IACPU,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,7 @@
1
+ import { type TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ multiply(a: number, b: number): number;
4
+ }
5
+ declare const _default: Spec;
6
+ export default _default;
7
+ //# sourceMappingURL=NativeSalespanda.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeSalespanda.d.ts","sourceRoot":"","sources":["../../../src/NativeSalespanda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC;;AAED,wBAAoE"}
@@ -0,0 +1,3 @@
1
+ export declare function multiply(a: number, b: number): number;
2
+ export { default as HomeScreen } from './screens/HomeScreen';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD;AAGD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export default function HomeScreen(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=HomeScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HomeScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/HomeScreen.tsx"],"names":[],"mappings":"AA4BA,MAAM,CAAC,OAAO,UAAU,UAAU,4CAgFjC"}
package/package.json ADDED
@@ -0,0 +1,164 @@
1
+ {
2
+ "name": "react-native-salespanda",
3
+ "version": "0.1.0",
4
+ "description": "sdk",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "src",
17
+ "lib",
18
+ "android",
19
+ "ios",
20
+ "cpp",
21
+ "*.podspec",
22
+ "react-native.config.js",
23
+ "!ios/build",
24
+ "!android/build",
25
+ "!android/gradle",
26
+ "!android/gradlew",
27
+ "!android/gradlew.bat",
28
+ "!android/local.properties",
29
+ "!**/__tests__",
30
+ "!**/__fixtures__",
31
+ "!**/__mocks__",
32
+ "!**/.*"
33
+ ],
34
+ "scripts": {
35
+ "example": "yarn workspace react-native-salespanda-example",
36
+ "test": "jest",
37
+ "typecheck": "tsc",
38
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
39
+ "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
40
+ "prepare": "bob build",
41
+ "release": "release-it --only-version"
42
+ },
43
+ "keywords": [
44
+ "react-native",
45
+ "ios",
46
+ "android"
47
+ ],
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/ntflabsdev/salespanda.git.git"
51
+ },
52
+ "author": "lalit sangam and hritik <lalit.patidar.nl@gmail.com> (https://skillions.in/)",
53
+ "license": "MIT",
54
+ "bugs": {
55
+ "url": "https://github.com/ntflabsdev/salespanda.git/issues"
56
+ },
57
+ "homepage": "https://github.com/ntflabsdev/salespanda.git#readme",
58
+ "publishConfig": {
59
+ "registry": "https://registry.npmjs.org/"
60
+ },
61
+ "devDependencies": {
62
+ "@commitlint/config-conventional": "^19.8.1",
63
+ "@eslint/compat": "^1.3.2",
64
+ "@eslint/eslintrc": "^3.3.1",
65
+ "@eslint/js": "^9.35.0",
66
+ "@evilmartians/lefthook": "^1.12.3",
67
+ "@react-native-community/cli": "20.0.1",
68
+ "@react-native/babel-preset": "0.81.1",
69
+ "@react-native/eslint-config": "^0.81.1",
70
+ "@release-it/conventional-changelog": "^10.0.1",
71
+ "@types/jest": "^29.5.14",
72
+ "@types/react": "^19.1.0",
73
+ "commitlint": "^19.8.1",
74
+ "del-cli": "^6.0.0",
75
+ "eslint": "^9.35.0",
76
+ "eslint-config-prettier": "^10.1.8",
77
+ "eslint-plugin-prettier": "^5.5.4",
78
+ "jest": "^29.7.0",
79
+ "prettier": "^3.6.2",
80
+ "react": "19.1.0",
81
+ "react-native": "0.81.1",
82
+ "react-native-builder-bob": "^0.40.13",
83
+ "release-it": "^19.0.4",
84
+ "turbo": "^2.5.6",
85
+ "typescript": "^5.9.2"
86
+ },
87
+ "peerDependencies": {
88
+ "react": "*",
89
+ "react-native": "*"
90
+ },
91
+ "workspaces": [
92
+ "example"
93
+ ],
94
+ "packageManager": "yarn@3.6.1",
95
+ "jest": {
96
+ "preset": "react-native",
97
+ "modulePathIgnorePatterns": [
98
+ "<rootDir>/example/node_modules",
99
+ "<rootDir>/lib/"
100
+ ]
101
+ },
102
+ "commitlint": {
103
+ "extends": [
104
+ "@commitlint/config-conventional"
105
+ ]
106
+ },
107
+ "release-it": {
108
+ "git": {
109
+ "commitMessage": "chore: release ${version}",
110
+ "tagName": "v${version}"
111
+ },
112
+ "npm": {
113
+ "publish": true
114
+ },
115
+ "github": {
116
+ "release": true
117
+ },
118
+ "plugins": {
119
+ "@release-it/conventional-changelog": {
120
+ "preset": {
121
+ "name": "angular"
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "prettier": {
127
+ "quoteProps": "consistent",
128
+ "singleQuote": true,
129
+ "tabWidth": 2,
130
+ "trailingComma": "es5",
131
+ "useTabs": false
132
+ },
133
+ "react-native-builder-bob": {
134
+ "source": "src",
135
+ "output": "lib",
136
+ "targets": [
137
+ [
138
+ "module",
139
+ {
140
+ "esm": true
141
+ }
142
+ ],
143
+ [
144
+ "typescript",
145
+ {
146
+ "project": "tsconfig.build.json"
147
+ }
148
+ ]
149
+ ]
150
+ },
151
+ "codegenConfig": {
152
+ "name": "SalespandaSpec",
153
+ "type": "modules",
154
+ "jsSrcsDir": "src",
155
+ "android": {
156
+ "javaPackageName": "com.salespanda"
157
+ }
158
+ },
159
+ "create-react-native-library": {
160
+ "languages": "kotlin-objc",
161
+ "type": "turbo-module",
162
+ "version": "0.54.8"
163
+ }
164
+ }
@@ -0,0 +1,7 @@
1
+ import { TurboModuleRegistry, type TurboModule } from 'react-native';
2
+
3
+ export interface Spec extends TurboModule {
4
+ multiply(a: number, b: number): number;
5
+ }
6
+
7
+ export default TurboModuleRegistry.getEnforcing<Spec>('Salespanda');
package/src/index.tsx ADDED
@@ -0,0 +1,8 @@
1
+ import Salespanda from './NativeSalespanda';
2
+
3
+ export function multiply(a: number, b: number): number {
4
+ return Salespanda.multiply(a, b);
5
+ }
6
+
7
+ // Export screens
8
+ export { default as HomeScreen } from './screens/HomeScreen';
@@ -0,0 +1,266 @@
1
+ import React from 'react';
2
+ import {
3
+ View,
4
+ Text,
5
+ StyleSheet,
6
+ TouchableOpacity,
7
+ ScrollView,
8
+ Image,
9
+ SafeAreaView,
10
+ } from 'react-native';
11
+
12
+ interface MenuItemProps {
13
+ title: string;
14
+ icon: string;
15
+ onPress?: () => void;
16
+ }
17
+
18
+ const MenuItem: React.FC<MenuItemProps> = ({ title, icon, onPress }) => {
19
+ return (
20
+ <TouchableOpacity style={styles.menuItem} onPress={onPress}>
21
+ <View style={styles.iconContainer}>
22
+ <Text style={styles.iconText}>{icon}</Text>
23
+ </View>
24
+ <Text style={styles.menuItemText}>{title}</Text>
25
+ </TouchableOpacity>
26
+ );
27
+ };
28
+
29
+ export default function HomeScreen() {
30
+ return (
31
+ <SafeAreaView style={styles.container}>
32
+ {/* Header */}
33
+ <View style={styles.header}>
34
+ <TouchableOpacity style={styles.menuButton}>
35
+ <Text style={styles.menuIcon}>☰</Text>
36
+ </TouchableOpacity>
37
+ <Text style={styles.headerTitle}>Home Page</Text>
38
+ <Image
39
+ source={{ uri: 'https://via.placeholder.com/40x40' }}
40
+ style={styles.logo}
41
+ />
42
+ </View>
43
+
44
+ <ScrollView style={styles.scrollView}>
45
+ {/* WhatsApp Banner */}
46
+ <View style={styles.banner}>
47
+ <View style={styles.bannerContent}>
48
+ <Text style={styles.bannerText}>
49
+ Build strong relationships,{'\n'}
50
+ improve relations & productivity{'\n'}
51
+ by having conversations on{'\n'}
52
+ WhatsAppppppppp.
53
+ </Text>
54
+ <TouchableOpacity style={styles.startButton}>
55
+ <Text style={styles.startButtonText}>Start Sharing →</Text>
56
+ </TouchableOpacity>
57
+ </View>
58
+ <View style={styles.whatsappIconContainer}>
59
+ <View style={styles.whatsappIcon}>
60
+ <Text style={styles.whatsappText}>📱</Text>
61
+ </View>
62
+ </View>
63
+ </View>
64
+
65
+ {/* Carousel Indicators */}
66
+ <View style={styles.carouselIndicators}>
67
+ <View style={[styles.indicator, styles.activeIndicator]} />
68
+ <View style={styles.indicator} />
69
+ <View style={styles.indicator} />
70
+ </View>
71
+
72
+ {/* Menu Grid */}
73
+ <View style={styles.menuGrid}>
74
+ <MenuItem title="Content Library" icon="📚" />
75
+ <MenuItem title="Buy Now" icon="🛒" />
76
+ <MenuItem title="Quiz & Calculator" icon="🧮" />
77
+
78
+ <MenuItem title="Social Setup" icon="📢" />
79
+ <MenuItem title="Microsite Setup" icon="⚙️" />
80
+ <MenuItem title="Proposal" icon="📋" />
81
+
82
+ <MenuItem title="Email Campaign" icon="📧" />
83
+ <MenuItem title="View Microsite" icon="🎵" />
84
+ <MenuItem title="Import Contact" icon="📄" />
85
+
86
+ <MenuItem title="Poster Of The Week" icon="🖼️" />
87
+ <MenuItem title="DigiCard" icon="👤" />
88
+ <MenuItem title="Help Videos" icon="❓" />
89
+ </View>
90
+ </ScrollView>
91
+
92
+ {/* Bottom Navigation */}
93
+ <View style={styles.bottomNav}>
94
+ <TouchableOpacity style={styles.navItem}>
95
+ <Text style={styles.navIcon}>🏠</Text>
96
+ </TouchableOpacity>
97
+ <TouchableOpacity style={styles.navItem}>
98
+ <Text style={styles.navIcon}>💎</Text>
99
+ </TouchableOpacity>
100
+ <TouchableOpacity style={styles.navItem}>
101
+ <Text style={styles.navIcon}>🔔</Text>
102
+ </TouchableOpacity>
103
+ <TouchableOpacity style={styles.navItem}>
104
+ <Text style={styles.navIcon}>📊</Text>
105
+ </TouchableOpacity>
106
+ </View>
107
+ </SafeAreaView>
108
+ );
109
+ }
110
+
111
+ const styles = StyleSheet.create({
112
+ container: {
113
+ flex: 1,
114
+ backgroundColor: '#fff',
115
+ },
116
+ header: {
117
+ flexDirection: 'row',
118
+ alignItems: 'center',
119
+ justifyContent: 'space-between',
120
+ padding: 16,
121
+ backgroundColor: '#fff',
122
+ borderBottomWidth: 1,
123
+ borderBottomColor: '#e0e0e0',
124
+ },
125
+ menuButton: {
126
+ padding: 4,
127
+ },
128
+ menuIcon: {
129
+ fontSize: 24,
130
+ color: '#333',
131
+ },
132
+ headerTitle: {
133
+ fontSize: 18,
134
+ fontWeight: '600',
135
+ color: '#333',
136
+ },
137
+ logo: {
138
+ width: 40,
139
+ height: 40,
140
+ borderRadius: 20,
141
+ },
142
+ scrollView: {
143
+ flex: 1,
144
+ },
145
+ banner: {
146
+ backgroundColor: '#4a148c',
147
+ margin: 16,
148
+ borderRadius: 16,
149
+ padding: 20,
150
+ flexDirection: 'row',
151
+ justifyContent: 'space-between',
152
+ alignItems: 'center',
153
+ minHeight: 180,
154
+ },
155
+ bannerContent: {
156
+ flex: 1,
157
+ },
158
+ bannerText: {
159
+ color: '#fff',
160
+ fontSize: 14,
161
+ lineHeight: 20,
162
+ marginBottom: 16,
163
+ },
164
+ startButton: {
165
+ backgroundColor: 'transparent',
166
+ borderWidth: 1,
167
+ borderColor: '#fff',
168
+ borderRadius: 20,
169
+ paddingVertical: 8,
170
+ paddingHorizontal: 16,
171
+ alignSelf: 'flex-start',
172
+ },
173
+ startButtonText: {
174
+ color: '#fff',
175
+ fontSize: 12,
176
+ fontWeight: '600',
177
+ },
178
+ whatsappIconContainer: {
179
+ marginLeft: 16,
180
+ },
181
+ whatsappIcon: {
182
+ width: 80,
183
+ height: 80,
184
+ borderRadius: 40,
185
+ backgroundColor: '#25D366',
186
+ justifyContent: 'center',
187
+ alignItems: 'center',
188
+ },
189
+ whatsappText: {
190
+ fontSize: 40,
191
+ },
192
+ carouselIndicators: {
193
+ flexDirection: 'row',
194
+ justifyContent: 'center',
195
+ alignItems: 'center',
196
+ marginVertical: 16,
197
+ },
198
+ indicator: {
199
+ width: 8,
200
+ height: 8,
201
+ borderRadius: 4,
202
+ backgroundColor: '#d0d0d0',
203
+ marginHorizontal: 4,
204
+ },
205
+ activeIndicator: {
206
+ backgroundColor: '#4a148c',
207
+ width: 24,
208
+ },
209
+ menuGrid: {
210
+ flexDirection: 'row',
211
+ flexWrap: 'wrap',
212
+ padding: 8,
213
+ justifyContent: 'space-between',
214
+ },
215
+ menuItem: {
216
+ width: '31%',
217
+ aspectRatio: 1,
218
+ backgroundColor: '#fff',
219
+ borderRadius: 16,
220
+ padding: 12,
221
+ marginBottom: 12,
222
+ alignItems: 'center',
223
+ justifyContent: 'center',
224
+ shadowColor: '#000',
225
+ shadowOffset: { width: 0, height: 2 },
226
+ shadowOpacity: 0.1,
227
+ shadowRadius: 4,
228
+ elevation: 3,
229
+ borderWidth: 1,
230
+ borderColor: '#f0f0f0',
231
+ },
232
+ iconContainer: {
233
+ width: 50,
234
+ height: 50,
235
+ borderRadius: 25,
236
+ backgroundColor: '#f5f5f5',
237
+ justifyContent: 'center',
238
+ alignItems: 'center',
239
+ marginBottom: 8,
240
+ },
241
+ iconText: {
242
+ fontSize: 24,
243
+ },
244
+ menuItemText: {
245
+ fontSize: 11,
246
+ textAlign: 'center',
247
+ color: '#333',
248
+ fontWeight: '500',
249
+ },
250
+ bottomNav: {
251
+ flexDirection: 'row',
252
+ backgroundColor: '#fff',
253
+ borderTopWidth: 1,
254
+ borderTopColor: '#e0e0e0',
255
+ paddingVertical: 8,
256
+ justifyContent: 'space-around',
257
+ },
258
+ navItem: {
259
+ flex: 1,
260
+ alignItems: 'center',
261
+ paddingVertical: 8,
262
+ },
263
+ navIcon: {
264
+ fontSize: 24,
265
+ },
266
+ });