mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 11:51:52 +03:00
Merge branch 'development' of github.com:esteemapp/esteem-mobile into development
This commit is contained in:
commit
f55fdafb23
@ -6,7 +6,7 @@ export default EStyleSheet.create({
|
|||||||
borderTopRightRadius: 8,
|
borderTopRightRadius: 8,
|
||||||
marginTop: 16,
|
marginTop: 16,
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
backgroundColor: '$primaryGray',
|
backgroundColor: '$primaryLightBackground',
|
||||||
height: 60,
|
height: 60,
|
||||||
borderBottomWidth: 2,
|
borderBottomWidth: 2,
|
||||||
},
|
},
|
||||||
|
@ -5,6 +5,7 @@ import FastImage from 'react-native-fast-image';
|
|||||||
// Components
|
// Components
|
||||||
import { TextInput } from '../../textInput';
|
import { TextInput } from '../../textInput';
|
||||||
import { Icon } from '../../icon';
|
import { Icon } from '../../icon';
|
||||||
|
import { ThemeContainer } from '../../../containers';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { getResizedAvatar } from '../../../utils/image';
|
import { getResizedAvatar } from '../../../utils/image';
|
||||||
@ -68,6 +69,7 @@ class FormInputView extends Component {
|
|||||||
height,
|
height,
|
||||||
inputStyle,
|
inputStyle,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
@ -95,19 +97,24 @@ class FormInputView extends Component {
|
|||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
<View style={styles.textInput}>
|
<View style={styles.textInput}>
|
||||||
<TextInput
|
<ThemeContainer>
|
||||||
style={inputStyle}
|
{({ isDarkTheme }) => (
|
||||||
onFocus={() => this.setState({ inputBorderColor: '#357ce6' })}
|
<TextInput
|
||||||
onBlur={() => this.setState({ inputBorderColor: '#e7e7e7' })}
|
style={inputStyle}
|
||||||
autoCapitalize="none"
|
onFocus={() => this.setState({ inputBorderColor: '#357ce6' })}
|
||||||
secureTextEntry={secureTextEntry}
|
onBlur={() => this.setState({ inputBorderColor: '#e7e7e7' })}
|
||||||
height={height}
|
autoCapitalize="none"
|
||||||
placeholder={placeholder}
|
secureTextEntry={secureTextEntry}
|
||||||
editable={isEditable || true}
|
height={height}
|
||||||
textContentType={type}
|
placeholder={placeholder}
|
||||||
onChangeText={this._handleOnChange}
|
editable={isEditable || true}
|
||||||
value={value}
|
textContentType={type}
|
||||||
/>
|
onChangeText={this._handleOnChange}
|
||||||
|
value={value}
|
||||||
|
placeholderTextColor={isDarkTheme ? '#526d91' : '#788187'}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</ThemeContainer>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{value && value.length > 0 ? (
|
{value && value.length > 0 ? (
|
||||||
|
@ -24,7 +24,7 @@ export default EStyleSheet.create({
|
|||||||
},
|
},
|
||||||
buttonWithoutBorder: {
|
buttonWithoutBorder: {
|
||||||
borderWidth: 0,
|
borderWidth: 0,
|
||||||
backgroundColor: '$primaryWhiteLightBackground',
|
backgroundColor: 'transparent',
|
||||||
width: '$deviceWidth / 7',
|
width: '$deviceWidth / 7',
|
||||||
height: '$deviceWidth / 7',
|
height: '$deviceWidth / 7',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Animated, Easing, View } from 'react-native';
|
import { Animated, Easing, View } from 'react-native';
|
||||||
|
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './pinAnimatedInputStyles';
|
import styles from './pinAnimatedInputStyles';
|
||||||
|
|
||||||
class PinAnimatedInput extends PureComponent {
|
class PinAnimatedInput extends Component {
|
||||||
/* Props
|
/* Props
|
||||||
*
|
*
|
||||||
* @prop { string } pin - Description.
|
* @prop { string } pin - Description.
|
||||||
|
@ -31,7 +31,7 @@ const VotersDisplayView = ({ votes, navigation }) => {
|
|||||||
const _renderItem = (item, index) => {
|
const _renderItem = (item, index) => {
|
||||||
const value = `$ ${item.value}`;
|
const value = `$ ${item.value}`;
|
||||||
const percent = `${item.percent}%`;
|
const percent = `${item.percent}%`;
|
||||||
console.log(item);
|
|
||||||
return (
|
return (
|
||||||
<UserListItem
|
<UserListItem
|
||||||
index={index}
|
index={index}
|
||||||
|
@ -119,6 +119,7 @@ class LoginScreen extends PureComponent {
|
|||||||
type="username"
|
type="username"
|
||||||
isFirstImage
|
isFirstImage
|
||||||
value={username}
|
value={username}
|
||||||
|
inputStyle={styles.input}
|
||||||
/>
|
/>
|
||||||
<FormInput
|
<FormInput
|
||||||
rightIconName="lock"
|
rightIconName="lock"
|
||||||
@ -131,6 +132,7 @@ class LoginScreen extends PureComponent {
|
|||||||
isEditable
|
isEditable
|
||||||
secureTextEntry
|
secureTextEntry
|
||||||
type="password"
|
type="password"
|
||||||
|
inputStyle={styles.input}
|
||||||
/>
|
/>
|
||||||
<InformationArea
|
<InformationArea
|
||||||
description={intl.formatMessage({
|
description={intl.formatMessage({
|
||||||
|
@ -39,4 +39,7 @@ export default EStyleSheet.create({
|
|||||||
marginHorizontal: 30,
|
marginHorizontal: 30,
|
||||||
marginVertical: 10,
|
marginVertical: 10,
|
||||||
},
|
},
|
||||||
|
input: {
|
||||||
|
color: '$primaryDarkText',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -25,13 +25,14 @@ export const parsePost = async (post, currentUserName, isPromoted) => {
|
|||||||
if (!post) {
|
if (!post) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
const activeVotes = await getActiveVotes(get(post, 'author'), get(post, 'permlink'));
|
||||||
if (currentUserName === post.author) {
|
if (currentUserName === post.author) {
|
||||||
post.markdownBody = post.body;
|
post.markdownBody = post.body;
|
||||||
}
|
}
|
||||||
post.is_promoted = isPromoted;
|
post.is_promoted = isPromoted;
|
||||||
post.json_metadata = JSON.parse(post.json_metadata);
|
post.json_metadata = JSON.parse(post.json_metadata);
|
||||||
post.image = postImage(post.json_metadata, post.body);
|
post.image = postImage(post.json_metadata, post.body);
|
||||||
|
post.active_votes = activeVotes;
|
||||||
post.vote_count = post.active_votes.length;
|
post.vote_count = post.active_votes.length;
|
||||||
post.author_reputation = getReputation(post.author_reputation);
|
post.author_reputation = getReputation(post.author_reputation);
|
||||||
post.avatar = getResizedAvatar(get(post, 'author'));
|
post.avatar = getResizedAvatar(get(post, 'author'));
|
||||||
|
Loading…
Reference in New Issue
Block a user