Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request GetStream#254 from BetterSocial/feat/credder
Browse files Browse the repository at this point in the history
Feat/credder
  • Loading branch information
fajarism committed Jun 7, 2022
2 parents 407870c + 64770ca commit 67d454c
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ android {
applicationId "org.bettersocial"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 62
versionName "1.28.1"
versionCode 67
versionName "1.28.7"
}
splits {
abi {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Card.propTypes = {
const styles = StyleSheet.create({
credderRating: {
// height: 24,
height: 15,
height: 16,
alignSelf: 'center',
},
link: {
Expand Down
14 changes: 9 additions & 5 deletions src/components/CredderRating/FeedCredderRating.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const FeedCredderRating = ({ containerStyle = {}, iconSize = 14, scoreSize = 16,

return <View style={{ ...styles.credderRatingContainer, ...containerStyle }}>
{__renderCredderRatingIcon()}
<Text style={styles.credderRating(scoreSize)}>{__renderCredderRatingScore()}</Text>
<Text style={styles.credderRating(scoreSize, score)}>{__renderCredderRatingScore()}</Text>
</View >
}

Expand All @@ -36,14 +36,18 @@ const styles = StyleSheet.create({
credderIcon: {
alignSelf: "center",
},
credderRating: (fontSize) => {
credderRating: (fontSize, score) => {
return {
fontSize,
fontFamily: fonts.inter[500],
color: COLORS.black,
fontFamily: fonts.inter[400],
color: COLORS.gray4,
alignSelf: 'center',
textAlign: 'center',
// textAlign: 'center',
marginLeft: 4,
lineHeight: 15,
// marginTop: 0,
marginTop: (!score || score < 0) ? -1.2 : 0,
// backgroundColor: 'red',
}
},
credderRatingContainer: {
Expand Down
13 changes: 7 additions & 6 deletions src/components/Search/SearchModal.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import * as React from 'react';
import Modal from 'react-native-modal';
import {
View,
Text,
StyleSheet,
Dimensions,
StyleSheet,
Text,
TouchableNativeFeedback,
View,
} from 'react-native';

import Modal from 'react-native-modal';

import AutoFocusTextArea from '../TextArea/AutoFocusTextArea';
import CrossIcon from '../../../assets/icons/cross.svg';
import StringConstant from '../../utils/string/StringConstant';
import { displayFormattedSearchLocations } from '../../utils/string/StringUtils';
import AutoFocusTextArea from '../TextArea/AutoFocusTextArea';

const width = Dimensions.get('screen').width;

Expand Down Expand Up @@ -55,6 +54,8 @@ const SearchModal = (props) => {
value={props.value}
placeholder={props.placeholder ? props.placeholder : ''}
placeholderTextColor="#BDBDBD"
multiline={false}
returnKeyType="search"
/>
</View>
{props.isLoading ? <Text>Please wait...</Text> : null}
Expand Down
2 changes: 1 addition & 1 deletion src/navigations/root-stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const RootStact = () => {
await client?.disconnectUser();
};
}, []);
console.log('kurama',profileState)
// console.log('kurama',profileState)
return (
<View
style={{
Expand Down
1 change: 1 addition & 0 deletions src/screens/DiscoveryScreen/elements/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const DiscoverySearch = ({onPress, showBackButton = false, onContainerClicked =
onFocus={() => __handleFocus(true)}
onBlur={() => __handleFocus(false)}
multiline={false}
returnKeyType="search"
placeholder={StringConstant.discoverySearchBarPlaceholder}
placeholderTextColor={COLORS.gray1}
style={styles.input} />
Expand Down
2 changes: 1 addition & 1 deletion src/screens/NewsScreen/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Header = ({ image, domain, time, item }) => {
{new Date(time).toLocaleDateString()}
</Text>
<View style={styles.point} />
<FeedCredderRating containerStyle={{ height: 15, alignSelf: 'center' }}
<FeedCredderRating containerStyle={{ height: 16, alignSelf: 'center' }}
score={item?.domain?.credderScore} scoreSize={12}
iconSize={16} />
</View>
Expand Down
2 changes: 1 addition & 1 deletion src/screens/WebView/HelpCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const HelpCenter = () => {
<Header title="Help Center" onPress={() => navigator.goBack()} />
</SafeAreaView>
<WebView
androidHardwareAccelerationDisabled={true}
androidHardwareAccelerationDisabled={false}
source={{ uri: 'https://bettersocial.org/help' }}
showsVerticalScrollIndicator={false}
startInLoadingState={true}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/WebView/PrivacyPolicies.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const PrivacyPolicies = () => {
<Header title="Privacy Policies" onPress={() => navigator.goBack()} />
</SafeAreaView>
<WebView
androidHardwareAccelerationDisabled={true}
androidHardwareAccelerationDisabled={false}
source={{ uri: 'https://bettersocial.org/privacy' }}
showsVerticalScrollIndicator={false}
startInLoadingState={true}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/WhotoFollow/elements/ItemUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const ItemUser = ({photo, username, bio, followed, onPress, userid}) => {
/>
<View style={styles.containerTextCard}>
<Text style={styles.textFullName}>{username}</Text>
<Text style={styles.textUsername} numberOfLines={1}>{bio ? bio + bio + bio + bio + bio + bio + bio + bio : ''}</Text>
<Text style={styles.textUsername} numberOfLines={1}>{bio ? bio : ''}</Text>
</View>
</View>
<View style={styles.containerButton}>
Expand Down
1 change: 1 addition & 0 deletions src/utils/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const COLORS = {
gray: '#6A6A6A',
gray1: '#C4C4C4',
gray6: '#F2F2F2',
gray4: '#4A4A4A',
greyseries: '#333333',
holytosca: '#00ADB5',
holyTosca: '#00ADB5',
Expand Down

0 comments on commit 67d454c

Please sign in to comment.