Skip to content

Commit

Permalink
Pass formatTypes to FormatEdit component (#19200)
Browse files Browse the repository at this point in the history
  • Loading branch information
mchowning authored Dec 17, 2019
1 parent fb70f02 commit 7a337cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/rich-text/src/component/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ export class RichText extends Component {
__unstableIsSelected: isSelected,
children,
getStylesFromColorScheme,
formatTypes,
} = this.props;

const record = this.getRecord();
Expand Down Expand Up @@ -756,7 +757,11 @@ export class RichText extends Component {
isMultiline={ this.isMultiline }
textAlign={ this.props.textAlign }
/>
{ isSelected && <FormatEdit value={ record } onChange={ this.onFormatChange } /> }
{ isSelected && <FormatEdit
formatTypes={ formatTypes }
value={ record }
onChange={ this.onFormatChange }
/> }
</View>
);
}
Expand Down

0 comments on commit 7a337cf

Please sign in to comment.