@plusscommunities/pluss-core-app 6.1.7 → 6.1.8-auth.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/dist/module/actions/FollowerActions.js +4 -4
- package/dist/module/actions/FollowerActions.js.map +1 -1
- package/dist/module/actions/MediaActions.js +1 -1
- package/dist/module/actions/MediaActions.js.map +1 -1
- package/dist/module/actions/ResidentActions.js +1 -1
- package/dist/module/actions/ResidentActions.js.map +1 -1
- package/dist/module/actions/UserActions.js +1 -1
- package/dist/module/actions/UserActions.js.map +1 -1
- package/dist/module/actions/UserSettingsActions.js +1 -1
- package/dist/module/actions/UserSettingsActions.js.map +1 -1
- package/dist/module/actions/index.js +5 -5
- package/dist/module/actions/index.js.map +1 -1
- package/dist/module/actions/types.js +16 -16
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/apis/analyticsActions.js +5 -5
- package/dist/module/apis/analyticsActions.js.map +1 -1
- package/dist/module/apis/contactActions.js +6 -6
- package/dist/module/apis/contactActions.js.map +1 -1
- package/dist/module/apis/eventActions.js +28 -28
- package/dist/module/apis/eventActions.js.map +1 -1
- package/dist/module/apis/fileActions.js +21 -28
- package/dist/module/apis/fileActions.js.map +1 -1
- package/dist/module/apis/followerActions.js +8 -8
- package/dist/module/apis/followerActions.js.map +1 -1
- package/dist/module/apis/index.js +12 -12
- package/dist/module/apis/index.js.map +1 -1
- package/dist/module/apis/notificationActions.js +17 -17
- package/dist/module/apis/notificationActions.js.map +1 -1
- package/dist/module/apis/profileActions.js +4 -4
- package/dist/module/apis/profileActions.js.map +1 -1
- package/dist/module/apis/reactionActions.js +15 -15
- package/dist/module/apis/reactionActions.js.map +1 -1
- package/dist/module/apis/settingActions.js +6 -6
- package/dist/module/apis/settingActions.js.map +1 -1
- package/dist/module/apis/stringActions.js +8 -8
- package/dist/module/apis/stringActions.js.map +1 -1
- package/dist/module/apis/typeActions.js +4 -4
- package/dist/module/apis/typeActions.js.map +1 -1
- package/dist/module/apis/userActions.js +8 -8
- package/dist/module/apis/userActions.js.map +1 -1
- package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/dist/module/colours.js +26 -29
- package/dist/module/colours.js.map +1 -1
- package/dist/module/components/AddButton.js +8 -8
- package/dist/module/components/AddButton.js.map +1 -1
- package/dist/module/components/AddToCalendarButton.js +30 -29
- package/dist/module/components/AddToCalendarButton.js.map +1 -1
- package/dist/module/components/Attachment.js +10 -9
- package/dist/module/components/Attachment.js.map +1 -1
- package/dist/module/components/AudienceSelectorLauncher.js +11 -11
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -1
- package/dist/module/components/AudienceSelectorPage.js +45 -44
- package/dist/module/components/AudienceSelectorPage.js.map +1 -1
- package/dist/module/components/AutoOffsetImage.js +13 -13
- package/dist/module/components/AutoOffsetImage.js.map +1 -1
- package/dist/module/components/BackButton.js +10 -10
- package/dist/module/components/BackButton.js.map +1 -1
- package/dist/module/components/CalendarPopup.js +21 -21
- package/dist/module/components/CalendarPopup.js.map +1 -1
- package/dist/module/components/CategoryTabs.js +30 -29
- package/dist/module/components/CategoryTabs.js.map +1 -1
- package/dist/module/components/CommentReply.js +36 -34
- package/dist/module/components/CommentReply.js.map +1 -1
- package/dist/module/components/CommentSection.js +74 -74
- package/dist/module/components/CommentSection.js.map +1 -1
- package/dist/module/components/ConfirmPopup.js +21 -20
- package/dist/module/components/ConfirmPopup.js.map +1 -1
- package/dist/module/components/ConfirmationPopup.js +11 -11
- package/dist/module/components/ConfirmationPopup.js.map +1 -1
- package/dist/module/components/DocumentUploader.js +253 -0
- package/dist/module/components/DocumentUploader.js.map +1 -0
- package/dist/module/components/DropDownItem.js +14 -13
- package/dist/module/components/DropDownItem.js.map +1 -1
- package/dist/module/components/DropDownMenu.js +5 -5
- package/dist/module/components/DropDownMenu.js.map +1 -1
- package/dist/module/components/EmptyStateMain.js +10 -9
- package/dist/module/components/EmptyStateMain.js.map +1 -1
- package/dist/module/components/EmptyStateWidget.js +7 -6
- package/dist/module/components/EmptyStateWidget.js.map +1 -1
- package/dist/module/components/FontScaleButton.js +5 -4
- package/dist/module/components/FontScaleButton.js.map +1 -1
- package/dist/module/components/FontScalePopup.js +11 -10
- package/dist/module/components/FontScalePopup.js.map +1 -1
- package/dist/module/components/Forbidden.js +13 -13
- package/dist/module/components/Forbidden.js.map +1 -1
- package/dist/module/components/FormCard.js +4 -4
- package/dist/module/components/FormCard.js.map +1 -1
- package/dist/module/components/FormCardSection.js +20 -18
- package/dist/module/components/FormCardSection.js.map +1 -1
- package/dist/module/components/FormCardSectionOptionLauncher.js +13 -12
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -1
- package/dist/module/components/FormattedText.js +18 -16
- package/dist/module/components/FormattedText.js.map +1 -1
- package/dist/module/components/GenericInput.js +24 -21
- package/dist/module/components/GenericInput.js.map +1 -1
- package/dist/module/components/GenericInputSection.js +27 -26
- package/dist/module/components/GenericInputSection.js.map +1 -1
- package/dist/module/components/Header.js +70 -69
- package/dist/module/components/Header.js.map +1 -1
- package/dist/module/components/Icon.js +109 -0
- package/dist/module/components/Icon.js.map +1 -0
- package/dist/module/components/ImagePopup.js +237 -77
- package/dist/module/components/ImagePopup.js.map +1 -1
- package/dist/module/components/ImageUploadProgress.js +10 -9
- package/dist/module/components/ImageUploadProgress.js.map +1 -1
- package/dist/module/components/ImageUploader.js +22 -13
- package/dist/module/components/ImageUploader.js.map +1 -1
- package/dist/module/components/InlineButton.js +9 -8
- package/dist/module/components/InlineButton.js.map +1 -1
- package/dist/module/components/Input.js +28 -26
- package/dist/module/components/Input.js.map +1 -1
- package/dist/module/components/LoadingCircles.js +20 -20
- package/dist/module/components/LoadingCircles.js.map +1 -1
- package/dist/module/components/LoadingIndicator.js +11 -11
- package/dist/module/components/LoadingIndicator.js.map +1 -1
- package/dist/module/components/LoadingStateWidget.js +5 -5
- package/dist/module/components/LoadingStateWidget.js.map +1 -1
- package/dist/module/components/MediaPlayer.js +32 -32
- package/dist/module/components/MediaPlayer.js.map +1 -1
- package/dist/module/components/MiddlePopup.js +9 -9
- package/dist/module/components/MiddlePopup.js.map +1 -1
- package/dist/module/components/PDFPopup.js +36 -36
- package/dist/module/components/PDFPopup.js.map +1 -1
- package/dist/module/components/PlussChat.js +234 -146
- package/dist/module/components/PlussChat.js.map +1 -1
- package/dist/module/components/PlussChatMessage.js +75 -38
- package/dist/module/components/PlussChatMessage.js.map +1 -1
- package/dist/module/components/PlussChatTime.js +18 -17
- package/dist/module/components/PlussChatTime.js.map +1 -1
- package/dist/module/components/Popup.js +20 -19
- package/dist/module/components/Popup.js.map +1 -1
- package/dist/module/components/PopupMenu.js +15 -14
- package/dist/module/components/PopupMenu.js.map +1 -1
- package/dist/module/components/PositionedImage.js +20 -20
- package/dist/module/components/PositionedImage.js.map +1 -1
- package/dist/module/components/ProfilePic.js +10 -10
- package/dist/module/components/ProfilePic.js.map +1 -1
- package/dist/module/components/RadioButton.js +10 -9
- package/dist/module/components/RadioButton.js.map +1 -1
- package/dist/module/components/Reaction.js +18 -17
- package/dist/module/components/Reaction.js.map +1 -1
- package/dist/module/components/Reactions.js +7 -7
- package/dist/module/components/Reactions.js.map +1 -1
- package/dist/module/components/SharingTools.js +29 -28
- package/dist/module/components/SharingTools.js.map +1 -1
- package/dist/module/components/Spinner.js +5 -5
- package/dist/module/components/Spinner.js.map +1 -1
- package/dist/module/components/StickyFooter.js +6 -6
- package/dist/module/components/StickyFooter.js.map +1 -1
- package/dist/module/components/Text.js +57 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TickIcon.js +6 -6
- package/dist/module/components/TickIcon.js.map +1 -1
- package/dist/module/components/Toggle.js +10 -9
- package/dist/module/components/Toggle.js.map +1 -1
- package/dist/module/components/TouchableSearchBar.js +18 -17
- package/dist/module/components/TouchableSearchBar.js.map +1 -1
- package/dist/module/components/UserListPopup.js +20 -19
- package/dist/module/components/UserListPopup.js.map +1 -1
- package/dist/module/components/UserListing.js +41 -40
- package/dist/module/components/UserListing.js.map +1 -1
- package/dist/module/components/VideoPopup.js +20 -20
- package/dist/module/components/VideoPopup.js.map +1 -1
- package/dist/module/components/WarningPopup.js +21 -20
- package/dist/module/components/WarningPopup.js.map +1 -1
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +13 -13
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -1
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +24 -23
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -1
- package/dist/module/components/index.js +59 -57
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +90 -58
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -1
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +64 -64
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -1
- package/dist/module/config.js +6 -1
- package/dist/module/config.js.map +1 -1
- package/dist/module/constants.js +3 -3
- package/dist/module/constants.js.map +1 -1
- package/dist/module/helper.js +83 -82
- package/dist/module/helper.js.map +1 -1
- package/dist/module/index.js +12 -12
- package/dist/module/index.js.map +1 -1
- package/dist/module/js/images/detectFaces.js +6 -6
- package/dist/module/js/images/detectFaces.js.map +1 -1
- package/dist/module/js/images/findLandmarkRange.js +8 -8
- package/dist/module/js/images/findLandmarkRange.js.map +1 -1
- package/dist/module/js/images/getScaledOffset.js.map +1 -1
- package/dist/module/js/site/getSiteLevelFromState.js +2 -2
- package/dist/module/js/site/getSiteLevelFromState.js.map +1 -1
- package/dist/module/js/site/isTVEnabled.js +2 -2
- package/dist/module/js/site/isTVEnabled.js.map +1 -1
- package/dist/module/session.js +2 -2
- package/dist/module/session.js.map +1 -1
- package/dist/module/styles.js +17 -17
- package/dist/module/styles.js.map +1 -1
- package/dist/module/withNavigationFocus.js +30 -0
- package/dist/module/withNavigationFocus.js.map +1 -0
- package/package.json +4 -1
- package/src/actions/FollowerActions.js +36 -32
- package/src/actions/MediaActions.js +25 -20
- package/src/actions/ResidentActions.js +26 -21
- package/src/actions/UserActions.js +22 -22
- package/src/actions/UserSettingsActions.js +11 -11
- package/src/actions/index.js +5 -5
- package/src/actions/types.js +16 -16
- package/src/apis/analyticsActions.js +17 -17
- package/src/apis/contactActions.js +20 -20
- package/src/apis/eventActions.js +153 -144
- package/src/apis/fileActions.js +19 -27
- package/src/apis/followerActions.js +29 -29
- package/src/apis/index.js +12 -12
- package/src/apis/notificationActions.js +44 -44
- package/src/apis/profileActions.js +8 -8
- package/src/apis/reactionActions.js +81 -73
- package/src/apis/settingActions.js +15 -15
- package/src/apis/stringActions.js +29 -25
- package/src/apis/typeActions.js +10 -10
- package/src/apis/userActions.js +93 -93
- package/src/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/src/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/src/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/src/colours.js +116 -96
- package/src/components/AddButton.js +32 -27
- package/src/components/AddToCalendarButton.js +236 -202
- package/src/components/Attachment.js +59 -36
- package/src/components/AudienceSelectorLauncher.js +52 -48
- package/src/components/AudienceSelectorPage.js +353 -311
- package/src/components/AutoOffsetImage.js +237 -196
- package/src/components/BackButton.js +57 -41
- package/src/components/CalendarPopup.js +127 -97
- package/src/components/CategoryTabs.js +208 -163
- package/src/components/CommentReply.js +363 -309
- package/src/components/CommentSection.js +974 -782
- package/src/components/ConfirmPopup.js +141 -110
- package/src/components/ConfirmationPopup.js +80 -69
- package/src/components/DocumentUploader.js +255 -0
- package/src/components/DropDownItem.js +70 -60
- package/src/components/DropDownMenu.js +31 -27
- package/src/components/EmptyStateMain.js +51 -44
- package/src/components/EmptyStateWidget.js +47 -38
- package/src/components/FontScaleButton.js +29 -25
- package/src/components/FontScalePopup.js +67 -56
- package/src/components/Forbidden.js +48 -46
- package/src/components/FormCard.js +21 -17
- package/src/components/FormCardSection.js +284 -233
- package/src/components/FormCardSectionOptionLauncher.js +72 -46
- package/src/components/FormattedText.js +128 -111
- package/src/components/GenericInput.js +168 -136
- package/src/components/GenericInputSection.js +209 -161
- package/src/components/Header.js +620 -474
- package/src/components/Icon.js +119 -0
- package/src/components/ImagePopup.js +425 -206
- package/src/components/ImageUploadProgress.js +49 -41
- package/src/components/ImageUploader.js +23 -13
- package/src/components/InlineButton.js +79 -69
- package/src/components/Input.js +190 -156
- package/src/components/LoadingCircles.js +233 -233
- package/src/components/LoadingIndicator.js +87 -76
- package/src/components/LoadingStateWidget.js +47 -37
- package/src/components/MediaPlayer.js +416 -387
- package/src/components/MiddlePopup.js +50 -32
- package/src/components/PDFPopup.js +198 -159
- package/src/components/PlussChat.js +1271 -986
- package/src/components/PlussChatMessage.js +330 -262
- package/src/components/PlussChatTime.js +57 -53
- package/src/components/Popup.js +138 -116
- package/src/components/PopupMenu.js +140 -110
- package/src/components/PositionedImage.js +281 -237
- package/src/components/ProfilePic.js +122 -113
- package/src/components/RadioButton.js +76 -52
- package/src/components/Reaction.js +134 -96
- package/src/components/Reactions.js +65 -63
- package/src/components/SharingTools.js +136 -122
- package/src/components/Spinner.js +13 -13
- package/src/components/StickyFooter.js +36 -26
- package/src/components/Text.js +62 -0
- package/src/components/TickIcon.js +20 -20
- package/src/components/Toggle.js +74 -73
- package/src/components/TouchableSearchBar.js +68 -50
- package/src/components/UserListPopup.js +161 -124
- package/src/components/UserListing.js +273 -238
- package/src/components/VideoPopup.js +110 -96
- package/src/components/WarningPopup.js +92 -71
- package/src/components/expo-image-picker-multiple/ImageBrowser.js +288 -256
- package/src/components/expo-image-picker-multiple/ImageTile.js +108 -84
- package/src/components/index.js +59 -57
- package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +442 -358
- package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
- package/src/config.js +5 -0
- package/src/constants.js +8 -8
- package/src/helper.js +469 -438
- package/src/index.js +24 -12
- package/src/js/images/detectFaces.js +27 -20
- package/src/js/images/findLandmarkRange.js +97 -90
- package/src/js/images/getScaledOffset.js +80 -75
- package/src/js/site/getSiteLevelFromState.js +26 -26
- package/src/js/site/isTVEnabled.js +10 -10
- package/src/session.js +2 -2
- package/src/styles.js +61 -61
- package/src/withNavigationFocus.js +28 -0
- package/dist/module/components/TextStyle.js +0 -45
- package/dist/module/components/TextStyle.js.map +0 -1
- package/dist/module/fonts/index.js +0 -2
- package/dist/module/fonts/index.js.map +0 -1
- package/dist/module/fonts/pluss60-icons.js +0 -5
- package/dist/module/fonts/pluss60-icons.js.map +0 -1
- package/dist/module/fonts/pluss60-icons.json +0 -1097
- package/src/components/TextStyle.js +0 -48
- package/src/fonts/index.js +0 -1
- package/src/fonts/pluss60-icons.js +0 -6
- package/src/fonts/pluss60-icons.json +0 -1097
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","TextInput","View","Text","TouchableOpacity","connect","COLOUR_TEAL","COLOUR_TANGERINE","TEXT_DARK","TEXT_LIGHT","TEXT_MID","getMainBrandingColourFromState","getDarkBrandingColourFromState","Input","constructor","args","_defineProperty","height","renderInputChage","props","toggleInput","createElement","activeOpacity","onPress","bind","style","fontFamily","color","textAlign","backgroundColor","textDecorationLine","toggleInputStyle","toggleInputText","renderLabel","label","flexDirection","justifyContent","styles","labelStyle","hasLabelError","labelError","colourBrandingMain","width","borderRadius","alignSelf","renderErrorField","hasError","errorStyle","errorText","render","containerStyle","secureTextEntry","placeholder","placeholderTextColor","autoCorrect","multiline","autoGrow","inputStyle","textAlignVertical","textColour","borderBottomColor","borderBottomColour","value","length","forceBottomBorder","borderBottomWidth","Math","max","state","textStyle","onChangeText","keyboardType","selectionColor","colourBrandingDark","underlineColorAndroid","editable","autoCapitalize","autoFocus","onContentSizeChange","event","setState","nativeEvent","contentSize","fontSize","flex","marginBottom","paddingTop","marginTop","mapStateToProps","input"],"sources":["Input.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { TextInput, View, Text, TouchableOpacity } from 'react-native';\nimport { connect } from 'react-redux';\nimport {\n COLOUR_TEAL,\n COLOUR_TANGERINE,\n TEXT_DARK,\n TEXT_LIGHT,\n TEXT_MID,\n getMainBrandingColourFromState,\n getDarkBrandingColourFromState,\n} from '../colours';\n\n/*\nClass Breakdown ------ \n - label: Description tag above the text input\n - value: Users input\n - onChangeText: Sets parent state to users input -- example input: onChangeText={emailLogin => this.setState({ emailLogin })}\n - placeholder: placeholder text when no user input\n - secureTextEntry: used for password input -- hides on front end\n - textColour: define color of user input\n - keyboardType: changes device keyboard exmaples == 'email-address', 'phone-pad' \n - underlineColorAndroid: Android inputs have an underline.. define color here-- defaults to grey\n - editable: locks user input.. use with loading states\n - hasError: renders space for error feedback below input\n - errorText: displays desired text within above view\n*/\n\nclass Input extends Component {\n state = {\n height: 'auto',\n };\n\n renderInputChage() {\n if (this.props.toggleInput != null) {\n return (\n <View>\n <TouchableOpacity activeOpacity={0.9} onPress={this.props.toggleInput.bind(this)}>\n <Text\n style={[\n {\n fontFamily: 'sf-regular',\n color: COLOUR_TEAL,\n textAlign: 'right',\n backgroundColor: 'transparent',\n textDecorationLine: 'underline',\n },\n this.props.toggleInputStyle,\n ]}\n >\n {this.props.toggleInputText}\n </Text>\n </TouchableOpacity>\n </View>\n );\n }\n return null;\n }\n\n renderLabel() {\n if (this.props.label) {\n return (\n <View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>\n <Text\n style={[\n styles.labelStyle,\n this.props.labelStyle,\n this.props.hasLabelError && this.props.labelError && { color: this.props.colourBrandingMain },\n ]}\n >\n {this.props.label}\n </Text>\n {this.props.hasLabelError && (\n <View\n style={[\n {\n height: 5,\n width: 5,\n borderRadius: 3,\n backgroundColor: COLOUR_TEAL,\n alignSelf: 'center',\n },\n this.props.labelError && { backgroundColor: this.props.colourBrandingMain },\n ]}\n />\n )}\n </View>\n );\n }\n return null;\n }\n\n renderErrorField() {\n if (this.props.hasError) {\n return (\n <View style={[{ justifyContent: 'center' }, this.props.errorStyle && this.props.errorText !== ' ' && this.props.errorStyle]}>\n <Text style={[styles.errorText]}>{this.props.errorText}</Text>\n </View>\n );\n }\n return null;\n }\n\n render() {\n return (\n <View style={[styles.containerStyle, this.props.containerStyle]}>\n {this.renderLabel()}\n <TextInput\n secureTextEntry={this.props.secureTextEntry}\n placeholder={this.props.placeholder}\n placeholderTextColor={this.props.placeholderTextColor}\n autoCorrect={this.props.autoCorrect != null ? this.props.autoCorrect : false}\n multiline={this.props.multiline != null ? this.props.multiline : false}\n autoGrow={this.props.autoGrow != null ? this.props.autoGrow : false}\n style={[\n styles.inputStyle,\n {\n textAlignVertical: this.props.autoGrow != null ? 'top' : 'center',\n color: this.props.textColour,\n borderBottomColor:\n this.props.borderBottomColour != null\n ? this.props.value.length > 0 || this.props.errorText !== ' ' || this.props.forceBottomBorder\n ? this.props.borderBottomColour\n : TEXT_MID\n : 'rgba(0,0,0,0)',\n borderBottomWidth: this.props.borderBottomColour != null ? 1 : 0,\n height: this.props.autoGrow != null ? Math.max(30, this.state.height) : 'auto',\n },\n this.props.textStyle,\n ]}\n value={this.props.value}\n onChangeText={this.props.onChangeText}\n keyboardType={this.props.keyboardType}\n selectionColor={this.props.colourBrandingDark}\n underlineColorAndroid={this.props.underlineColorAndroid != null ? this.props.underlineColorAndroid : 'rgba(0,0,0,0)'}\n editable={this.props.editable != null ? this.props.editable : true}\n autoCapitalize={this.props.autoCapitalize != null ? this.props.autoCapitalize : 'sentences'}\n autoFocus={this.props.autoFocus}\n onContentSizeChange={event => {\n this.setState({ height: event.nativeEvent.contentSize.height });\n }}\n />\n {this.renderInputChage()}\n {this.renderErrorField()}\n </View>\n );\n }\n}\n\nconst styles = {\n labelStyle: {\n fontSize: 15,\n backgroundColor: 'transparent',\n fontFamily: 'sf-semibold',\n color: TEXT_DARK,\n },\n inputStyle: {\n flex: 1,\n marginBottom: 2,\n paddingTop: 0,\n fontSize: 18,\n color: TEXT_DARK,\n fontFamily: 'sf-regular',\n borderBottomColor: TEXT_LIGHT,\n },\n containerStyle: {\n width: '100%',\n flexDirection: 'column',\n },\n errorText: {\n backgroundColor: 'transparent',\n color: COLOUR_TANGERINE,\n fontSize: 13,\n fontFamily: 'sf-semibold',\n marginTop: 0,\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n colourBrandingDark: getDarkBrandingColourFromState(state),\n };\n};\n\nconst input = connect(mapStateToProps, {})(Input);\nexport { input as Input };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,SAAS,EAAEC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AACtE,SAASC,OAAO,QAAQ,aAAa;AACrC,SACEC,WAAW,EACXC,gBAAgB,EAChBC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,8BAA8B,EAC9BC,8BAA8B,QACzB,YAAY;;AAEnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,KAAK,SAASb,SAAS,CAAC;EAAAc,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,gBACpB;MACNC,MAAM,EAAE;IACV,CAAC;EAAA;EAEDC,gBAAgBA,CAAA,EAAG;IACjB,IAAI,IAAI,CAACC,KAAK,CAACC,WAAW,IAAI,IAAI,EAAE;MAClC,oBACErB,KAAA,CAAAsB,a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ACF,CAAC;AAED,MAAMC,eAAe,GAAGpB,KAAK,IAAI;EAC/B,OAAO;IACL3B,kBAAkB,EAAE9B,8BAA8B,CAACyD,KAAK,CAAC;IACzDK,kBAAkB,EAAE7D,8BAA8B,CAACwD,KAAK;EAC1D,CAAC;AACH,CAAC;AAED,MAAMqB,KAAK,GAAGpF,OAAO,CAACmF,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC3E,KAAK,CAAC;AACjD,SAAS4E,KAAK,IAAI5E,KAAK","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Component","TextInput","View","TouchableOpacity","Text","connect","COLOUR_TEAL","COLOUR_TANGERINE","TEXT_DARK","TEXT_LIGHT","TEXT_MID","getMainBrandingColourFromState","getDarkBrandingColourFromState","Input","constructor","args","_defineProperty","height","renderInputChage","props","toggleInput","createElement","activeOpacity","onPress","bind","style","fontFamily","color","textAlign","backgroundColor","textDecorationLine","toggleInputStyle","toggleInputText","renderLabel","label","flexDirection","justifyContent","styles","labelStyle","hasLabelError","labelError","colourBrandingMain","width","borderRadius","alignSelf","renderErrorField","hasError","errorStyle","errorText","render","containerStyle","maxFontSizeMultiplier","secureTextEntry","placeholder","placeholderTextColor","autoCorrect","multiline","autoGrow","inputStyle","textAlignVertical","textColour","borderBottomColor","borderBottomColour","value","length","forceBottomBorder","borderBottomWidth","Math","max","state","textStyle","onChangeText","keyboardType","selectionColor","colourBrandingDark","underlineColorAndroid","editable","autoCapitalize","autoFocus","onContentSizeChange","event","setState","nativeEvent","contentSize","fontSize","flex","marginBottom","paddingTop","marginTop","mapStateToProps","input"],"sources":["Input.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { TextInput, View, TouchableOpacity } from \"react-native\";\nimport { Text } from \".\";\nimport { connect } from \"react-redux\";\nimport {\n\tCOLOUR_TEAL,\n\tCOLOUR_TANGERINE,\n\tTEXT_DARK,\n\tTEXT_LIGHT,\n\tTEXT_MID,\n\tgetMainBrandingColourFromState,\n\tgetDarkBrandingColourFromState,\n} from \"../colours\";\n\n/*\nClass Breakdown ------ \n - label: Description tag above the text input\n - value: Users input\n - onChangeText: Sets parent state to users input -- example input: onChangeText={emailLogin => this.setState({ emailLogin })}\n - placeholder: placeholder text when no user input\n - secureTextEntry: used for password input -- hides on front end\n - textColour: define color of user input\n - keyboardType: changes device keyboard exmaples == 'email-address', 'phone-pad' \n - underlineColorAndroid: Android inputs have an underline.. define color here-- defaults to grey\n - editable: locks user input.. use with loading states\n - hasError: renders space for error feedback below input\n - errorText: displays desired text within above view\n*/\n\nclass Input extends Component {\n\tstate = {\n\t\theight: \"auto\",\n\t};\n\n\trenderInputChage() {\n\t\tif (this.props.toggleInput != null) {\n\t\t\treturn (\n\t\t\t\t<View>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tactiveOpacity={0.9}\n\t\t\t\t\t\tonPress={this.props.toggleInput.bind(this)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfontFamily: \"sf-regular\",\n\t\t\t\t\t\t\t\t\tcolor: COLOUR_TEAL,\n\t\t\t\t\t\t\t\t\ttextAlign: \"right\",\n\t\t\t\t\t\t\t\t\tbackgroundColor: \"transparent\",\n\t\t\t\t\t\t\t\t\ttextDecorationLine: \"underline\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tthis.props.toggleInputStyle,\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.props.toggleInputText}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trenderLabel() {\n\t\tif (this.props.label) {\n\t\t\treturn (\n\t\t\t\t<View style={{ flexDirection: \"row\", justifyContent: \"space-between\" }}>\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.labelStyle,\n\t\t\t\t\t\t\tthis.props.labelStyle,\n\t\t\t\t\t\t\tthis.props.hasLabelError &&\n\t\t\t\t\t\t\t\tthis.props.labelError && {\n\t\t\t\t\t\t\t\t\tcolor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.props.label}\n\t\t\t\t\t</Text>\n\t\t\t\t\t{this.props.hasLabelError && (\n\t\t\t\t\t\t<View\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\theight: 5,\n\t\t\t\t\t\t\t\t\twidth: 5,\n\t\t\t\t\t\t\t\t\tborderRadius: 3,\n\t\t\t\t\t\t\t\t\tbackgroundColor: COLOUR_TEAL,\n\t\t\t\t\t\t\t\t\talignSelf: \"center\",\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tthis.props.labelError && {\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trenderErrorField() {\n\t\tif (this.props.hasError) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\t{ justifyContent: \"center\" },\n\t\t\t\t\t\tthis.props.errorStyle &&\n\t\t\t\t\t\t\tthis.props.errorText !== \" \" &&\n\t\t\t\t\t\t\tthis.props.errorStyle,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<Text style={[styles.errorText]}>{this.props.errorText}</Text>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View style={[styles.containerStyle, this.props.containerStyle]}>\n\t\t\t\t{this.renderLabel()}\n\t\t\t\t<TextInput\n\t\t\t\t\tmaxFontSizeMultiplier={1.2}\n\t\t\t\t\tsecureTextEntry={this.props.secureTextEntry}\n\t\t\t\t\tplaceholder={this.props.placeholder}\n\t\t\t\t\tplaceholderTextColor={this.props.placeholderTextColor}\n\t\t\t\t\tautoCorrect={\n\t\t\t\t\t\tthis.props.autoCorrect != null ? this.props.autoCorrect : false\n\t\t\t\t\t}\n\t\t\t\t\tmultiline={\n\t\t\t\t\t\tthis.props.multiline != null ? this.props.multiline : false\n\t\t\t\t\t}\n\t\t\t\t\tautoGrow={this.props.autoGrow != null ? this.props.autoGrow : false}\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.inputStyle,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttextAlignVertical: this.props.autoGrow != null ? \"top\" : \"center\",\n\t\t\t\t\t\t\tcolor: this.props.textColour,\n\t\t\t\t\t\t\tborderBottomColor:\n\t\t\t\t\t\t\t\tthis.props.borderBottomColour != null\n\t\t\t\t\t\t\t\t\t? this.props.value.length > 0 ||\n\t\t\t\t\t\t\t\t\t\tthis.props.errorText !== \" \" ||\n\t\t\t\t\t\t\t\t\t\tthis.props.forceBottomBorder\n\t\t\t\t\t\t\t\t\t\t? this.props.borderBottomColour\n\t\t\t\t\t\t\t\t\t\t: TEXT_MID\n\t\t\t\t\t\t\t\t\t: \"rgba(0,0,0,0)\",\n\t\t\t\t\t\t\tborderBottomWidth: this.props.borderBottomColour != null ? 1 : 0,\n\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\tthis.props.autoGrow != null\n\t\t\t\t\t\t\t\t\t? Math.max(30, this.state.height)\n\t\t\t\t\t\t\t\t\t: \"auto\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tthis.props.textStyle,\n\t\t\t\t\t]}\n\t\t\t\t\tvalue={this.props.value}\n\t\t\t\t\tonChangeText={this.props.onChangeText}\n\t\t\t\t\tkeyboardType={this.props.keyboardType}\n\t\t\t\t\tselectionColor={this.props.colourBrandingDark}\n\t\t\t\t\tunderlineColorAndroid={\n\t\t\t\t\t\tthis.props.underlineColorAndroid != null\n\t\t\t\t\t\t\t? this.props.underlineColorAndroid\n\t\t\t\t\t\t\t: \"rgba(0,0,0,0)\"\n\t\t\t\t\t}\n\t\t\t\t\teditable={this.props.editable != null ? this.props.editable : true}\n\t\t\t\t\tautoCapitalize={\n\t\t\t\t\t\tthis.props.autoCapitalize != null\n\t\t\t\t\t\t\t? this.props.autoCapitalize\n\t\t\t\t\t\t\t: \"sentences\"\n\t\t\t\t\t}\n\t\t\t\t\tautoFocus={this.props.autoFocus}\n\t\t\t\t\tonContentSizeChange={(event) => {\n\t\t\t\t\t\tthis.setState({ height: event.nativeEvent.contentSize.height });\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t{this.renderInputChage()}\n\t\t\t\t{this.renderErrorField()}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tlabelStyle: {\n\t\tfontSize: 15,\n\t\tbackgroundColor: \"transparent\",\n\t\tfontFamily: \"sf-semibold\",\n\t\tcolor: TEXT_DARK,\n\t},\n\tinputStyle: {\n\t\tflex: 1,\n\t\tmarginBottom: 2,\n\t\tpaddingTop: 0,\n\t\tfontSize: 18,\n\t\tcolor: TEXT_DARK,\n\t\tfontFamily: \"sf-regular\",\n\t\tborderBottomColor: TEXT_LIGHT,\n\t},\n\tcontainerStyle: {\n\t\twidth: \"100%\",\n\t\tflexDirection: \"column\",\n\t},\n\terrorText: {\n\t\tbackgroundColor: \"transparent\",\n\t\tcolor: COLOUR_TANGERINE,\n\t\tfontSize: 13,\n\t\tfontFamily: \"sf-semibold\",\n\t\tmarginTop: 0,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t\tcolourBrandingDark: getDarkBrandingColourFromState(state),\n\t};\n};\n\nconst input = connect(mapStateToProps, {})(Input);\nexport { input as Input };\n"],"mappings":";;;AAAA,OAAOA,KAAK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AC,CAClB,CAAC;EAET;AACD;AAEA,MAAMR,MAAM,GAAG;EACdC,UAAU,EAAE;IACX8C,QAAQ,EAAE,EAAE;IACZvD,eAAe,EAAE,aAAa;IAC9BH,UAAU,EAAE,aAAa;IACzBC,KAAK,EAAEnB;EACR,CAAC;EACDkD,UAAU,EAAE;IACX2B,IAAI,EAAE,CAAC;IACPC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,CAAC;IACbH,QAAQ,EAAE,EAAE;IACZzD,KAAK,EAAEnB,SAAS;IAChBkB,UAAU,EAAE,YAAY;IACxBmC,iBAAiB,EAAEpD;EACpB,CAAC;EACDyC,cAAc,EAAE;IACfR,KAAK,EAAE,MAAM;IACbP,aAAa,EAAE;EAChB,CAAC;EACDa,SAAS,EAAE;IACVnB,eAAe,EAAE,aAAa;IAC9BF,KAAK,EAAEpB,gBAAgB;IACvB6E,QAAQ,EAAE,EAAE;IACZ1D,UAAU,EAAE,aAAa;IACzB8D,SAAS,EAAE;EACZ;AACD,CAAC;AAED,MAAMC,eAAe,GAAIpB,KAAK,IAAK;EAClC,OAAO;IACN5B,kBAAkB,EAAE9B,8BAA8B,CAAC0D,KAAK,CAAC;IACzDK,kBAAkB,EAAE9D,8BAA8B,CAACyD,KAAK;EACzD,CAAC;AACF,CAAC;AAED,MAAMqB,KAAK,GAAGrF,OAAO,CAACoF,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC5E,KAAK,CAAC;AACjD,SAAS6E,KAAK,IAAI7E,KAAK","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import { View, Animated } from
|
|
6
|
-
import { connect } from
|
|
7
|
-
import { getMainBrandingColourFromState } from
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { View, Animated } from "react-native";
|
|
6
|
+
import { connect } from "react-redux";
|
|
7
|
+
import { getMainBrandingColourFromState } from "../colours";
|
|
8
8
|
|
|
9
9
|
/* const arr = []
|
|
10
10
|
for (var i = 0; i < 3; i++) {
|
|
@@ -28,23 +28,23 @@ class LoadingCircles extends Component {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
/* constructor() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
super()
|
|
32
|
+
this.state.animatedSizes = [];
|
|
33
|
+
this.state.animatedOpacity = [];
|
|
34
|
+
arr.forEach((value) => {
|
|
35
|
+
this.state.animatedSizes[value] = new Animated.Value(1);
|
|
36
|
+
this.state.animatedOpacity[value] = new Animated.Value(0);
|
|
37
|
+
})
|
|
38
|
+
} */
|
|
39
39
|
|
|
40
40
|
componentDidMount() {
|
|
41
41
|
this.animate();
|
|
42
42
|
/* setTimeout(() => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
this.animate2();
|
|
44
|
+
}, 150);
|
|
45
|
+
setTimeout(() => {
|
|
46
|
+
this.animate3();
|
|
47
|
+
}, 300); */
|
|
48
48
|
}
|
|
49
49
|
animate() {
|
|
50
50
|
Animated.sequence([Animated.parallel([Animated.timing(this.state.animatedSize, {
|
|
@@ -194,15 +194,15 @@ const styles = {
|
|
|
194
194
|
container: {
|
|
195
195
|
width: 30,
|
|
196
196
|
height: 30,
|
|
197
|
-
alignItems:
|
|
198
|
-
justifyContent:
|
|
197
|
+
alignItems: "center",
|
|
198
|
+
justifyContent: "center"
|
|
199
199
|
},
|
|
200
200
|
circle: {
|
|
201
201
|
borderRadius: 15,
|
|
202
202
|
borderWidth: 1
|
|
203
203
|
},
|
|
204
204
|
absolute: {
|
|
205
|
-
position:
|
|
205
|
+
position: "absolute",
|
|
206
206
|
top: 0,
|
|
207
207
|
left: 0,
|
|
208
208
|
right: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","View","Animated","connect","getMainBrandingColourFromState","LoadingCircles","constructor","args","_defineProperty","animatedSize","Value","animatedOpacity","animatedSize2","animatedOpacity2","animatedSize3","animatedOpacity3","animatedSize4","animatedOpacity4","animatedSize5","animatedOpacity5","componentDidMount","animate","sequence","parallel","timing","state","toValue","duration","useNativeDriver","delay","start","render","createElement","style","styles","container","absolute","circle","borderColor","props","color","colourBrandingMain","width","height","opacity","alignItems","justifyContent","borderRadius","borderWidth","position","top","left","right","bottom","mapStateToProps","loadingCircles"],"sources":["LoadingCircles.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { View, Animated } from 'react-native';\nimport { connect } from 'react-redux';\nimport { getMainBrandingColourFromState } from '../colours';\n\n/* const arr = []\nfor (var i = 0; i < 3; i++) {\n arr.push(i);\n} */\n\nclass LoadingCircles extends Component {\n state = {\n animatedSize: new Animated.Value(1),\n animatedOpacity: new Animated.Value(0),\n animatedSize2: new Animated.Value(1),\n animatedOpacity2: new Animated.Value(0),\n animatedSize3: new Animated.Value(1),\n animatedOpacity3: new Animated.Value(0),\n animatedSize4: new Animated.Value(1),\n animatedOpacity4: new Animated.Value(0),\n animatedSize5: new Animated.Value(1),\n animatedOpacity5: new Animated.Value(0),\n };\n\n /* constructor() {\n super()\n this.state.animatedSizes = [];\n this.state.animatedOpacity = [];\n arr.forEach((value) => {\n this.state.animatedSizes[value] = new Animated.Value(1);\n this.state.animatedOpacity[value] = new Animated.Value(0);\n })\n } */\n\n componentDidMount() {\n this.animate();\n /* setTimeout(() => {\n this.animate2();\n }, 150);\n setTimeout(() => {\n this.animate3();\n }, 300); */\n }\n\n animate() {\n Animated.sequence([\n Animated.parallel([\n Animated.timing(this.state.animatedSize, {\n toValue: 20,\n duration: 900,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity, {\n toValue: 1,\n duration: 900,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize2, {\n toValue: 20,\n duration: 900,\n delay: 150,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity2, {\n toValue: 1,\n duration: 900,\n delay: 150,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize3, {\n toValue: 20,\n duration: 900,\n delay: 300,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity3, {\n toValue: 1,\n duration: 900,\n delay: 400,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize4, {\n toValue: 20,\n duration: 900,\n delay: 450,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity4, {\n toValue: 1,\n duration: 900,\n delay: 450,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize5, {\n toValue: 20,\n duration: 900,\n delay: 600,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity5, {\n toValue: 1,\n duration: 900,\n delay: 600,\n useNativeDriver: false,\n }),\n ]),\n\n Animated.parallel([\n Animated.timing(this.state.animatedOpacity, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity2, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity3, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity4, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity5, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n ]),\n\n Animated.parallel([\n Animated.timing(this.state.animatedSize, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize2, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize3, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize4, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize5, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n ]),\n ]).start(() => {\n this.animate();\n });\n }\n\n render() {\n return (\n <View style={styles.container}>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize,\n height: this.state.animatedSize,\n opacity: this.state.animatedOpacity,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize2,\n height: this.state.animatedSize2,\n opacity: this.state.animatedOpacity2,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize3,\n height: this.state.animatedSize3,\n opacity: this.state.animatedOpacity3,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize4,\n height: this.state.animatedSize4,\n opacity: this.state.animatedOpacity4,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize5,\n height: this.state.animatedSize5,\n opacity: this.state.animatedOpacity5,\n },\n ]}\n />\n </View>\n </View>\n );\n }\n}\n\nconst styles = {\n container: {\n width: 30,\n height: 30,\n alignItems: 'center',\n justifyContent: 'center',\n },\n circle: {\n borderRadius: 15,\n borderWidth: 1,\n },\n absolute: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n };\n};\n\nconst loadingCircles = connect(mapStateToProps, {})(LoadingCircles);\nexport { loadingCircles as LoadingCircles };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAC7C,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,8BAA8B,QAAQ,YAAY;;AAE3D;AACA;AACA;AACA;;AAEA,MAAMC,cAAc,SAASL,SAAS,CAAC;EAAAM,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,gBAC7B;MACNC,YAAY,EAAE,IAAIP,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACnCC,eAAe,EAAE,IAAIT,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACtCE,aAAa,EAAE,IAAIV,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACpCG,gBAAgB,EAAE,IAAIX,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACvCI,aAAa,EAAE,IAAIZ,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACpCK,gBAAgB,EAAE,IAAIb,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACvCM,aAAa,EAAE,IAAId,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACpCO,gBAAgB,EAAE,IAAIf,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACvCQ,aAAa,EAAE,IAAIhB,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACpCS,gBAAgB,EAAE,IAAIjB,QAAQ,CAACQ,KAAK,CA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,WAAW,EAAE,IAAI,CAACC,KAAK,CAACC,KAAK,IAAI,IAAI,CAACD,KAAK,CAACE,kBAAkB;QAC9DC,KAAK,EAAE,IAAI,CAACjB,KAAK,CAACP,aAAa;QAC/ByB,MAAM,EAAE,IAAI,CAAClB,KAAK,CAACP,aAAa;QAChC0B,OAAO,EAAE,IAAI,CAACnB,KAAK,CAACN;MACtB,CAAC;IACD,CACH,CACG,CACF,CAAC;EAEX;AACF;AAEA,MAAMe,MAAM,GAAG;EACbC,SAAS,EAAE;IACTO,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVE,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDT,MAAM,EAAE;IACNU,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE;EACf,CAAC;EACDZ,QAAQ,EAAE;IACRa,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV;AACF,CAAC;AAED,MAAMC,eAAe,GAAG7B,KAAK,IAAI;EAC/B,OAAO;IACLgB,kBAAkB,EAAErC,8BAA8B,CAACqB,KAAK;EAC1D,CAAC;AACH,CAAC;AAED,MAAM8B,cAAc,GAAGpD,OAAO,CAACmD,eAAe,EAAE,CAAC,CAAC,CAAC,CAACjD,cAAc,CAAC;AACnE,SAASkD,cAAc,IAAIlD,cAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Component","View","Animated","connect","getMainBrandingColourFromState","LoadingCircles","constructor","args","_defineProperty","animatedSize","Value","animatedOpacity","animatedSize2","animatedOpacity2","animatedSize3","animatedOpacity3","animatedSize4","animatedOpacity4","animatedSize5","animatedOpacity5","componentDidMount","animate","sequence","parallel","timing","state","toValue","duration","useNativeDriver","delay","start","render","createElement","style","styles","container","absolute","circle","borderColor","props","color","colourBrandingMain","width","height","opacity","alignItems","justifyContent","borderRadius","borderWidth","position","top","left","right","bottom","mapStateToProps","loadingCircles"],"sources":["LoadingCircles.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, Animated } from \"react-native\";\nimport { connect } from \"react-redux\";\nimport { getMainBrandingColourFromState } from \"../colours\";\n\n/* const arr = []\nfor (var i = 0; i < 3; i++) {\n arr.push(i);\n} */\n\nclass LoadingCircles extends Component {\n\tstate = {\n\t\tanimatedSize: new Animated.Value(1),\n\t\tanimatedOpacity: new Animated.Value(0),\n\t\tanimatedSize2: new Animated.Value(1),\n\t\tanimatedOpacity2: new Animated.Value(0),\n\t\tanimatedSize3: new Animated.Value(1),\n\t\tanimatedOpacity3: new Animated.Value(0),\n\t\tanimatedSize4: new Animated.Value(1),\n\t\tanimatedOpacity4: new Animated.Value(0),\n\t\tanimatedSize5: new Animated.Value(1),\n\t\tanimatedOpacity5: new Animated.Value(0),\n\t};\n\n\t/* constructor() {\n super()\n this.state.animatedSizes = [];\n this.state.animatedOpacity = [];\n arr.forEach((value) => {\n this.state.animatedSizes[value] = new Animated.Value(1);\n this.state.animatedOpacity[value] = new Animated.Value(0);\n })\n } */\n\n\tcomponentDidMount() {\n\t\tthis.animate();\n\t\t/* setTimeout(() => {\n this.animate2();\n }, 150);\n setTimeout(() => {\n this.animate3();\n }, 300); */\n\t}\n\n\tanimate() {\n\t\tAnimated.sequence([\n\t\t\tAnimated.parallel([\n\t\t\t\tAnimated.timing(this.state.animatedSize, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize2, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 150,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity2, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 150,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize3, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 300,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity3, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 400,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize4, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 450,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity4, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 450,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize5, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 600,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity5, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 600,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t]),\n\n\t\t\tAnimated.parallel([\n\t\t\t\tAnimated.timing(this.state.animatedOpacity, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity2, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity3, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity4, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity5, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t]),\n\n\t\t\tAnimated.parallel([\n\t\t\t\tAnimated.timing(this.state.animatedSize, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize2, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize3, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize4, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize5, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t]),\n\t\t]).start(() => {\n\t\t\tthis.animate();\n\t\t});\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View style={styles.container}>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize2,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize2,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity2,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize3,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize3,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity3,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize4,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize4,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity4,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize5,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize5,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity5,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\twidth: 30,\n\t\theight: 30,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\tcircle: {\n\t\tborderRadius: 15,\n\t\tborderWidth: 1,\n\t},\n\tabsolute: {\n\t\tposition: \"absolute\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tright: 0,\n\t\tbottom: 0,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst loadingCircles = connect(mapStateToProps, {})(LoadingCircles);\nexport { loadingCircles as LoadingCircles };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAC7C,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,8BAA8B,QAAQ,YAAY;;AAE3D;AACA;AACA;AACA;;AAEA,MAAMC,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QAAQ,EAAE;IACTa,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACT;AACD,CAAC;AAED,MAAMC,eAAe,GAAI7B,KAAK,IAAK;EAClC,OAAO;IACNgB,kBAAkB,EAAErC,8BAA8B,CAACqB,KAAK;EACzD,CAAC;AACF,CAAC;AAED,MAAM8B,cAAc,GAAGpD,OAAO,CAACmD,eAAe,EAAE,CAAC,CAAC,CAAC,CAACjD,cAAc,CAAC;AACnE,SAASkD,cAAc,IAAIlD,cAAc","ignoreList":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import { StyleSheet, Animated, Dimensions } from
|
|
6
|
-
import { connect } from
|
|
7
|
-
import { getMainBrandingColourFromState } from
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { StyleSheet, Animated, Dimensions } from "react-native";
|
|
6
|
+
import { connect } from "react-redux";
|
|
7
|
+
import { getMainBrandingColourFromState } from "../colours";
|
|
8
8
|
const DEFAULT_HEIGHT = 4;
|
|
9
|
-
const DEFAULT_WIDTH = Dimensions.get(
|
|
9
|
+
const DEFAULT_WIDTH = Dimensions.get("window").width;
|
|
10
10
|
class LoadingIndicator extends Component {
|
|
11
11
|
constructor(props) {
|
|
12
12
|
super(props);
|
|
@@ -62,15 +62,15 @@ class LoadingIndicator extends Component {
|
|
|
62
62
|
}
|
|
63
63
|
const styles = StyleSheet.create({
|
|
64
64
|
container: {
|
|
65
|
-
alignItems:
|
|
66
|
-
justifyContent:
|
|
67
|
-
overflow:
|
|
68
|
-
backgroundColor:
|
|
69
|
-
width:
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
justifyContent: "center",
|
|
67
|
+
overflow: "hidden",
|
|
68
|
+
backgroundColor: "#fff",
|
|
69
|
+
width: "100%",
|
|
70
70
|
height: 38
|
|
71
71
|
},
|
|
72
72
|
innerContainer: {
|
|
73
|
-
flexDirection:
|
|
73
|
+
flexDirection: "row"
|
|
74
74
|
},
|
|
75
75
|
line: {
|
|
76
76
|
width: DEFAULT_WIDTH
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","StyleSheet","Animated","Dimensions","connect","getMainBrandingColourFromState","DEFAULT_HEIGHT","DEFAULT_WIDTH","get","width","LoadingIndicator","constructor","props","_defineProperty","sequence","timing","state","animatedLeft","toValue","duration","useNativeDriver","delay","start","animate","Value","animatedOpacity","height","componentDidMount","getSnapshotBeforeUpdate","prevProps","componentDidUpdate","visible","render","createElement","View","style","styles","container","opacity","onLayout","line","backgroundColor","colourBrandingMain","left","create","alignItems","justifyContent","overflow","innerContainer","flexDirection","mapStateToProps"],"sources":["LoadingIndicator.js"],"sourcesContent":["import React, { Component } from
|
|
1
|
+
{"version":3,"names":["React","Component","StyleSheet","Animated","Dimensions","connect","getMainBrandingColourFromState","DEFAULT_HEIGHT","DEFAULT_WIDTH","get","width","LoadingIndicator","constructor","props","_defineProperty","sequence","timing","state","animatedLeft","toValue","duration","useNativeDriver","delay","start","animate","Value","animatedOpacity","height","componentDidMount","getSnapshotBeforeUpdate","prevProps","componentDidUpdate","visible","render","createElement","View","style","styles","container","opacity","onLayout","line","backgroundColor","colourBrandingMain","left","create","alignItems","justifyContent","overflow","innerContainer","flexDirection","mapStateToProps"],"sources":["LoadingIndicator.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { StyleSheet, Animated, Dimensions } from \"react-native\";\nimport { connect } from \"react-redux\";\nimport { getMainBrandingColourFromState } from \"../colours\";\n\nconst DEFAULT_HEIGHT = 4;\nconst DEFAULT_WIDTH = Dimensions.get(\"window\").width;\n\nclass LoadingIndicator extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tanimatedLeft: new Animated.Value(-DEFAULT_WIDTH),\n\t\t\tanimatedOpacity: new Animated.Value(0),\n\t\t};\n\t\tthis.height = 0;\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.animate();\n\t}\n\n\tgetSnapshotBeforeUpdate(prevProps) {\n\t\treturn null;\n\t}\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (prevProps.visible !== this.props.visible) {\n\t\t\tAnimated.timing(this.state.animatedOpacity, {\n\t\t\t\ttoValue: this.props.visible ? 0.8 : 0,\n\t\t\t\tduration: 300,\n\t\t\t\tuseNativeDriver: false,\n\t\t\t}).start();\n\t\t}\n\t}\n\n\tanimate = () => {\n\t\tAnimated.sequence([\n\t\t\tAnimated.timing(this.state.animatedLeft, {\n\t\t\t\ttoValue: DEFAULT_WIDTH,\n\t\t\t\tduration: 1500,\n\t\t\t\tuseNativeDriver: false,\n\t\t\t}),\n\t\t\tAnimated.delay(500),\n\t\t\tAnimated.timing(this.state.animatedLeft, {\n\t\t\t\ttoValue: -DEFAULT_WIDTH,\n\t\t\t\tduration: 1500,\n\t\t\t\tuseNativeDriver: false,\n\t\t\t}),\n\t\t\tAnimated.delay(500),\n\t\t]).start(() => {\n\t\t\tthis.animate();\n\t\t});\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<Animated.View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.container,\n\t\t\t\t\tthis.props.style,\n\t\t\t\t\t{ height: DEFAULT_HEIGHT, opacity: this.state.animatedOpacity },\n\t\t\t\t]}\n\t\t\t\tonLayout={this.onLayout}\n\t\t\t>\n\t\t\t\t<Animated.View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.line,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\tleft: this.state.animatedLeft,\n\t\t\t\t\t\t\theight: DEFAULT_HEIGHT,\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t/>\n\t\t\t</Animated.View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\toverflow: \"hidden\",\n\t\tbackgroundColor: \"#fff\",\n\t\twidth: \"100%\",\n\t\theight: 38,\n\t},\n\tinnerContainer: {\n\t\tflexDirection: \"row\",\n\t},\n\tline: {\n\t\twidth: DEFAULT_WIDTH,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nexport default connect(mapStateToProps, {})(LoadingIndicator);\n// export { loadingIndicator as Default };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,UAAU,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAC/D,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,8BAA8B,QAAQ,YAAY;AAE3D,MAAMC,cAAc,GAAG,CAAC;AACxB,MAAMC,aAAa,GAAGJ,UAAU,CAACK,GAAG,CAAC,QAAQ,CAAC,CAACC,KAAK;AAEpD,MAAMC,gBAAgB,SAASV,SAAS,CAAC;EACxCW,WAAWA,CAACC,KAAK,EAAE;IAClB,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,kBA0BJ,MAAM;MACfX,QAAQ,CAACY,QAAQ,CAAC,CACjBZ,QAAQ,CAACa,MAAM,CAAC,IAAI,CAACC,KAAK,CAACC,YAAY,EAAE;QACxCC,OAAO,EAAEX,aAAa;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,MAAM,CAACC,SAAS,EAChB,IAAI,CAACzB,KAAK,CAACuB,KAAK,EAChB;QAAET,MAAM,EAAEpB,cAAc;QAAEgC,OAAO,EAAE,IAAI,CAACtB,KAAK,CAACS;MAAgB,CAAC,CAC9D;MACFc,QAAQ,EAAE,IAAI,CAACA;IAAS,gBAExBxC,KAAA,CAAAkC,aAAA,CAAC/B,QAAQ,CAACgC,IAAI;MACbC,KAAK,EAAE,CACNC,MAAM,CAACI,IAAI,EACX;QACCC,eAAe,EAAE,IAAI,CAAC7B,KAAK,CAAC8B,kBAAkB;QAC9CC,IAAI,EAAE,IAAI,CAAC3B,KAAK,CAACC,YAAY;QAC7BS,MAAM,EAAEpB;MACT,CAAC;IACA,CACF,CACa,CAAC;EAElB;AACD;AAEA,MAAM8B,MAAM,GAAGnC,UAAU,CAAC2C,MAAM,CAAC;EAChCP,SAAS,EAAE;IACVQ,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,QAAQ,EAAE,QAAQ;IAClBN,eAAe,EAAE,MAAM;IACvBhC,KAAK,EAAE,MAAM;IACbiB,MAAM,EAAE;EACT,CAAC;EACDsB,cAAc,EAAE;IACfC,aAAa,EAAE;EAChB,CAAC;EACDT,IAAI,EAAE;IACL/B,KAAK,EAAEF;EACR;AACD,CAAC,CAAC;AAEF,MAAM2C,eAAe,GAAIlC,KAAK,IAAK;EAClC,OAAO;IACN0B,kBAAkB,EAAErC,8BAA8B,CAACW,KAAK;EACzD,CAAC;AACF,CAAC;AAED,eAAeZ,OAAO,CAAC8C,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxC,gBAAgB,CAAC;AAC7D","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { PureComponent } from
|
|
2
|
-
import { View, ScrollView, StyleSheet } from
|
|
3
|
-
import { TEXT_BLUEGREY } from
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { View, ScrollView, StyleSheet } from "react-native";
|
|
3
|
+
import { TEXT_BLUEGREY } from "../colours";
|
|
4
4
|
class LoadingStateWidget extends PureComponent {
|
|
5
5
|
renderPlaceHolder(opacity = 1) {
|
|
6
6
|
return /*#__PURE__*/React.createElement(View, {
|
|
@@ -27,7 +27,7 @@ const styles = StyleSheet.create({
|
|
|
27
27
|
paddingVertical: 5
|
|
28
28
|
},
|
|
29
29
|
titleText: {
|
|
30
|
-
fontFamily:
|
|
30
|
+
fontFamily: "qs-bold",
|
|
31
31
|
fontSize: 16,
|
|
32
32
|
color: TEXT_BLUEGREY
|
|
33
33
|
},
|
|
@@ -38,7 +38,7 @@ const styles = StyleSheet.create({
|
|
|
38
38
|
borderRadius: 4,
|
|
39
39
|
width: 97,
|
|
40
40
|
height: 98,
|
|
41
|
-
backgroundColor:
|
|
41
|
+
backgroundColor: "#e6ebef",
|
|
42
42
|
marginRight: 16
|
|
43
43
|
}
|
|
44
44
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","PureComponent","View","ScrollView","StyleSheet","TEXT_BLUEGREY","LoadingStateWidget","renderPlaceHolder","opacity","createElement","style","styles","item","height","props","render","container","horizontal","itemContainer","create","borderRadius","paddingVertical","titleText","fontFamily","fontSize","color","marginTop","width","backgroundColor","marginRight"],"sources":["LoadingStateWidget.js"],"sourcesContent":["import React, { PureComponent } from
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","ScrollView","StyleSheet","TEXT_BLUEGREY","LoadingStateWidget","renderPlaceHolder","opacity","createElement","style","styles","item","height","props","render","container","horizontal","itemContainer","create","borderRadius","paddingVertical","titleText","fontFamily","fontSize","color","marginTop","width","backgroundColor","marginRight"],"sources":["LoadingStateWidget.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, ScrollView, StyleSheet } from \"react-native\";\nimport { TEXT_BLUEGREY } from \"../colours\";\n\nclass LoadingStateWidget extends PureComponent {\n\trenderPlaceHolder(opacity = 1) {\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[styles.item, { opacity, height: this.props.height - 20 }]}\n\t\t\t/>\n\t\t);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.container,\n\t\t\t\t\tthis.props.height && { height: this.props.height },\n\t\t\t\t\tthis.props.style,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<ScrollView horizontal style={styles.itemContainer}>\n\t\t\t\t\t{this.renderPlaceHolder(0.8)}\n\t\t\t\t\t{this.renderPlaceHolder(0.6)}\n\t\t\t\t\t{this.renderPlaceHolder(0.4)}\n\t\t\t\t\t{this.renderPlaceHolder(0.2)}\n\t\t\t\t</ScrollView>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tborderRadius: 5,\n\t\tpaddingVertical: 5,\n\t},\n\ttitleText: {\n\t\tfontFamily: \"qs-bold\",\n\t\tfontSize: 16,\n\t\tcolor: TEXT_BLUEGREY,\n\t},\n\titemContainer: {\n\t\tmarginTop: 20,\n\t},\n\titem: {\n\t\tborderRadius: 4,\n\t\twidth: 97,\n\t\theight: 98,\n\t\tbackgroundColor: \"#e6ebef\",\n\t\tmarginRight: 16,\n\t},\n});\n\nexport default LoadingStateWidget;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,aAAa,QAAQ,YAAY;AAE1C,MAAMC,kBAAkB,SAASL,aAAa,CAAC;EAC9CM,iBAAiBA,CAACC,OAAO,GAAG,CAAC,EAAE;IAC9B,oBACCR,KAAA,CAAAS,aAAA,CAACP,IAAI;MACJQ,KAAK,EAAE,CAACC,MAAM,CAACC,IAAI,EAAE;QAAEJ,OAAO;QAAEK,MAAM,EAAE,IAAI,CAACC,KAAK,CAACD,MAAM,GAAG;MAAG,CAAC;IAAE,CAClE,CAAC;EAEJ;EAEAE,MAAMA,CAAA,EAAG;IACR,oBACCf,KAAA,CAAAS,aAAA,CAACP,IAAI;MACJQ,KAAK,EAAE,CACNC,MAAM,CAACK,SAAS,EAChB,IAAI,CAACF,KAAK,CAACD,MAAM,IAAI;QAAEA,MAAM,EAAE,IAAI,CAACC,KAAK,CAACD;MAAO,CAAC,EAClD,IAAI,CAACC,KAAK,CAACJ,KAAK;IACf,gBAEFV,KAAA,CAAAS,aAAA,CAACN,UAAU;MAACc,UAAU;MAACP,KAAK,EAAEC,MAAM,CAACO;IAAc,GACjD,IAAI,CAACX,iBAAiB,CAAC,GAAG,CAAC,EAC3B,IAAI,CAACA,iBAAiB,CAAC,GAAG,CAAC,EAC3B,IAAI,CAACA,iBAAiB,CAAC,GAAG,CAAC,EAC3B,IAAI,CAACA,iBAAiB,CAAC,GAAG,CAChB,CACP,CAAC;EAET;AACD;AAEA,MAAMI,MAAM,GAAGP,UAAU,CAACe,MAAM,CAAC;EAChCH,SAAS,EAAE;IACVI,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE;EAClB,CAAC;EACDC,SAAS,EAAE;IACVC,UAAU,EAAE,SAAS;IACrBC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEpB;EACR,CAAC;EACDa,aAAa,EAAE;IACdQ,SAAS,EAAE;EACZ,CAAC;EACDd,IAAI,EAAE;IACLQ,YAAY,EAAE,CAAC;IACfO,KAAK,EAAE,EAAE;IACTd,MAAM,EAAE,EAAE;IACVe,eAAe,EAAE,SAAS;IAC1BC,WAAW,EAAE;EACd;AACD,CAAC,CAAC;AAEF,eAAevB,kBAAkB","ignoreList":[]}
|
|
@@ -2,15 +2,15 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
2
2
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4
4
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
-
import React, { Component } from
|
|
6
|
-
import { View, StyleSheet, Dimensions } from
|
|
7
|
-
import YoutubePlayer, { getYoutubeMeta } from
|
|
8
|
-
import { Vimeo } from
|
|
9
|
-
import { WebView } from
|
|
10
|
-
import { Video } from
|
|
11
|
-
import { Spinner } from
|
|
12
|
-
const SCREEN_HEIGHT = Dimensions.get(
|
|
13
|
-
const SCREEN_WIDTH = Dimensions.get(
|
|
5
|
+
import React, { Component } from "react";
|
|
6
|
+
import { View, StyleSheet, Dimensions } from "react-native";
|
|
7
|
+
import YoutubePlayer, { getYoutubeMeta } from "react-native-youtube-iframe";
|
|
8
|
+
import { Vimeo } from "react-native-vimeo-iframe";
|
|
9
|
+
import { WebView } from "react-native-webview";
|
|
10
|
+
import { Video, ResizeMode } from "expo-av";
|
|
11
|
+
import { Spinner } from "./Spinner";
|
|
12
|
+
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
|
13
|
+
const SCREEN_WIDTH = Dimensions.get("window").width;
|
|
14
14
|
const EXPO_VIDEO_PROPS = {
|
|
15
15
|
rate: 1,
|
|
16
16
|
isMuted: false,
|
|
@@ -28,12 +28,12 @@ class MediaPlayer extends Component {
|
|
|
28
28
|
if (this.checkStreamLoaded) clearInterval(this.checkStreamLoaded);
|
|
29
29
|
});
|
|
30
30
|
_defineProperty(this, "getYoutubeVideoId", url => {
|
|
31
|
-
url = url.replace(/(>|<)/gi,
|
|
31
|
+
url = url.replace(/(>|<)/gi, "").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);
|
|
32
32
|
if (url[2] !== undefined) {
|
|
33
33
|
const ids = url[2].split(/[^0-9a-z_\-]/i);
|
|
34
34
|
return ids[0];
|
|
35
35
|
} else {
|
|
36
|
-
return
|
|
36
|
+
return "";
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
_defineProperty(this, "getVimeoId", url => {
|
|
@@ -46,9 +46,9 @@ class MediaPlayer extends Component {
|
|
|
46
46
|
source,
|
|
47
47
|
useVideoPlayer
|
|
48
48
|
} = this.props;
|
|
49
|
-
const isUrlLink = source && source.startsWith(
|
|
50
|
-
const isYoutube = source && (source.includes(
|
|
51
|
-
const isVimeo = source && source.includes(
|
|
49
|
+
const isUrlLink = source && source.startsWith("http");
|
|
50
|
+
const isYoutube = source && (source.includes("youtube.com/watch?v=") || source.includes("youtu.be/"));
|
|
51
|
+
const isVimeo = source && source.includes("vimeo.com/");
|
|
52
52
|
let heightFactor = 0;
|
|
53
53
|
if (isYoutube) {
|
|
54
54
|
const metadata = await getYoutubeMeta(this.getYoutubeVideoId(source));
|
|
@@ -82,13 +82,13 @@ class MediaPlayer extends Component {
|
|
|
82
82
|
} = this.state;
|
|
83
83
|
try {
|
|
84
84
|
if (playbackLoaded === false || playbackBuffering === true) {
|
|
85
|
-
console.log(
|
|
85
|
+
console.log("Reloading started");
|
|
86
86
|
await this.videoPlayer.loadAsync({
|
|
87
87
|
uri: this.getStreamPlaybackUrl(),
|
|
88
|
-
overrideFileExtensionAndroid:
|
|
88
|
+
overrideFileExtensionAndroid: "m3u8"
|
|
89
89
|
}, EXPO_VIDEO_PROPS, false);
|
|
90
90
|
} else {
|
|
91
|
-
console.log(
|
|
91
|
+
console.log("Already loaded - not reloading");
|
|
92
92
|
}
|
|
93
93
|
this.retryLoading = false;
|
|
94
94
|
} catch {}
|
|
@@ -135,13 +135,13 @@ class MediaPlayer extends Component {
|
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
_defineProperty(this, "onStreamLoadStart", () => {
|
|
138
|
-
console.log(
|
|
138
|
+
console.log("Stream load started");
|
|
139
139
|
this.checkStreamLoaded = setInterval(() => {
|
|
140
140
|
const {
|
|
141
141
|
playbackLoaded
|
|
142
142
|
} = this.state;
|
|
143
143
|
if (playbackLoaded === false) {
|
|
144
|
-
console.log(
|
|
144
|
+
console.log("Stream loading failed unexpectedly");
|
|
145
145
|
this.checkReloadStream(1000, true);
|
|
146
146
|
} else {
|
|
147
147
|
clearInterval(this.checkStreamLoaded);
|
|
@@ -152,7 +152,7 @@ class MediaPlayer extends Component {
|
|
|
152
152
|
console.log(`Stream loaded - isLoaded:${status.isLoaded}, isBuffering:${status.isBuffering}, isPlaying:${status.isPlaying}`);
|
|
153
153
|
});
|
|
154
154
|
_defineProperty(this, "onStreamError", error => {
|
|
155
|
-
console.log(
|
|
155
|
+
console.log("Stream error", error);
|
|
156
156
|
});
|
|
157
157
|
_defineProperty(this, "onStreamStatusUpdate", status => {
|
|
158
158
|
this.setState({
|
|
@@ -187,7 +187,7 @@ class MediaPlayer extends Component {
|
|
|
187
187
|
// console.log('onVideoPlayStatusUpdate', status);
|
|
188
188
|
});
|
|
189
189
|
_defineProperty(this, "onVideoPlayError", error => {
|
|
190
|
-
if (error && error.type ===
|
|
190
|
+
if (error && error.type === "NonFatal") {
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
// console.log('onVideoPlayError', error);
|
|
@@ -210,7 +210,7 @@ class MediaPlayer extends Component {
|
|
|
210
210
|
volume: 50,
|
|
211
211
|
playbackRate: 1,
|
|
212
212
|
playerParams: {
|
|
213
|
-
cc_lang_pref:
|
|
213
|
+
cc_lang_pref: "us",
|
|
214
214
|
showClosedCaptions: true
|
|
215
215
|
}
|
|
216
216
|
}));
|
|
@@ -234,7 +234,7 @@ class MediaPlayer extends Component {
|
|
|
234
234
|
autoPlay: autoPlay,
|
|
235
235
|
controls: true,
|
|
236
236
|
speed: true,
|
|
237
|
-
time:
|
|
237
|
+
time: "0m0s"
|
|
238
238
|
})));
|
|
239
239
|
_defineProperty(this, "getWebviewPlayer", (embedUrl, width, height) => /*#__PURE__*/React.createElement(WebView, {
|
|
240
240
|
startInLoadingState: true,
|
|
@@ -259,7 +259,7 @@ class MediaPlayer extends Component {
|
|
|
259
259
|
}
|
|
260
260
|
}, EXPO_VIDEO_PROPS, {
|
|
261
261
|
shouldPlay: autoPlay,
|
|
262
|
-
resizeMode:
|
|
262
|
+
resizeMode: ResizeMode.CONTAIN,
|
|
263
263
|
useNativeControls: true,
|
|
264
264
|
style: {
|
|
265
265
|
width,
|
|
@@ -356,7 +356,7 @@ class MediaPlayer extends Component {
|
|
|
356
356
|
}
|
|
357
357
|
if (!player && isUrlLink) {
|
|
358
358
|
embedUrl = source;
|
|
359
|
-
console.log(
|
|
359
|
+
console.log("getWebviewPlayer", embedUrl, width, height);
|
|
360
360
|
player = this.getWebviewPlayer(embedUrl, width, height);
|
|
361
361
|
}
|
|
362
362
|
|
|
@@ -379,28 +379,28 @@ class MediaPlayer extends Component {
|
|
|
379
379
|
}, player, showLoading && (!playbackLoaded || playbackBuffering) && /*#__PURE__*/React.createElement(View, {
|
|
380
380
|
style: styles.loadingContainer
|
|
381
381
|
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
382
|
-
color:
|
|
382
|
+
color: "#fff"
|
|
383
383
|
})));
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
const styles = StyleSheet.create({
|
|
387
387
|
container: {
|
|
388
388
|
flex: 1,
|
|
389
|
-
backgroundColor:
|
|
390
|
-
alignItems:
|
|
391
|
-
justifyContent:
|
|
389
|
+
backgroundColor: "#000",
|
|
390
|
+
alignItems: "center",
|
|
391
|
+
justifyContent: "center"
|
|
392
392
|
},
|
|
393
393
|
webView: {
|
|
394
394
|
flex: 1
|
|
395
395
|
},
|
|
396
396
|
loadingContainer: {
|
|
397
|
-
position:
|
|
397
|
+
position: "absolute",
|
|
398
398
|
top: 50,
|
|
399
399
|
left: 0,
|
|
400
400
|
right: 0,
|
|
401
401
|
bottom: 50,
|
|
402
|
-
justifyContent:
|
|
403
|
-
alignItems:
|
|
402
|
+
justifyContent: "center",
|
|
403
|
+
alignItems: "center"
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
export default MediaPlayer;
|