mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-27 13:03:12 +03:00
fixed counter & keyboard
This commit is contained in:
parent
3ee5828b18
commit
2604c20a17
@ -81,7 +81,7 @@ export default class MarkdownEditorView extends Component {
|
||||
<View style={styles.leftButtonsWrapper}>
|
||||
<FlatList
|
||||
data={Formats}
|
||||
// keyboardShouldPersistTaps="always"
|
||||
keyboardShouldPersistTaps="always"
|
||||
renderItem={({ item }) => this._renderMarkupButton({ item, getState, setState })}
|
||||
horizontal
|
||||
/>
|
||||
|
@ -51,7 +51,7 @@ export class EditorScreen extends Component {
|
||||
<View style={globalStyles.defaultContainer}>
|
||||
<EditorHeader
|
||||
isPreviewActive={isPreviewActive}
|
||||
quickTitle={wordsCount && `${wordsCount} words`}
|
||||
quickTitle={wordsCount > 0 && `${wordsCount} words`}
|
||||
handleOnPressPreviewButton={this._handleOnPressPreviewButton}
|
||||
/>
|
||||
<View style={globalStyles.containerHorizontal16}>
|
||||
|
@ -1 +1 @@
|
||||
export const getWordsCount = text => text.replace(/^\s+|\s+$/g, '').split(/\s+/).length;
|
||||
export const getWordsCount = text => (text ? text.replace(/^\s+|\s+$/g, '').split(/\s+/).length : 0);
|
||||
|
Loading…
Reference in New Issue
Block a user