-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ports the Paragraph Block to React Native #8149
Conversation
packages/element/src/index.native.js
Outdated
* | ||
* @return {Function} Returns the new composite function. | ||
*/ | ||
export { flowRight as compose }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compose
and createHigherOrderComponent
were moved to compose
package.
See: https://github.com/WordPress/gutenberg/blob/master/packages/compose/src/index.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are still some commits behind in terms of a branch that is compatible with RN.
return ( | ||
<TextInput | ||
multiline={ true } | ||
value={ content[0] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file could use some whitespace formatting.
}, | ||
]; | ||
|
||
class ParagraphBlock extends Component { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move ParagraphBlock
to its own file edit.js
and override it rather than all paragraph settings.
…h_block_port # Conflicts: # core-blocks/paragraph/index.js # packages/element/src/index.native.js
Closing in favor of #8231 |
Description
This PR implements the Paragraph Block using RN. This is still a stubbed version using the TextInput component.
How has this been tested?
No tests implemented.
Types of changes
Implements a native version of the Paragraph Block using a native version of the RichText component.
Checklist: