@whatmore-repo/whatmore-reactnative-sdk 1.0.10 → 1.0.11
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/commands.txt +12 -19
- package/package.json +1 -1
- package/src/components/commons/AppMuteUnmuteIcon.js +2 -2
- package/src/components/cta-buttons/AddToCartButton.jsx +3 -3
- /package/src/{icons → components/icons}/icon-components/CartIcon.jsx +0 -0
- /package/src/{icons → components/icons}/icon-components/LoadingIcon.jsx +0 -0
- /package/src/{icons → components/icons}/icon-components/MuteIcon.jsx +0 -0
- /package/src/{icons → components/icons}/icon-components/PlusIcon.jsx +0 -0
- /package/src/{icons → components/icons}/icon-components/UnmuteIcon.jsx +0 -0
- /package/src/{icons → components/icons}/svg-utils.txt +0 -0
package/commands.txt
CHANGED
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
##
|
|
2
|
-
npm start --reset-cache
|
|
3
|
-
npm run android
|
|
4
|
-
|
|
5
|
-
## nvm usage
|
|
1
|
+
## nvm
|
|
6
2
|
nvm install ^16.0.0
|
|
7
3
|
nvm list
|
|
8
4
|
nvm use 16.0.0
|
|
9
5
|
nvm use 14.19.3
|
|
10
6
|
|
|
7
|
+
## npm install
|
|
8
|
+
rmdir /s /q node_modules
|
|
9
|
+
npm cache clean --force
|
|
10
|
+
npm install | npm install --legacy-peer-deps
|
|
11
|
+
npm link ./whatmore-reactnative-sdk
|
|
12
|
+
|
|
11
13
|
## Starting android emulator
|
|
12
14
|
cd C:\Users\shyam\AppData\Local\Android\Sdk\emulator
|
|
13
15
|
emulator -list-avds
|
|
16
|
+
emulator -avd Pixel_6_API_33 -wipe-data
|
|
14
17
|
emulator -avd Pixel_6_API_33
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## Starting adb
|
|
18
|
-
set ADB_TRACE=1
|
|
18
|
+
adb devices -> make sure the emulator is not offline
|
|
19
19
|
adb start-server
|
|
20
20
|
adb kill-server
|
|
21
21
|
|
|
22
|
+
## starting server
|
|
23
|
+
npm start --reset-cache
|
|
24
|
+
npm run android
|
|
22
25
|
|
|
23
26
|
## publishing npm package
|
|
24
27
|
npm publish --access public
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
## Clear cache and reinstall
|
|
28
|
-
rmdir /s /q node_modules
|
|
29
|
-
del /F /Q package-lock.json
|
|
30
|
-
npm cache clean --force
|
|
31
|
-
npm install
|
|
32
|
-
npm link ./whatmore-reactnative-sdk
|
|
33
|
-
|
|
34
|
-
|
|
35
29
|
# Windows
|
|
36
30
|
## Stop process at port
|
|
37
31
|
netstat -ano | findstr :19000
|
|
@@ -41,6 +35,5 @@ taskkill /PID 4584 /F
|
|
|
41
35
|
rmdir /s /q folder-name
|
|
42
36
|
del /F /Q package-lock.json
|
|
43
37
|
|
|
44
|
-
|
|
45
38
|
## Link node_modules from local
|
|
46
39
|
npm link ./whatmore-reactnative-sdk # solves no module found errors
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getGlobalState, setGlobalState, useGlobalState } from '../../globals/useAppState_APP.js';
|
|
3
3
|
import { Text, TouchableOpacity, View } from "react-native";
|
|
4
|
-
import UnmuteIcon from '
|
|
5
|
-
import MuteIcon from '
|
|
4
|
+
import UnmuteIcon from '../icons/icon-components/UnmuteIcon.jsx';
|
|
5
|
+
import MuteIcon from '../icons/icon-components/MuteIcon.jsx';
|
|
6
6
|
|
|
7
7
|
export default function AppMuteUnmuteIcon(props) {
|
|
8
8
|
const [isAppMuted] = useGlobalState("isAppMuted");
|
|
@@ -4,9 +4,9 @@ import { getGlobalState } from "../../globals/useAppState_APP";
|
|
|
4
4
|
import { Text, TouchableOpacity, View } from "react-native";
|
|
5
5
|
import { shadeColorHex } from "../../utils/ColorUtils";
|
|
6
6
|
import * as Animatable from 'react-native-animatable';
|
|
7
|
-
import LoadingIcon from "
|
|
8
|
-
import CartIcon from "
|
|
9
|
-
import PlusIcon from "
|
|
7
|
+
import LoadingIcon from "../icons/icon-components/LoadingIcon";
|
|
8
|
+
import CartIcon from "../icons/icon-components/CartIcon";
|
|
9
|
+
import PlusIcon from "../icons/icon-components/PlusIcon";
|
|
10
10
|
|
|
11
11
|
function LabelledButton(props){
|
|
12
12
|
const whatmorePrimaryColor = getGlobalState('whatmorePrimaryColor');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|