Skip to content
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

RN-Mobile: Image block placeholder #9850

Merged
merged 6 commits into from
Sep 13, 2018
Merged

Conversation

etoledom
Copy link
Contributor

@etoledom etoledom commented Sep 12, 2018

Description

Added a simple mobile version of the Image Block.
This will show a placeholder representing an image block. The UI will be replaced later on.

image-block

To test:

This was tested on the mobile Gutenberg project app.
The PR on Mobile Gutenberg is here.

@etoledom etoledom requested review from hypest and mzorz September 12, 2018 21:34
@etoledom etoledom self-assigned this Sep 12, 2018
@etoledom etoledom added the Mobile Web Viewport sizes for mobile and tablet devices label Sep 12, 2018
@hypest hypest added Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) and removed Mobile Web Viewport sizes for mobile and tablet devices labels Sep 12, 2018
Copy link
Contributor

@hypest hypest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -0,0 +1,10 @@
/** @format */

import { View, Text } from 'react-native';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I noticed one small thing now though: let's add a section header like this one: https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/heading/edit.native.js#L6-L9

@@ -0,0 +1,10 @@
/** @format */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, let's remove the Prettier pragma since Prettier is not used in the Gutenberg repo/setup.

@etoledom etoledom merged commit 3c559e9 into master Sep 13, 2018
@etoledom etoledom deleted the feature/image-block-mobile branch September 13, 2018 14:48
@mtias mtias added this to the 3.9 milestone Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants