Skip to content

Commit

Permalink
Merge pull request #62 from wordpress-mobile/try/fix-performances
Browse files Browse the repository at this point in the history
Update AztecRN wrapper to the latest version and fix typing delays
  • Loading branch information
hypest authored Jul 2, 2018
2 parents 1995392 + a2afbc4 commit 62f0588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react-native-aztec
3 changes: 2 additions & 1 deletion src/block-management/block-holder.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,15 @@ export default class BlockHolder extends React.Component<PropsType, StateType> {
styles[ 'aztec-editor' ],
{ minHeight: Math.max( _minHeight, this.state.aztecHeight ) },
] }
text={ this.props.attributes.content }
text={ { text: this.props.attributes.content, eventCount: this.props.attributes.eventCount } }
onContentSizeChange={ ( event ) => {
this.setState( { ...this.state, aztecHeight: event.nativeEvent.contentSize.height } );
} }
onChange={ ( event ) => {
this.props.onChange( this.props.uid, {
...this.props.attributes,
content: event.nativeEvent.text,
eventCount: event.nativeEvent.eventCount,
} );
} }
color={ 'black' }
Expand Down

0 comments on commit 62f0588

Please sign in to comment.