Skip to content

Commit

Permalink
Merge pull request #130 from wordpress-mobile/issue/update_aztec_rn
Browse files Browse the repository at this point in the history
Update Aztec RN version
  • Loading branch information
daniloercoli authored Aug 24, 2018
2 parents 2f48b90 + aaf5f34 commit 7803228
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ buildscript {
gradlePluginVersion = '3.0.1'
kotlinVersion = '1.2.31'
supportLibVersion = '27.1.1'
tagSoupVersion = '1.2.1'
tagSoupVersion = '1.2.2'
glideVersion = '3.7.0'
picassoVersion = '2.5.2'
robolectricVersion = '3.5.1'
jUnitVersion = '4.12'
jSoupVersion = '1.10.3'
wordpressUtilsVersion = '1.20.2'
wordpressUtilsVersion = '1.22'
espressoVersion = '3.0.1'
}

Expand Down
2 changes: 1 addition & 1 deletion gutenberg
2 changes: 1 addition & 1 deletion react-native-aztec
11 changes: 10 additions & 1 deletion src/block-management/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ export default class BlockManager extends React.Component<PropsType, StateType>
this.props.onChange( clientId, attributes );
}

render() {
renderList() {
let list;
const behavior = Platform.OS === 'ios' ? 'padding' : null;
if ( Platform.OS === 'android' ) {
list = (
<RecyclerViewList
Expand All @@ -199,7 +200,15 @@ export default class BlockManager extends React.Component<PropsType, StateType>
/>
);
}
return (
<KeyboardAvoidingView style={ { flex: 1 } } behavior={ behavior }>
{ list }
</KeyboardAvoidingView>
);
}

render() {
const list = this.renderList();
const blockTypePicker = (
<BlockPicker
visible={ this.state.blockTypePickerVisible }
Expand Down

0 comments on commit 7803228

Please sign in to comment.