mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at responsive-updates 57 lines 1.3 kB view raw
1import React from 'react' 2import LinearGradient from 'react-native-linear-gradient' 3import { 4 ActivityIndicator, 5 StyleSheet, 6 TouchableOpacity, 7 View, 8} from 'react-native' 9import {Text} from '../../util/text/Text' 10import {s, gradients, colors} from 'lib/styles' 11 12export function SendReportButton({ 13 onPress, 14 isProcessing, 15}: { 16 onPress: () => void 17 isProcessing: boolean 18}) { 19 // loading state 20 // = 21 if (isProcessing) { 22 return ( 23 <View style={[styles.btn, s.mt10]}> 24 <ActivityIndicator /> 25 </View> 26 ) 27 } 28 return ( 29 <TouchableOpacity 30 testID="sendReportBtn" 31 style={s.mt10} 32 onPress={onPress} 33 accessibilityRole="button" 34 accessibilityLabel="Report post" 35 accessibilityHint={`Reports post with reason and details`}> 36 <LinearGradient 37 colors={[gradients.blueLight.start, gradients.blueLight.end]} 38 start={{x: 0, y: 0}} 39 end={{x: 1, y: 1}} 40 style={[styles.btn]}> 41 <Text style={[s.white, s.bold, s.f18]}>Send Report</Text> 42 </LinearGradient> 43 </TouchableOpacity> 44 ) 45} 46 47const styles = StyleSheet.create({ 48 btn: { 49 flexDirection: 'row', 50 alignItems: 'center', 51 justifyContent: 'center', 52 width: '100%', 53 borderRadius: 32, 54 padding: 14, 55 backgroundColor: colors.gray1, 56 }, 57})