diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 58a3e6e..749e228 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -841,8 +841,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/ReactCommon/yoga" SPEC CHECKSUMS: - boost: 5c42585573ad5f1ea485444beac314a8d0944270 - BVLinearGradient: 880f91a7854faff2df62518f0281afb1c60d49a3 + boost: 099eb71dcf2a2717110f77e84c1b0aaa2a701795 + BVLinearGradient: cb006ba232a1f3e4f341bb62c42d1098c284da70 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 FBAEMKit: e34530df538b8eb8aeb53c35867715ba6c63ef0c FBLazyVector: 748c0ef74f2bf4b36cfcccf37916806940a64c32 @@ -882,9 +882,9 @@ SPEC CHECKSUMS: React-jsiexecutor: e50b839f530379929217443355d754be4567566d React-jsinspector: 194e32c6aab382d88713ad3dd0025c5f5c4ee072 React-logger: 39440454dfd719978689203a9d18b94e98de09eb - react-native-camera: 35854c4f764a4a6cf61c1c3525888b92f0fe4b31 - react-native-cameraroll: 2225908e97d553ad388e2a0207a5c2b0b3aed241 - react-native-fbsdk-next: 1baeeacf0ecdeb839cca16ca75cb16a9bbbf8e03 + react-native-camera: 22dbf8ce6a4c6a25ae49f4e2fa5859c5277f1631 + react-native-cameraroll: 00d73585135a54968912cbeffa2845e83c517b88 + react-native-fbsdk-next: 52f81e60eb3e8e0e06cf9728b4572d3509ca9d01 react-native-pager-view: 873aef831fb4fe6e1a2e1ba7a79857e240dea380 react-native-splash-screen: 95994222cc95c236bd3cdc59fe45ed5f27969594 react-native-view-shot: d1a701eb0719c6dccbd20b4bb43b1069f304cb70 @@ -907,7 +907,7 @@ SPEC CHECKSUMS: React-utils: ee4e6bf16d6882500500d517d36f9035874c5f6a ReactCommon: 3a7c359a28c6973c304fb1b0152b096b195dd5fc RNAppleAuthentication: c5d311a3a5b1be91d077c217481d8fecf72cfa81 - RNCAsyncStorage: 23e56519cc41d3bade3c8d4479f7760cb1c11996 + RNCAsyncStorage: b44e8a4e798c3e1f56bffccd0f591f674fb9198f RNDateTimePicker: 21fbf94479a551f0e50d37e662febe03e16b7012 RNDeviceInfo: e958a6b5adfb7b16d360fb138affe8fc2cfdc288 RNFastImage: 462a183c4b0b6b26fdfd639e1ed6ba37536c3b87 diff --git a/ios/csareactrn60.xcodeproj/project.pbxproj b/ios/csareactrn60.xcodeproj/project.pbxproj index 2ab74d3..8e2908c 100644 --- a/ios/csareactrn60.xcodeproj/project.pbxproj +++ b/ios/csareactrn60.xcodeproj/project.pbxproj @@ -689,14 +689,14 @@ CODE_SIGN_ENTITLEMENTS = csareactrn60/csareactrn60.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; - CURRENT_PROJECT_VERSION = 177; + CURRENT_PROJECT_VERSION = 162; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = 84F3R56BUC; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 84F3R56BUC; INFOPLIST_FILE = csareactrn60/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 2.109; + MARKETING_VERSION = 2.108; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -720,13 +720,13 @@ CODE_SIGN_IDENTITY = "iPhone Distribution"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 177; + CURRENT_PROJECT_VERSION = 162; DEVELOPMENT_TEAM = 84F3R56BUC; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 84F3R56BUC; INFOPLIST_FILE = csareactrn60/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 2.109; + MARKETING_VERSION = 2.108; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", diff --git a/src/screens/login/Login.js b/src/screens/login/Login.js index 8a907d9..e9521e0 100644 --- a/src/screens/login/Login.js +++ b/src/screens/login/Login.js @@ -42,25 +42,29 @@ class LoginScreen extends Component { if (regex.test(this.state.username) === true) { console.log('true') - const fcm = messaging() - if (!await fcm.hasPermission()) { - try { - await messaging().requestPermission() - } catch (error) { - } - } + // const fcm = messaging() + // if (!await fcm.hasPermission()) { + // try { + // await messaging().requestPermission() + // } catch (error) { + // this.setState({ + // isLoading: false + // }) + // } + // } - const fcmToken = await messaging().getAPNSToken() + // const fcmToken = await messaging().getAPNSToken() + let params = { // mobile: this.state.username, username: this.state.username, password: this.state.password, - fcm_token: fcmToken + // fcm_token: fcmToken } console.log('params >> ', params) - console.log('fcmToken >>>>>>>>>>>>>>>>>>>>>>>>> ', fcmToken) + // console.log('fcmToken >>>>>>>>>>>>>>>>>>>>>>>>> ', fcmToken) this.setState({isLoading:true}) login(params) .then((res) => { diff --git a/src/screens/object/MessageObjectDetail.js b/src/screens/object/MessageObjectDetail.js index 4737cd7..0197958 100644 --- a/src/screens/object/MessageObjectDetail.js +++ b/src/screens/object/MessageObjectDetail.js @@ -6,6 +6,7 @@ import Text from '../../components/Text'; import {getObjectMessageByID} from '../../api/UserApi' import moment from 'moment'; import { t } from '../../utils/i18n' +import HTML from 'react-native-render-html'; //import 'moment/locale/th'; //moment.locale('th'); @@ -80,7 +81,8 @@ export default class MessageObjectDetail extends Component { - {this.state.object_data.parcel_name} + + {/* {this.state.object_data.parcel_name} */} {t('status')} diff --git a/src/screens/redeem/ScanCoupon.js b/src/screens/redeem/ScanCoupon.js index dfd28ca..11884fa 100644 --- a/src/screens/redeem/ScanCoupon.js +++ b/src/screens/redeem/ScanCoupon.js @@ -27,21 +27,21 @@ class ScanCoupon extends Component { }) this.props.navigation.setParams({index: 2}) - // usedCoupon(reward_id).then(res => { - // if(res.data && res.data.success) { + usedCoupon(reward_id).then(res => { + if(res.data && res.data.success) { - // }else { - // let message = res.data?.message || '' - // Alert.alert('Unsuccessfully', message, [ - // { - // text: 'ok', - // onPress: () => { - // this.props.navigation.navigate('RewardDetail', {id: reward_id.id, is_my_reward: true, is_history: false}) - // } - // } - // ]) - // } - // }) + }else { + let message = res.data?.message || '' + Alert.alert('Unsuccessfully', message, [ + { + text: 'ok', + onPress: () => { + this.props.navigation.navigate('RewardDetail', {id: reward_id.id, is_my_reward: true, is_history: false}) + } + } + ]) + } + }) } componentWillMount(){ diff --git a/src/screens/repair/RepairIndex.js b/src/screens/repair/RepairIndex.js index b14d790..1addbc9 100644 --- a/src/screens/repair/RepairIndex.js +++ b/src/screens/repair/RepairIndex.js @@ -274,8 +274,11 @@ class RepairIndex extends Component { } handleDatePicked = (e, date) => { - this.setState({ visibleDate: false }) - if(e.type === 'set' && date) { + if(Platform.OS === 'android') { + this.setState({ visibleDate: false }) + } + + if((Platform.OS === 'android' && e.type === 'set' && date) || (Platform.OS === 'ios' && date)) { this.setState({ select_date: date }) @@ -478,7 +481,9 @@ class RepairIndex extends Component { { this.state.visibleDate && - {/* + { + Platform.OS === 'ios' && +