added with login check

This commit is contained in:
ue 2018-11-15 14:06:50 +01:00
parent c7be75dbf4
commit da80110aa2
3 changed files with 3 additions and 4 deletions

View File

@ -103,7 +103,7 @@ export default class TagAreaView extends Component {
handleOnChange={text => this._handleOnChange(text, i)}
handleOnBlur={() => this._handleOnBlur(i)}
blurOnSubmit
value={chip && chip}
value={draftChips.length > 0 ? chip && chip : null}
autoCapitalize="none"
{...this.props}
/>

View File

@ -77,6 +77,6 @@ export default createSwitchNavigator({
stackNavigatior,
[ROUTES.SCREENS.LOGIN]: { screen: RootComponent()(Login) },
[ROUTES.SCREENS.PINCODE]: { screen: RootComponent()(PinCode) },
[ROUTES.SCREENS.SPLASH]: { screen: Editor },
[ROUTES.SCREENS.SPLASH]: { screen: Splash },
[ROUTES.SCREENS.STEEM_CONNECT]: { screen: RootComponent()(SteemConnect) },
});

View File

@ -100,8 +100,7 @@ export const updateUserData = userData => new Promise((resolve, reject) => {
export const setDraftPost = (fields, username) => new Promise((resolve, reject) => {
try {
const draft = realm.objects(DRAFT_SCHEMA).filtered('username = $0', username);
console.log(fields);
console.log("ustebak");
realm.write(() => {
if (Array.from(draft).length > 0) {
draft[0].title = fields.title;