react-native-timacare 3.1.36-production → 3.1.37-production
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/lib/commonjs/components/MText.js +1 -1
- package/lib/commonjs/components/MText.js.flow +2 -2
- package/lib/commonjs/components/MText.js.map +1 -1
- package/lib/commonjs/components/select/index.js +1 -1
- package/lib/commonjs/components/select/index.js.flow +1 -1
- package/lib/commonjs/components/select/index.js.map +1 -1
- package/lib/commonjs/screens/forgotPassword/index.js +1 -1
- package/lib/commonjs/screens/forgotPassword/index.js.flow +1 -1
- package/lib/commonjs/screens/forgotPassword/index.js.map +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js.flow +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js.flow +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/commonjs/screens/loginWithPassword/index.js +1 -1
- package/lib/commonjs/screens/loginWithPassword/index.js.flow +1 -1
- package/lib/commonjs/screens/loginWithPassword/index.js.map +1 -1
- package/lib/commonjs/screens/quick-submit/index.js +1 -1
- package/lib/commonjs/screens/quick-submit/index.js.flow +1 -1
- package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
- package/lib/commonjs/screens/setPassword/confirmPassword.js +1 -1
- package/lib/commonjs/screens/setPassword/confirmPassword.js.flow +1 -1
- package/lib/commonjs/screens/setPassword/confirmPassword.js.map +1 -1
- package/lib/commonjs/screens/setPassword/index.js +1 -1
- package/lib/commonjs/screens/setPassword/index.js.flow +2 -2
- package/lib/commonjs/screens/setPassword/index.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +9 -9
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +8 -8
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +11 -11
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js.flow +2 -1
- package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
- package/lib/module/components/MText.js +1 -1
- package/lib/module/components/MText.js.map +1 -1
- package/lib/module/components/select/index.js +1 -1
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/screens/forgotPassword/index.js +1 -1
- package/lib/module/screens/forgotPassword/index.js.map +1 -1
- package/lib/module/screens/full-submit/update-info.js +1 -1
- package/lib/module/screens/full-submit/update-info.js.map +1 -1
- package/lib/module/screens/loan/UpdateLoan.js +1 -1
- package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/module/screens/loginWithPassword/index.js +1 -1
- package/lib/module/screens/loginWithPassword/index.js.map +1 -1
- package/lib/module/screens/quick-submit/index.js +1 -1
- package/lib/module/screens/quick-submit/index.js.map +1 -1
- package/lib/module/screens/setPassword/confirmPassword.js +1 -1
- package/lib/module/screens/setPassword/confirmPassword.js.map +1 -1
- package/lib/module/screens/setPassword/index.js +1 -1
- package/lib/module/screens/setPassword/index.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/uploadVideo/index.js +1 -1
- package/lib/module/screens/uploadVideo/index.js.map +1 -1
- package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/MText.tsx +2 -2
- package/src/components/select/index.tsx +1 -1
- package/src/screens/forgotPassword/index.tsx +1 -1
- package/src/screens/full-submit/update-info.tsx +1 -1
- package/src/screens/loan/UpdateLoan.tsx +1 -1
- package/src/screens/loginWithPassword/index.tsx +1 -1
- package/src/screens/quick-submit/index.tsx +1 -1
- package/src/screens/setPassword/confirmPassword.tsx +1 -1
- package/src/screens/setPassword/index.tsx +2 -2
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +9 -9
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +8 -8
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +11 -11
- package/src/screens/uploadVideo/index.tsx +2 -1
- package/lib/commonjs/assets/fonts/Be Vietnam Pro Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro ExtraLight.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Be Vietnam Pro Thin.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-BlackItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-BoldItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-ExtraBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-ExtraBoldItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-ExtraLight.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-ExtraLightItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-Italic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-LightItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-SemiBold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Nunito-SemiBoldItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Pacifico-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-Black.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-BoldItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-Italic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-LightItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-MediumItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-Thin.ttf +0 -0
- package/lib/commonjs/assets/fonts/Roboto-ThinItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/RobotoCondensed-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/RobotoCondensed-BoldItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/RobotoCondensed-Italic.ttf +0 -0
- package/lib/commonjs/assets/fonts/RobotoCondensed-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/RobotoCondensed-LightItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/RobotoCondensed-Regular.ttf +0 -0
- package/lib/commonjs/assets/fonts/custom-fonts.md +0 -24
- package/lib/module/assets/fonts/Be Vietnam Pro Black.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro Bold.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro ExtraLight.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro Light.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro Medium.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro Regular.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Be Vietnam Pro Thin.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-Black.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-BlackItalic.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-BoldItalic.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-ExtraBoldItalic.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-ExtraLight.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-ExtraLightItalic.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-Italic.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-Light.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-LightItalic.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Nunito-SemiBoldItalic.ttf +0 -0
- package/lib/module/assets/fonts/Pacifico-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-Black.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-BoldItalic.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-Italic.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-Light.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-LightItalic.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-MediumItalic.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-Thin.ttf +0 -0
- package/lib/module/assets/fonts/Roboto-ThinItalic.ttf +0 -0
- package/lib/module/assets/fonts/RobotoCondensed-Bold.ttf +0 -0
- package/lib/module/assets/fonts/RobotoCondensed-BoldItalic.ttf +0 -0
- package/lib/module/assets/fonts/RobotoCondensed-Italic.ttf +0 -0
- package/lib/module/assets/fonts/RobotoCondensed-Light.ttf +0 -0
- package/lib/module/assets/fonts/RobotoCondensed-LightItalic.ttf +0 -0
- package/lib/module/assets/fonts/RobotoCondensed-Regular.ttf +0 -0
- package/lib/module/assets/fonts/custom-fonts.md +0 -24
- package/src/assets/fonts/Be Vietnam Pro Black.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro Bold.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro ExtraBold.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro ExtraLight.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro Light.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro Medium.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro Regular.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro SemiBold.ttf +0 -0
- package/src/assets/fonts/Be Vietnam Pro Thin.ttf +0 -0
- package/src/assets/fonts/Nunito-Black.ttf +0 -0
- package/src/assets/fonts/Nunito-BlackItalic.ttf +0 -0
- package/src/assets/fonts/Nunito-Bold.ttf +0 -0
- package/src/assets/fonts/Nunito-BoldItalic.ttf +0 -0
- package/src/assets/fonts/Nunito-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Nunito-ExtraBoldItalic.ttf +0 -0
- package/src/assets/fonts/Nunito-ExtraLight.ttf +0 -0
- package/src/assets/fonts/Nunito-ExtraLightItalic.ttf +0 -0
- package/src/assets/fonts/Nunito-Italic.ttf +0 -0
- package/src/assets/fonts/Nunito-Light.ttf +0 -0
- package/src/assets/fonts/Nunito-LightItalic.ttf +0 -0
- package/src/assets/fonts/Nunito-Regular.ttf +0 -0
- package/src/assets/fonts/Nunito-SemiBold.ttf +0 -0
- package/src/assets/fonts/Nunito-SemiBoldItalic.ttf +0 -0
- package/src/assets/fonts/Pacifico-Regular.ttf +0 -0
- package/src/assets/fonts/Roboto-Black.ttf +0 -0
- package/src/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Bold.ttf +0 -0
- package/src/assets/fonts/Roboto-BoldItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/Roboto-Light.ttf +0 -0
- package/src/assets/fonts/Roboto-LightItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Medium.ttf +0 -0
- package/src/assets/fonts/Roboto-MediumItalic.ttf +0 -0
- package/src/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/assets/fonts/Roboto-Thin.ttf +0 -0
- package/src/assets/fonts/Roboto-ThinItalic.ttf +0 -0
- package/src/assets/fonts/RobotoCondensed-Bold.ttf +0 -0
- package/src/assets/fonts/RobotoCondensed-BoldItalic.ttf +0 -0
- package/src/assets/fonts/RobotoCondensed-Italic.ttf +0 -0
- package/src/assets/fonts/RobotoCondensed-Light.ttf +0 -0
- package/src/assets/fonts/RobotoCondensed-LightItalic.ttf +0 -0
- package/src/assets/fonts/RobotoCondensed-Regular.ttf +0 -0
- package/src/assets/fonts/custom-fonts.md +0 -24
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Video=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _utils=require("../../utils");var _reactNativeCamera=require("react-native-camera");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _native=require("@react-navigation/native");var _videoStore=_interopRequireDefault(require("./videoStore"));var _reactNativePermissions=require("react-native-permissions");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/uploadVideo/index.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var Video=exports.Video=(0,_mobxReactLite.observer)(function Video(props){var navigation=(0,_native.useNavigation)();var camera=(0,_react.useRef)(null);var _useState=(0,_react.useState)(3),_useState2=(0,_slicedToArray2.default)(_useState,2),count=_useState2[0],setCount=_useState2[1];var interval=_react.default.useRef(null);var _React$useState=_react.default.useState(false),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),isRecording=_React$useState2[0],setIsRecording=_React$useState2[1];var _React$useState3=_react.default.useState(false),_React$useState4=(0,_slicedToArray2.default)(_React$useState3,2),isLoading=_React$useState4[0],setIsLoading=_React$useState4[1];var content="H\xF4m nay ng\xE0y "+(0,_utils.formatDDMMYYY)(new Date())+" t\xF4i t\xEAn l\xE0 "+props.route.params.loan.fullname+" c\xF3 th\u1EF1c hi\u1EC7n kho\u1EA3n vay t\u1EA1i Tima v\u1EDBi s\u1ED1 ti\u1EC1n l\xE0 "+(0,_utils.formatMoney)(props.route.params.loan.loanAmount);var second=3;var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.checkMultiple)(_reactNative.Platform.OS==='ios'?[_reactNativePermissions.PERMISSIONS.IOS.CAMERA,_reactNativePermissions.PERMISSIONS.IOS.MICROPHONE]:[_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA,_reactNativePermissions.PERMISSIONS.ANDROID.RECORD_AUDIO]).then(function(statuses){});};(0,_react.useEffect)(function(){requestPermissions();interval.current=setInterval(function(){second--;setCount(second);if(second===0){clearInterval(interval.current);}},1000);},[]);var stopRecording=function stopRecording(){camera.current.stopRecording();setIsRecording(false);setIsLoading(true);};var startVideo=function _callee(){var data,formData;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(camera){_context.next=2;break;}return _context.abrupt("return");case 2:setIsRecording(true);_context.next=5;return _regenerator.default.awrap(camera.current.recordAsync((0,_extends2.default)({},{quality:_reactNativeCamera.RNCamera.Constants.VideoQuality['480p'],videoBitrate:1500000},_reactNative.Platform.OS==='ios'?{codec:_reactNativeCamera.RNCamera.Constants.VideoCodec.H264}:{})));case 5:data=_context.sent;formData=new FormData();formData.append('video',{name:data.uri.split(/[\\/]/).pop(),uri:data.uri,type:'video/*'});_videoStore.default.uploadVideo(props.route.params.loan.id,formData,function(){setIsLoading(false);_reactNative.Alert.alert('Thông báo','Tải video lên thành công',[{text:'Ok',onPress:function onPress(){return navigation.goBack();}}]);},function(){setIsLoading(false);});case 9:case"end":return _context.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"",onBack:function onBack(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:115,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:116,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flex:1,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:9}},count===0&&_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:100,right:0,left:0,zIndex:1,paddingHorizontal:10,justifyContent:'center',backgroundColor:'black',paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:132,columnNumber:15}},content)),_react.default.createElement(_reactNativeCamera.RNCamera,{ref:camera,style:styles.preview,type:"front",permissionDialogTitle:'Permission to use camera',permissionDialogMessage:'We need your permission to use your camera phone',androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},androidRecordAudioPermissionOptions:{title:'Permission to use audio recording',message:'We need your permission to use your audio',buttonPositive:'Ok',buttonNegative:'Cancel'},__self:this,__source:{fileName:_jsxFileName,lineNumber:
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.Video=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _mobxReactLite=require("mobx-react-lite");var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _utils=require("../../utils");var _reactNativeCamera=require("react-native-camera");var _icons=require("../../assets/icons");var _MText=require("../../components/MText");var _native=require("@react-navigation/native");var _videoStore=_interopRequireDefault(require("./videoStore"));var _reactNativePermissions=require("react-native-permissions");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _MHeader=_interopRequireDefault(require("../../components/MHeader"));var _jsxFileName="/Users/tima/Documents/Tima/tima-care-v2-sdk/src/screens/uploadVideo/index.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var Video=exports.Video=(0,_mobxReactLite.observer)(function Video(props){var navigation=(0,_native.useNavigation)();var camera=(0,_react.useRef)(null);var _useState=(0,_react.useState)(3),_useState2=(0,_slicedToArray2.default)(_useState,2),count=_useState2[0],setCount=_useState2[1];var interval=_react.default.useRef(null);var _React$useState=_react.default.useState(false),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),isRecording=_React$useState2[0],setIsRecording=_React$useState2[1];var _React$useState3=_react.default.useState(false),_React$useState4=(0,_slicedToArray2.default)(_React$useState3,2),isLoading=_React$useState4[0],setIsLoading=_React$useState4[1];var content="H\xF4m nay ng\xE0y "+(0,_utils.formatDDMMYYY)(new Date())+" t\xF4i t\xEAn l\xE0 "+props.route.params.loan.fullname+" c\xF3 th\u1EF1c hi\u1EC7n kho\u1EA3n vay t\u1EA1i Tima v\u1EDBi s\u1ED1 ti\u1EC1n l\xE0 "+(0,_utils.formatMoney)(props.route.params.loan.loanAmount);var second=3;var requestPermissions=function requestPermissions(){(0,_reactNativePermissions.checkMultiple)(_reactNative.Platform.OS==='ios'?[_reactNativePermissions.PERMISSIONS.IOS.CAMERA,_reactNativePermissions.PERMISSIONS.IOS.MICROPHONE]:[_reactNativePermissions.PERMISSIONS.ANDROID.CAMERA,_reactNativePermissions.PERMISSIONS.ANDROID.RECORD_AUDIO]).then(function(statuses){});};(0,_react.useEffect)(function(){requestPermissions();interval.current=setInterval(function(){second--;setCount(second);if(second===0){clearInterval(interval.current);}},1000);},[]);var stopRecording=function stopRecording(){camera.current.stopRecording();setIsRecording(false);setIsLoading(true);};var startVideo=function _callee(){var data,formData;return _regenerator.default.async(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(camera){_context.next=2;break;}return _context.abrupt("return");case 2:setIsRecording(true);_context.next=5;return _regenerator.default.awrap(camera.current.recordAsync((0,_extends2.default)({},{quality:_reactNativeCamera.RNCamera.Constants.VideoQuality['480p'],videoBitrate:1500000},_reactNative.Platform.OS==='ios'?{codec:_reactNativeCamera.RNCamera.Constants.VideoCodec.H264}:{})));case 5:data=_context.sent;formData=new FormData();formData.append('video',{name:data.uri.split(/[\\/]/).pop(),uri:data.uri,type:'video/*'});_videoStore.default.uploadVideo(props.route.params.loan.id,formData,function(){setIsLoading(false);_reactNative.Alert.alert('Thông báo','Tải video lên thành công',[{text:'Ok',onPress:function onPress(){return navigation.goBack();}}]);},function(){setIsLoading(false);});case 9:case"end":return _context.stop();}},null,null,null,Promise);};return _react.default.createElement(_reactNative.View,{style:{flex:1},__self:this,__source:{fileName:_jsxFileName,lineNumber:110,columnNumber:5}},_react.default.createElement(_MHeader.default,{title:"Quay video",onBack:function onBack(){return navigation.goBack();},__self:this,__source:{fileName:_jsxFileName,lineNumber:115,columnNumber:7}}),_react.default.createElement(_reactNative.SafeAreaView,{style:{flex:1,backgroundColor:'white'},__self:this,__source:{fileName:_jsxFileName,lineNumber:116,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:{flex:1,justifyContent:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:117,columnNumber:9}},count===0&&_react.default.createElement(_reactNative.View,{style:{position:'absolute',bottom:100,right:0,left:0,zIndex:1,paddingHorizontal:10,justifyContent:'center',backgroundColor:'black',paddingVertical:10},__self:this,__source:{fileName:_jsxFileName,lineNumber:119,columnNumber:13}},_react.default.createElement(_MText.MText,{style:{color:'white',fontSize:16,textAlign:'center'},__self:this,__source:{fileName:_jsxFileName,lineNumber:132,columnNumber:15}},content)),_react.default.createElement(_reactNativeCamera.RNCamera,{ref:camera,style:styles.preview,type:"front",permissionDialogTitle:'Permission to use camera',permissionDialogMessage:'We need your permission to use your camera phone',androidCameraPermissionOptions:{title:'Permission to use camera',message:'We need your permission to use your camera',buttonPositive:'Ok',buttonNegative:'Cancel'},androidRecordAudioPermissionOptions:{title:'Permission to use audio recording',message:'We need your permission to use your audio',buttonPositive:'Ok',buttonNegative:'Cancel'},__self:this,__source:{fileName:_jsxFileName,lineNumber:143,columnNumber:11}}),_react.default.createElement(_reactNative.View,{style:{backgroundColor:'#00000080',justifyContent:'center',position:'absolute',bottom:0,left:0,right:0},__self:this,__source:{fileName:_jsxFileName,lineNumber:164,columnNumber:11}},isRecording?_react.default.createElement(_reactNative.TouchableOpacity,{style:{justifyContent:'center',alignItems:'center',marginBottom:20},onPress:function onPress(){stopRecording();},__self:this,__source:{fileName:_jsxFileName,lineNumber:175,columnNumber:15}},_react.default.createElement(_icons.IconPause,{fill:'white',width:60,height:60,__self:this,__source:{fileName:_jsxFileName,lineNumber:185,columnNumber:17}})):_react.default.createElement(_reactNative.TouchableOpacity,{style:{justifyContent:'center',alignItems:'center',marginBottom:20},disabled:_videoStore.default.isLoading,onPress:function onPress(){startVideo();},__self:this,__source:{fileName:_jsxFileName,lineNumber:188,columnNumber:15}},_react.default.createElement(_icons.IconPlay,{fill:'white',width:60,height:60,__self:this,__source:{fileName:_jsxFileName,lineNumber:199,columnNumber:17}})))),_react.default.createElement(_Loading.default,{isLoading:isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:204,columnNumber:9}})));});var styles=_reactNative.StyleSheet.create({preview:{position:'absolute',width:'100%',height:'100%',justifyContent:'flex-end',alignItems:'center'}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mobxReactLite","require","_react","_interopRequireWildcard","_reactNative","_utils","_reactNativeCamera","_icons","_MText","_native","_videoStore","_interopRequireDefault","_reactNativePermissions","_Loading","_MHeader","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Video","exports","observer","props","navigation","useNavigation","camera","useRef","_useState","useState","_useState2","_slicedToArray2","count","setCount","interval","React","_React$useState","_React$useState2","isRecording","setIsRecording","_React$useState3","_React$useState4","isLoading","setIsLoading","content","formatDDMMYYY","Date","route","params","loan","fullname","formatMoney","loanAmount","second","requestPermissions","checkMultiple","Platform","OS","PERMISSIONS","IOS","CAMERA","MICROPHONE","ANDROID","RECORD_AUDIO","then","statuses","useEffect","current","setInterval","clearInterval","stopRecording","startVideo","_callee","data","formData","_regenerator","async","_callee$","_context","prev","next","abrupt","awrap","recordAsync","_extends2","quality","RNCamera","Constants","VideoQuality","videoBitrate","codec","VideoCodec","H264","sent","FormData","append","name","uri","split","pop","type","videoStore","uploadVideo","id","Alert","alert","text","onPress","goBack","stop","Promise","createElement","View","style","flex","__self","__source","fileName","lineNumber","columnNumber","title","onBack","SafeAreaView","backgroundColor","justifyContent","position","bottom","right","left","zIndex","paddingHorizontal","paddingVertical","MText","color","fontSize","ref","styles","preview","permissionDialogTitle","permissionDialogMessage","androidCameraPermissionOptions","message","buttonPositive","buttonNegative","androidRecordAudioPermissionOptions","TouchableOpacity","alignItems","marginBottom","IconPause","fill","width","height","disabled","IconPlay","StyleSheet","create"],"sourceRoot":"../../../../src","sources":["screens/uploadVideo/index.tsx"],"mappings":"4ZACA,IAAAA,cAAA,CAAAC,OAAA,oBACA,IAAAC,MAAA,CAAAC,uBAAA,CAAAF,OAAA,WACA,IAAAG,YAAA,CAAAH,OAAA,iBAQA,IAAAI,MAAA,CAAAJ,OAAA,gBACA,IAAAK,kBAAA,CAAAL,OAAA,wBAEA,IAAAM,MAAA,CAAAN,OAAA,uBACA,IAAAO,MAAA,CAAAP,OAAA,2BACA,IAAAQ,OAAA,CAAAR,OAAA,6BACA,IAAAS,WAAA,CAAAC,sBAAA,CAAAV,OAAA,kBACA,IAAAW,uBAAA,CAAAX,OAAA,6BAQA,IAAAY,QAAA,CAAAF,sBAAA,CAAAV,OAAA,8BACA,IAAAa,QAAA,CAAAH,sBAAA,CAAAV,OAAA,8BAA+C,IAAAc,YAAA,0FAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAF,wBAAA,UAAAA,yBAAAC,CAAA,SAAAA,CAAA,CAAAG,CAAA,CAAAD,CAAA,IAAAF,CAAA,YAAAd,wBAAAc,CAAA,CAAAE,CAAA,MAAAA,CAAA,EAAAF,CAAA,EAAAA,CAAA,CAAAI,UAAA,QAAAJ,CAAA,WAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAK,OAAA,CAAAL,CAAA,MAAAG,CAAA,CAAAJ,wBAAA,CAAAG,CAAA,KAAAC,CAAA,EAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,SAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,MAAAQ,CAAA,EAAAC,SAAA,OAAAC,CAAA,CAAAC,MAAA,CAAAC,cAAA,EAAAD,MAAA,CAAAE,wBAAA,SAAAC,CAAA,IAAAd,CAAA,gBAAAc,CAAA,EAAAH,MAAA,CA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QAAA,EAAAC,QAAA,CAAAvH,YAAA,CAAAwH,UAAA,KAAAC,YAAA,MAEFtI,MAAA,CAAAoB,OAAA,CAAA0G,aAAA,CAACzH,MAAA,CAAAmK,QAAQ,EAACJ,IAAI,CAAE,OAAQ,CAACC,KAAK,CAAE,EAAG,CAACC,MAAM,CAAE,EAAG,CAAApC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAvH,YAAA,CAAAwH,UAAA,KAAAC,YAAA,KAAE,CACjC,CAEhB,CACF,CAAC,CACPtI,MAAA,CAAAoB,OAAA,CAAA0G,aAAA,CAACnH,QAAA,CAAAS,OAAO,EAACqC,SAAS,CAAEA,SAAU,CAAAyE,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAAvH,YAAA,CAAAwH,UAAA,KAAAC,YAAA,IAAE,CACpB,CACV,CAAC,CAEX,CAAC,CAAC,CAEF,GAAM,CAAAiB,MAAM,CAAGkB,uBAAU,CAACC,MAAM,CAAC,CAC/BlB,OAAO,CAAE,CACPZ,QAAQ,CAAE,UAAU,CACpByB,KAAK,CAAE,MAAM,CACbC,MAAM,CAAE,MAAM,CACd3B,cAAc,CAAE,UAAU,CAC1BsB,UAAU,CAAE,QACd,CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_mobxReactLite","require","_react","_interopRequireWildcard","_reactNative","_utils","_reactNativeCamera","_icons","_MText","_native","_videoStore","_interopRequireDefault","_reactNativePermissions","_Loading","_MHeader","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Video","exports","observer","props","navigation","useNavigation","camera","useRef","_useState","useState","_useState2","_slicedToArray2","count","setCount","interval","React","_React$useState","_React$useState2","isRecording","setIsRecording","_React$useState3","_React$useState4","isLoading","setIsLoading","content","formatDDMMYYY","Date","route","params","loan","fullname","formatMoney","loanAmount","second","requestPermissions","checkMultiple","Platform","OS","PERMISSIONS","IOS","CAMERA","MICROPHONE","ANDROID","RECORD_AUDIO","then","statuses","useEffect","current","setInterval","clearInterval","stopRecording","startVideo","_callee","data","formData","_regenerator","async","_callee$","_context","prev","next","abrupt","awrap","recordAsync","_extends2","quality","RNCamera","Constants","VideoQuality","videoBitrate","codec","VideoCodec","H264","sent","FormData","append","name","uri","split","pop","type","videoStore","uploadVideo","id","Alert","alert","text","onPress","goBack","stop","Promise","createElement","View","style","flex","__self","__source","fileName","lineNumber","columnNumber","title","onBack","SafeAreaView","backgroundColor","justifyContent","position","bottom","right","left","zIndex","paddingHorizontal","paddingVertical","MText","color","fontSize","textAlign","ref","styles","preview","permissionDialogTitle","permissionDialogMessage","androidCameraPermissionOptions","message","buttonPositive","buttonNegative","androidRecordAudioPermissionOptions","TouchableOpacity","alignItems","marginBottom","IconPause","fill","width","height","disabled","IconPlay","StyleSheet","create"],"sourceRoot":"../../../../src","sources":["screens/uploadVideo/index.tsx"],"mappings":"4ZACA,IAAAA,cAAA,CAAAC,OAAA,oBACA,IAAAC,MAAA,CAAAC,uBAAA,CAAAF,OAAA,WACA,IAAAG,YAAA,CAAAH,OAAA,iBAQA,IAAAI,MAAA,CAAAJ,OAAA,gBACA,IAAAK,kBAAA,CAAAL,OAAA,wBAEA,IAAAM,MAAA,CAAAN,OAAA,uBACA,IAAAO,MAAA,CAAAP,OAAA,2BACA,IAAAQ,OAAA,CAAAR,OAAA,6BACA,IAAAS,WAAA,CAAAC,sBAAA,CAAAV,OAAA,kBACA,IAAAW,uBAAA,CAAAX,OAAA,6BAQA,IAAAY,QAAA,CAAAF,sBAAA,CAAAV,OAAA,8BACA,IAAAa,QAAA,CAAAH,sBAAA,CAAAV,OAAA,8BAA+C,IAAAc,YAAA,0FAAAC,yBAAAC,CAAA,wBAAAC,OAAA,iBAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAF,wBAAA,UAAAA,yBAAAC,CAAA,SAAAA,CAAA,CAAAG,CAAA,CA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B,UAAU,CAAE,QACd,CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/uploadVideo/index.tsx"],"names":[],"mappings":"AA6BA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/uploadVideo/index.tsx"],"names":[],"mappings":"AA6BA,eAAO,MAAM,KAAK,KAkLhB,CAAC"}
|
package/package.json
CHANGED
package/src/components/MText.tsx
CHANGED
|
@@ -9,7 +9,7 @@ export const MText = (props) => {
|
|
|
9
9
|
{...props}
|
|
10
10
|
style={[
|
|
11
11
|
{
|
|
12
|
-
fontFamily: '
|
|
12
|
+
fontFamily: 'BeVietnamPro-Regular',
|
|
13
13
|
color: '#211F1F',
|
|
14
14
|
fontSize: 14,
|
|
15
15
|
},
|
|
@@ -25,7 +25,7 @@ export const MTextInput = React.forwardRef((props, ref) => (
|
|
|
25
25
|
ref={ref}
|
|
26
26
|
{...props}
|
|
27
27
|
style={[
|
|
28
|
-
{ fontFamily: '
|
|
28
|
+
{ fontFamily: 'BeVietnamPro-Regular', color: '#211F1F', fontSize: 14 },
|
|
29
29
|
props.style,
|
|
30
30
|
]}
|
|
31
31
|
/>
|
|
@@ -123,7 +123,7 @@ export const LoginWithPassword = observer(function LoginWithPassword(
|
|
|
123
123
|
height: 40,
|
|
124
124
|
marginVertical: 0,
|
|
125
125
|
paddingHorizontal: 10,
|
|
126
|
-
fontFamily: '
|
|
126
|
+
fontFamily: 'BeVietnamPro-Regular',
|
|
127
127
|
color: '#211F1F',
|
|
128
128
|
backgroundColor: '#FFFFFF',
|
|
129
129
|
}}
|
|
@@ -87,7 +87,7 @@ export const SetPassword = observer(function SetPassword(props: any) {
|
|
|
87
87
|
flex: 1,
|
|
88
88
|
height: 40,
|
|
89
89
|
marginVertical: 0,
|
|
90
|
-
fontFamily: '
|
|
90
|
+
fontFamily: 'BeVietnamPro-Regular',
|
|
91
91
|
color: '#211F1F',
|
|
92
92
|
fontSize: 18,
|
|
93
93
|
}}
|
|
@@ -130,7 +130,7 @@ export const SetPassword = observer(function SetPassword(props: any) {
|
|
|
130
130
|
flex: 1,
|
|
131
131
|
height: 40,
|
|
132
132
|
marginVertical: 0,
|
|
133
|
-
fontFamily: '
|
|
133
|
+
fontFamily: 'BeVietnamPro-Regular',
|
|
134
134
|
color: '#211F1F',
|
|
135
135
|
fontSize: 18,
|
|
136
136
|
}}
|
|
@@ -373,7 +373,7 @@ export default function ReviewInformation(props) {
|
|
|
373
373
|
color: '#333333',
|
|
374
374
|
fontSize: 16,
|
|
375
375
|
fontWeight: '500',
|
|
376
|
-
fontFamily: '
|
|
376
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
377
377
|
},
|
|
378
378
|
]}
|
|
379
379
|
value={values.fullName}
|
|
@@ -397,7 +397,7 @@ export default function ReviewInformation(props) {
|
|
|
397
397
|
color: '#333333',
|
|
398
398
|
fontSize: 16,
|
|
399
399
|
fontWeight: '500',
|
|
400
|
-
fontFamily: '
|
|
400
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
401
401
|
}}
|
|
402
402
|
>
|
|
403
403
|
{values.dob}
|
|
@@ -563,7 +563,7 @@ export default function ReviewInformation(props) {
|
|
|
563
563
|
fontSize: 16,
|
|
564
564
|
fontWeight: '500',
|
|
565
565
|
flex: 1,
|
|
566
|
-
fontFamily: '
|
|
566
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
567
567
|
}}
|
|
568
568
|
>
|
|
569
569
|
{values.houseHoldProvinceName}
|
|
@@ -604,7 +604,7 @@ export default function ReviewInformation(props) {
|
|
|
604
604
|
fontSize: 16,
|
|
605
605
|
fontWeight: '500',
|
|
606
606
|
flex: 1,
|
|
607
|
-
fontFamily: '
|
|
607
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
608
608
|
}}
|
|
609
609
|
>
|
|
610
610
|
{values.houseHoldDistrictName}
|
|
@@ -639,7 +639,7 @@ export default function ReviewInformation(props) {
|
|
|
639
639
|
fontSize: 16,
|
|
640
640
|
fontWeight: '500',
|
|
641
641
|
flex: 1,
|
|
642
|
-
fontFamily: '
|
|
642
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
643
643
|
}}
|
|
644
644
|
>
|
|
645
645
|
{values.houseHoldWardName}
|
|
@@ -833,7 +833,7 @@ export default function ReviewInformation(props) {
|
|
|
833
833
|
fontSize: 16,
|
|
834
834
|
fontWeight: '500',
|
|
835
835
|
flex: 1,
|
|
836
|
-
fontFamily: '
|
|
836
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
837
837
|
}}
|
|
838
838
|
>
|
|
839
839
|
{values.provinceName}
|
|
@@ -901,7 +901,7 @@ export default function ReviewInformation(props) {
|
|
|
901
901
|
fontSize: 16,
|
|
902
902
|
fontWeight: '500',
|
|
903
903
|
flex: 1,
|
|
904
|
-
fontFamily: '
|
|
904
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
905
905
|
}}
|
|
906
906
|
>
|
|
907
907
|
{values.wardName}
|
|
@@ -1011,7 +1011,7 @@ const $textInput: ViewStyle = {
|
|
|
1011
1011
|
borderColor: '#E0E0E0',
|
|
1012
1012
|
height: 40,
|
|
1013
1013
|
paddingHorizontal: 8,
|
|
1014
|
-
fontFamily: '
|
|
1014
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
1015
1015
|
};
|
|
1016
1016
|
|
|
1017
1017
|
const $label: TextStyle = {
|
|
@@ -1065,7 +1065,7 @@ const $error: TextStyle = {
|
|
|
1065
1065
|
color: '#EB5757',
|
|
1066
1066
|
fontSize: 14,
|
|
1067
1067
|
fontStyle: 'italic',
|
|
1068
|
-
fontFamily: '
|
|
1068
|
+
fontFamily: 'BeVietnamPro-Thin',
|
|
1069
1069
|
fontWeight: '300',
|
|
1070
1070
|
marginTop: 5,
|
|
1071
1071
|
};
|
|
@@ -330,7 +330,7 @@ export default function ReviewInformationOther(props) {
|
|
|
330
330
|
fontSize: 16,
|
|
331
331
|
fontWeight: '500',
|
|
332
332
|
flex: 1,
|
|
333
|
-
fontFamily: '
|
|
333
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
334
334
|
}}
|
|
335
335
|
>
|
|
336
336
|
{values.jobName}
|
|
@@ -440,7 +440,7 @@ export default function ReviewInformationOther(props) {
|
|
|
440
440
|
fontSize: 16,
|
|
441
441
|
fontWeight: '500',
|
|
442
442
|
flex: 1,
|
|
443
|
-
fontFamily: '
|
|
443
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
444
444
|
}}
|
|
445
445
|
>
|
|
446
446
|
{values.provinceName}
|
|
@@ -476,7 +476,7 @@ export default function ReviewInformationOther(props) {
|
|
|
476
476
|
fontSize: 16,
|
|
477
477
|
fontWeight: '500',
|
|
478
478
|
flex: 1,
|
|
479
|
-
fontFamily: '
|
|
479
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
480
480
|
}}
|
|
481
481
|
>
|
|
482
482
|
{values.districtName}
|
|
@@ -509,7 +509,7 @@ export default function ReviewInformationOther(props) {
|
|
|
509
509
|
fontSize: 16,
|
|
510
510
|
fontWeight: '500',
|
|
511
511
|
flex: 1,
|
|
512
|
-
fontFamily: '
|
|
512
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
513
513
|
}}
|
|
514
514
|
>
|
|
515
515
|
{values.wardName}
|
|
@@ -572,7 +572,7 @@ export default function ReviewInformationOther(props) {
|
|
|
572
572
|
fontSize: 16,
|
|
573
573
|
fontWeight: '500',
|
|
574
574
|
flex: 1,
|
|
575
|
-
fontFamily: '
|
|
575
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
576
576
|
}}
|
|
577
577
|
>
|
|
578
578
|
{values.relationshipType1?.name}
|
|
@@ -663,7 +663,7 @@ export default function ReviewInformationOther(props) {
|
|
|
663
663
|
fontSize: 16,
|
|
664
664
|
fontWeight: '500',
|
|
665
665
|
flex: 1,
|
|
666
|
-
fontFamily: '
|
|
666
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
667
667
|
}}
|
|
668
668
|
>
|
|
669
669
|
{values.relationshipType2?.name}
|
|
@@ -777,7 +777,7 @@ const $textInput: ViewStyle = {
|
|
|
777
777
|
borderColor: '#E0E0E0',
|
|
778
778
|
height: 40,
|
|
779
779
|
paddingHorizontal: 8,
|
|
780
|
-
fontFamily: '
|
|
780
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
781
781
|
};
|
|
782
782
|
|
|
783
783
|
const $label: TextStyle = {
|
|
@@ -820,7 +820,7 @@ const $error: TextStyle = {
|
|
|
820
820
|
color: '#EB5757',
|
|
821
821
|
fontSize: 14,
|
|
822
822
|
fontStyle: 'italic',
|
|
823
|
-
fontFamily: '
|
|
823
|
+
fontFamily: 'BeVietnamPro-Thin',
|
|
824
824
|
fontWeight: '300',
|
|
825
825
|
marginTop: 5,
|
|
826
826
|
};
|
|
@@ -450,7 +450,7 @@ export default function ReviewLoan(props: any) {
|
|
|
450
450
|
fontSize: 16,
|
|
451
451
|
fontWeight: '500',
|
|
452
452
|
flex: 1,
|
|
453
|
-
fontFamily: '
|
|
453
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
454
454
|
}}
|
|
455
455
|
>
|
|
456
456
|
{
|
|
@@ -497,7 +497,7 @@ export default function ReviewLoan(props: any) {
|
|
|
497
497
|
fontSize: 16,
|
|
498
498
|
fontWeight: '500',
|
|
499
499
|
flex: 1,
|
|
500
|
-
fontFamily: '
|
|
500
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
501
501
|
}}
|
|
502
502
|
>
|
|
503
503
|
{values?.loanTime ? `${values?.loanTime} tháng` : ''}
|
|
@@ -530,7 +530,7 @@ export default function ReviewLoan(props: any) {
|
|
|
530
530
|
fontSize: 16,
|
|
531
531
|
fontWeight: '500',
|
|
532
532
|
flex: 1,
|
|
533
|
-
fontFamily: '
|
|
533
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
534
534
|
}}
|
|
535
535
|
>
|
|
536
536
|
{values?.firstPaymentDate}
|
|
@@ -795,7 +795,7 @@ export default function ReviewLoan(props: any) {
|
|
|
795
795
|
fontSize: 16,
|
|
796
796
|
fontWeight: '500',
|
|
797
797
|
flex: 1,
|
|
798
|
-
fontFamily: '
|
|
798
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
799
799
|
}}
|
|
800
800
|
>
|
|
801
801
|
{values.bankName}
|
|
@@ -871,7 +871,7 @@ export default function ReviewLoan(props: any) {
|
|
|
871
871
|
fontSize: 16,
|
|
872
872
|
fontWeight: '500',
|
|
873
873
|
flex: 1,
|
|
874
|
-
fontFamily: '
|
|
874
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
875
875
|
}}
|
|
876
876
|
>
|
|
877
877
|
{values?.brand}
|
|
@@ -905,7 +905,7 @@ export default function ReviewLoan(props: any) {
|
|
|
905
905
|
fontSize: 16,
|
|
906
906
|
fontWeight: '500',
|
|
907
907
|
flex: 1,
|
|
908
|
-
fontFamily: '
|
|
908
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
909
909
|
}}
|
|
910
910
|
>
|
|
911
911
|
{values?.yearCar}
|
|
@@ -937,7 +937,7 @@ export default function ReviewLoan(props: any) {
|
|
|
937
937
|
fontSize: 16,
|
|
938
938
|
fontWeight: '500',
|
|
939
939
|
flex: 1,
|
|
940
|
-
fontFamily: '
|
|
940
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
941
941
|
}}
|
|
942
942
|
>
|
|
943
943
|
{values.vehicles}
|
|
@@ -1093,7 +1093,7 @@ export default function ReviewLoan(props: any) {
|
|
|
1093
1093
|
fontSize: 16,
|
|
1094
1094
|
fontWeight: '500',
|
|
1095
1095
|
flex: 1,
|
|
1096
|
-
fontFamily: '
|
|
1096
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
1097
1097
|
}}
|
|
1098
1098
|
>
|
|
1099
1099
|
{
|
|
@@ -1129,7 +1129,7 @@ export default function ReviewLoan(props: any) {
|
|
|
1129
1129
|
fontSize: 16,
|
|
1130
1130
|
fontWeight: '500',
|
|
1131
1131
|
flex: 1,
|
|
1132
|
-
fontFamily: '
|
|
1132
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
1133
1133
|
}}
|
|
1134
1134
|
>
|
|
1135
1135
|
{
|
|
@@ -1208,7 +1208,7 @@ const $textInput: ViewStyle = {
|
|
|
1208
1208
|
borderColor: '#E0E0E0',
|
|
1209
1209
|
height: 40,
|
|
1210
1210
|
paddingHorizontal: 8,
|
|
1211
|
-
fontFamily: '
|
|
1211
|
+
fontFamily: 'BeVietnamPro-Medium',
|
|
1212
1212
|
};
|
|
1213
1213
|
|
|
1214
1214
|
const $label: TextStyle = {
|
|
@@ -1251,7 +1251,7 @@ const $error: TextStyle = {
|
|
|
1251
1251
|
color: '#EB5757',
|
|
1252
1252
|
fontSize: 14,
|
|
1253
1253
|
fontStyle: 'italic',
|
|
1254
|
-
fontFamily: '
|
|
1254
|
+
fontFamily: 'BeVietnamPro-Thin',
|
|
1255
1255
|
fontWeight: '300',
|
|
1256
1256
|
marginTop: 5,
|
|
1257
1257
|
};
|
|
@@ -112,7 +112,7 @@ export const Video = observer(function Video(props: any) {
|
|
|
112
112
|
flex: 1,
|
|
113
113
|
}}
|
|
114
114
|
>
|
|
115
|
-
<MHeader title="" onBack={() => navigation.goBack()} />
|
|
115
|
+
<MHeader title="Quay video" onBack={() => navigation.goBack()} />
|
|
116
116
|
<SafeAreaView style={{ flex: 1, backgroundColor: 'white' }}>
|
|
117
117
|
<View style={{ flex: 1, justifyContent: 'center' }}>
|
|
118
118
|
{count === 0 && (
|
|
@@ -133,6 +133,7 @@ export const Video = observer(function Video(props: any) {
|
|
|
133
133
|
style={{
|
|
134
134
|
color: 'white',
|
|
135
135
|
fontSize: 16,
|
|
136
|
+
textAlign: 'center',
|
|
136
137
|
}}
|
|
137
138
|
>
|
|
138
139
|
{content}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Instructions for adding custom fonts to your ignite-bowser app:
|
|
2
|
-
|
|
3
|
-
## For Expo Projects
|
|
4
|
-
|
|
5
|
-
You're lucky. Most of the work is done for you. Just download the `TTF` or `OTF` files you want to use, place them in `./app/theme/fonts/` and load them in the `index.tsx` file in that same directory.
|
|
6
|
-
|
|
7
|
-
ignote-bowser integrated `expo-fonts` according to [this guide](https://docs.expo.io/versions/latest/sdk/font/).
|
|
8
|
-
|
|
9
|
-
## For Non-Expo Projects
|
|
10
|
-
|
|
11
|
-
1. Find a font in `TTF` or `OTF` format that you like and put it in `./assets/fonts/`. I picked [this one](https://fonts.google.com/specimen/Shadows+Into+Light).
|
|
12
|
-
2. Now run `npx react-native link`. Even though we're past react native 0.60 we can still use this command to link the fonts. This is a one-way operation. You'll have to remove fonts yourself later if you want to remove them from your app. This will add items to your xcode project and `Info.plist` file as well as putting some files in place for android to bundle (specifically, it will move the font files to `./android/app/src/main/assets/).
|
|
13
|
-
3. Both iOS and Android changes must be committed to source control, but sometimes other common libraries like `react-native-vector-icons` may mess with this process and add some fonts you don't intend to ship. Make sure to review these changes carefully before pushing any changes to source control.
|
|
14
|
-
4. The tricky part is next: knowing what font family to use. iOS uses the family name like `{fontFamily: 'ShadowsIntoLight'}` whereas on android, you must include all the different variations of the font you will use and reference them by their _filename_. So I downloaded `ShadowsIntoLight-Regular.ttf` that means android must use `{fontFamily: 'ShadowsIntoLight-Regular'}` (yes, it's case sensitive 🙄). [There are components to help you deal with this](https://github.com/lendup/react-native-cross-platform-text) or you can roll your own based on your needs and something like:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
const CUSTOM_FONT_TEXT: TextStyle = {
|
|
18
|
-
fontFamily: Platform.select({
|
|
19
|
-
ios: "ShadowsIntoLight", // The font family name
|
|
20
|
-
android: "ShadowsIntoLight-Regular", // The file name
|
|
21
|
-
}),
|
|
22
|
-
// ... whatever else
|
|
23
|
-
}
|
|
24
|
-
```
|
|
Binary file
|
|
Binary file
|