From 7c32d3aa8b38e20acd4a17814128e62bf900a331 Mon Sep 17 00:00:00 2001 From: etoledom Date: Thu, 21 Feb 2019 18:06:23 +0100 Subject: [PATCH] Mobile: Rename ref to innerRef on PostTitle (#14024) --- .../src/components/post-title/index.native.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/editor/src/components/post-title/index.native.js b/packages/editor/src/components/post-title/index.native.js index c41a1263b6a5ab..0215a0de1a1922 100644 --- a/packages/editor/src/components/post-title/index.native.js +++ b/packages/editor/src/components/post-title/index.native.js @@ -1,3 +1,8 @@ +/** + * External dependencies + */ +import { View } from 'react-native'; + /** * WordPress dependencies */ @@ -8,8 +13,9 @@ import { withDispatch } from '@wordpress/data'; import { withFocusOutside } from '@wordpress/components'; import { withInstanceId, compose } from '@wordpress/compose'; -import { View } from 'react-native'; - +/** + * Internal dependencies + */ import styles from './style.scss'; const minHeight = 30; @@ -30,8 +36,8 @@ class PostTitle extends Component { } componentDidMount() { - if ( this.props.ref ) { - this.props.ref( this ); + if ( this.props.innerRef ) { + this.props.innerRef( this ); } }