bug fixes

This commit is contained in:
nnajah1 2025-04-11 16:35:26 +08:00
parent fb36c69877
commit e51dd59e5f
27 changed files with 35 additions and 27 deletions

Binary file not shown.

View File

@ -1,4 +1,4 @@
#Thu Apr 10 14:29:56 SGT 2025 #Fri Apr 11 14:01:10 SGT 2025
com.project.yondu.unioilloyaltyapp-main-49\:/mipmap-xxxhdpi/ic_launcher_round.png=C\:\\Users\\lenovo\\unioil-loyalty-rn-app-ios-and-android\\android\\app\\build\\intermediates\\merged_res\\debug\\mipmap-xxxhdpi_ic_launcher_round.png.flat com.project.yondu.unioilloyaltyapp-main-49\:/mipmap-xxxhdpi/ic_launcher_round.png=C\:\\Users\\lenovo\\unioil-loyalty-rn-app-ios-and-android\\android\\app\\build\\intermediates\\merged_res\\debug\\mipmap-xxxhdpi_ic_launcher_round.png.flat
com.project.yondu.unioilloyaltyapp-main-49\:/mipmap-hdpi/ic_launcher_foreground.png=C\:\\Users\\lenovo\\unioil-loyalty-rn-app-ios-and-android\\android\\app\\build\\intermediates\\merged_res\\debug\\mipmap-hdpi_ic_launcher_foreground.png.flat com.project.yondu.unioilloyaltyapp-main-49\:/mipmap-hdpi/ic_launcher_foreground.png=C\:\\Users\\lenovo\\unioil-loyalty-rn-app-ios-and-android\\android\\app\\build\\intermediates\\merged_res\\debug\\mipmap-hdpi_ic_launcher_foreground.png.flat
com.project.yondu.unioilloyaltyapp-main-49\:/mipmap-hdpi/ic_launcher.png=C\:\\Users\\lenovo\\unioil-loyalty-rn-app-ios-and-android\\android\\app\\build\\intermediates\\merged_res\\debug\\mipmap-hdpi_ic_launcher.png.flat com.project.yondu.unioilloyaltyapp-main-49\:/mipmap-hdpi/ic_launcher.png=C\:\\Users\\lenovo\\unioil-loyalty-rn-app-ios-and-android\\android\\app\\build\\intermediates\\merged_res\\debug\\mipmap-hdpi_ic_launcher.png.flat

View File

@ -1,4 +1,4 @@
#Thu Apr 10 14:41:30 SGT 2025 #Fri Apr 11 14:13:48 SGT 2025
path.4=15/classes.dex path.4=15/classes.dex
path.3=14/classes.dex path.3=14/classes.dex
path.2=0/classes.dex path.2=0/classes.dex

View File

@ -1,10 +1,4 @@
import { TextEncoder } from 'fast-text-encoding';
if (typeof global.TextEncoder === 'undefined') {
global.TextEncoder = TextEncoder;
}
import 'react-native-gesture-handler'; import 'react-native-gesture-handler';
import * as React from 'react'; import * as React from 'react';
import { Platform, AppState, Text, TextInput, Alert, LogBox } from 'react-native'; import { Platform, AppState, Text, TextInput, Alert, LogBox } from 'react-native';

View File

@ -1020,7 +1020,7 @@ const ActionOption = (props) => {
<Actionsheet isOpen={props.open} onClose={props.onClose}> <Actionsheet isOpen={props.open} onClose={props.onClose}>
<Actionsheet.Content> <Actionsheet.Content>
{props.buttons.map(item => ( {props.buttons.map(item => (
<Actionsheet.Item onPress={item.onPress}> <Actionsheet.Item key={item.key} onPress={item.onPress}>
<Text>{item.name}</Text> <Text>{item.name}</Text>
</Actionsheet.Item> </Actionsheet.Item>
))} ))}

View File

@ -654,11 +654,13 @@ class EditProfile extends React.PureComponent {
buttons={[ buttons={[
{ {
name: 'Edit Photo', name: 'Edit Photo',
onPress: () => this.onEditPhoto() onPress: () => this.onEditPhoto(),
key: 'edit_photo'
}, },
{ {
name: 'Delete Photo', name: 'Delete Photo',
onPress: () => this.onDeletePhoto() onPress: () => this.onDeletePhoto(),
key: 'delete_photo'
} }
]} ]}
/> />

View File

@ -70,7 +70,8 @@ class MyTransactions extends React.Component {
const disabled = ["MOBILE APP SIGN UP BONUS", "SIGN UP BONUS"].includes(data.entry_type_desc); const disabled = ["MOBILE APP SIGN UP BONUS", "SIGN UP BONUS"].includes(data.entry_type_desc);
return ( return (
<View style={{marginBottom: index === this.state.transactions?.length - 1 ? 30 : 0}}> <View style={{marginBottom: index === this.state.transactions?.length - 1 ? 30 : 0}}
key={data.id || index}>
<Elements.transaction <Elements.transaction
data={data} data={data}
disabled={disabled} disabled={disabled}
@ -81,8 +82,7 @@ class MyTransactions extends React.Component {
if(!disabled) { if(!disabled) {
this.navigate("TransactionDetails", {data: data, onBackPress: () => this.init()}) this.navigate("TransactionDetails", {data: data, onBackPress: () => this.init()})
} }
}} }} />
key={index} />
</View> </View>
) )
}); });

View File

@ -1,6 +1,8 @@
/** /**
* @format * @format
*/ */
import './polyfills.js';
import 'react-native-gesture-handler'; import 'react-native-gesture-handler';
import 'react-native-reanimated'; import 'react-native-reanimated';

View File

@ -37,7 +37,6 @@
"card-validator": "^8.1.1", "card-validator": "^8.1.1",
"crypto-js": "4.1.1", "crypto-js": "4.1.1",
"deprecated-react-native-prop-types": "^5.0.0", "deprecated-react-native-prop-types": "^5.0.0",
"fast-text-encoding": "^1.0.6",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"lottie-react-native": "6.4.1", "lottie-react-native": "6.4.1",
"moment": "2.29.4", "moment": "2.29.4",
@ -86,7 +85,8 @@
"redux-thunk": "2.4.2", "redux-thunk": "2.4.2",
"rn-sliding-up-panel": "2.4.6", "rn-sliding-up-panel": "2.4.6",
"styled-components": "5.3.11", "styled-components": "5.3.11",
"styled-system": "^5.1.5" "styled-system": "^5.1.5",
"text-encoding": "^0.7.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.9.0", "@babel/core": "^7.9.0",

10
polyfills.js Normal file
View File

@ -0,0 +1,10 @@
// Polyfill code
import { TextEncoder, TextDecoder } from 'text-encoding';
if (typeof globalThis.TextEncoder === 'undefined') {
globalThis.TextEncoder = TextEncoder;
}
if (typeof globalThis.TextDecoder === 'undefined') {
globalThis.TextDecoder = TextDecoder;
}

View File

@ -4297,9 +4297,9 @@ domutils@^3.0.1:
domhandler "^5.0.3" domhandler "^5.0.3"
dotenv@^16.4.5: dotenv@^16.4.5:
version "16.4.7" version "16.5.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.7.tgz#0e20c5b82950140aa99be360a8a5f52335f53c26" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.5.0.tgz#092b49f25f808f020050051d1ff258e404c78692"
integrity sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ== integrity sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==
dunder-proto@^1.0.0, dunder-proto@^1.0.1: dunder-proto@^1.0.0, dunder-proto@^1.0.1:
version "1.0.1" version "1.0.1"
@ -4321,9 +4321,9 @@ ee-first@1.1.1:
integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==
electron-to-chromium@^1.5.73: electron-to-chromium@^1.5.73:
version "1.5.135" version "1.5.136"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.135.tgz#6d835020fa0c7f02f30d7608c2f3c0a764236699" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.136.tgz#854b45e6a892137762cb026ed6ec77391fc5c07b"
integrity sha512-8gXUdEmvb+WCaYUhA0Svr08uSeRjM2w3x5uHOc1QbaEVzJXB8rgm5eptieXzyKoVEtinLvW6MtTcurA65PeS1Q== integrity sha512-kL4+wUTD7RSA5FHx5YwWtjDnEEkIIikFgWHR4P6fqjw1PPLlqYkxeOb++wAauAssat0YClCy8Y3C5SxgSkjibQ==
emittery@^0.13.1: emittery@^0.13.1:
version "0.13.1" version "0.13.1"
@ -4802,11 +4802,6 @@ fast-loops@^1.1.3:
resolved "https://registry.yarnpkg.com/fast-loops/-/fast-loops-1.1.4.tgz#61bc77d518c0af5073a638c6d9d5c7683f069ce2" resolved "https://registry.yarnpkg.com/fast-loops/-/fast-loops-1.1.4.tgz#61bc77d518c0af5073a638c6d9d5c7683f069ce2"
integrity sha512-8dbd3XWoKCTms18ize6JmQF1SFnnfj5s0B7rRry22EofgMu7B6LKHVh+XfFqFGsqnbH54xgeO83PzpKI+ODhlg== integrity sha512-8dbd3XWoKCTms18ize6JmQF1SFnnfj5s0B7rRry22EofgMu7B6LKHVh+XfFqFGsqnbH54xgeO83PzpKI+ODhlg==
fast-text-encoding@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz#0aa25f7f638222e3396d72bf936afcf1d42d6867"
integrity sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==
fast-xml-parser@^4.0.12: fast-xml-parser@^4.0.12:
version "4.5.3" version "4.5.3"
resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz#c54d6b35aa0f23dc1ea60b6c884340c006dc6efb" resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz#c54d6b35aa0f23dc1ea60b6c884340c006dc6efb"
@ -9059,6 +9054,11 @@ test-exclude@^6.0.0:
glob "^7.1.4" glob "^7.1.4"
minimatch "^3.0.4" minimatch "^3.0.4"
text-encoding@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/text-encoding/-/text-encoding-0.7.0.tgz#f895e836e45990624086601798ea98e8f36ee643"
integrity sha512-oJQ3f1hrOnbRLOcwKz0Liq2IcrvDeZRHXhd9RgLrsT+DjWY/nty1Hi7v3dtkaEYbPYe0mUoOfzRrMwfXXwgPUA==
text-table@^0.2.0: text-table@^0.2.0:
version "0.2.0" version "0.2.0"
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"