Skip to content
Merged
Show file tree
Hide file tree
Changes from 69 commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
106e02c
Update gutenberg reference
mkevins Jan 23, 2020
8bea249
Update release notes
mkevins Jan 23, 2020
03f051e
Update Gutenberg ref
Jan 29, 2020
6e070ec
Update Gutenberg ref
Jan 30, 2020
c818a52
Update gutenberg reference
mkevins Jan 31, 2020
8a63fca
Merge branch 'develop' into fix/gallery-size-labels
mkevins Jan 31, 2020
4a28360
Update gutenberg reference
mkevins Feb 3, 2020
e4d6a3b
Merge branch 'develop' into fix/gallery-size-labels
mkevins Feb 3, 2020
91d817e
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
Feb 3, 2020
7836373
Update Gutenberg ref
Feb 3, 2020
3e4fdc1
Update Gutenberg ref
Feb 3, 2020
2017526
Update Gutenberg ref
Feb 3, 2020
b1be15b
Update gutenberg reference
mkevins Feb 3, 2020
58f4554
Merge pull request #1798 from wordpress-mobile/fix/gallery-size-labels
mkevins Feb 3, 2020
79c17ca
Fix: Adjust vertical margins in InnerBlock (#1838)
jbinda Feb 4, 2020
c4ed859
Update gutenberg reference
mkevins Feb 5, 2020
42e0096
Generate bundles
mkevins Feb 5, 2020
3530be8
Update Aztec pod to version 1.16.0
SergioEstevao Feb 5, 2020
1d9305a
Remove overriding of metrics for list text indentation.
SergioEstevao Feb 5, 2020
e40988d
Feat: Open Group block for production (#1850)
jbinda Feb 6, 2020
3a22f08
Button Block (#1616)
lukewalczak Feb 6, 2020
09a7d22
Respect allowMultipleSelection flag in request from camera source
mkevins Feb 7, 2020
c5d4c7d
Delete react-native-aztec example project
ceyhun Feb 7, 2020
9adb864
Update react-native-aztec README
ceyhun Feb 7, 2020
0886d9f
Update gutenberg reference
chipsnyder Feb 7, 2020
0dd4671
Update page templates feature flag name
koke Feb 10, 2020
0f5ef66
Update Gutenberg
chipsnyder Feb 10, 2020
f997bb5
Merge pull request #1872 from wordpress-mobile/issue/1868-textcutoff
Feb 10, 2020
8403011
Update Gutenberg hash
hypest Feb 10, 2020
986fe1c
Merge branch 'develop' into merge-v1.22.0-to-develop
hypest Feb 10, 2020
f0af9f5
Update bundles
hypest Feb 10, 2020
19e7bfc
Update gutenberg reference
mkevins Feb 11, 2020
857edb6
Merge branch 'develop' into feature/gallery-upload-options
mkevins Feb 11, 2020
092b7e3
Update gutenberg reference
mkevins Feb 11, 2020
de155cb
Generate bundles
mkevins Feb 11, 2020
3b93a33
Update Gutenberg hash to the merged to master one
hypest Feb 11, 2020
03b2179
Merge pull request #1877 from wordpress-mobile/merge-v1.22.0-to-develop
hypest Feb 11, 2020
ad8248c
Update bundles
hypest Feb 11, 2020
40171a1
Merge pull request #1878 from wordpress-mobile/update-bundles
hypest Feb 11, 2020
00dbd95
Update gutenberg ref
etoledom Feb 11, 2020
0bfe857
Update gutenberg ref
etoledom Feb 11, 2020
3d3de7e
Merge branch 'develop' into remove/spt-experiment-from-web
koke Feb 11, 2020
2ed79cd
Update Gutenberg
koke Feb 11, 2020
fcf17cb
Merge pull request #1876 from wordpress-mobile/remove/spt-experiment-…
koke Feb 11, 2020
f704ea5
Update gutenberg ref
etoledom Feb 11, 2020
26e3e24
Feat: refine block borders (#1859)
jbinda Feb 11, 2020
165569c
Update Gutenberg ref
Feb 12, 2020
9cf88f6
Merge branch 'develop' of github.com:wordpress-mobile/gutenberg-mobil…
Feb 12, 2020
d1a97b3
Update Gutenberg ref
Feb 12, 2020
d96cde1
Merge pull request #1834 from wordpress-mobile/add/stepper-gallery-se…
Feb 12, 2020
7aa4ed1
Correct layout within bottom-sheet [workaround] (#1837)
lukewalczak Feb 12, 2020
4b10e73
Update gutenberg reference
mkevins Feb 13, 2020
6ac94d6
Merge branch 'develop' into feature/gallery-upload-options
mkevins Feb 13, 2020
7628984
Update release notes
mkevins Feb 13, 2020
bcb214f
Update gutenberg reference
mkevins Feb 13, 2020
6352c21
Merge pull request #1855 from wordpress-mobile/feature/gallery-upload…
mkevins Feb 13, 2020
3fc74a8
Update gutenberg ref
etoledom Feb 13, 2020
e0bd788
Merge remote-tracking branch 'origin/develop' into master-to-develop-…
Tug Feb 13, 2020
4061f86
Update gutenberg ref
etoledom Feb 13, 2020
23bb007
Updating gutenberg ref
cameronvoell Feb 14, 2020
16b0bd1
Updating release notes for image size options
cameronvoell Feb 14, 2020
2fd9fb7
Update gutenberg ref
etoledom Feb 14, 2020
83480b8
Enable Button block in production (#1866)
lukewalczak Feb 14, 2020
f23c36e
Update gutenberg ref
etoledom Feb 14, 2020
2dba4eb
Merge remote-tracking branch 'origin/develop' into issue/fix-is-url
etoledom Feb 14, 2020
49014bb
Merge pull request #1879 from wordpress-mobile/issue/fix-is-url
etoledom Feb 14, 2020
bcdff65
Update release notes
mchowning Feb 12, 2020
84a1402
Update gutenberg ref
mchowning Feb 14, 2020
f6b6d20
Merge pull request #1895 from wordpress-mobile/issue/1853_image-uploa…
mchowning Feb 14, 2020
34cdff2
Update release notes (#1908)
lukewalczak Feb 14, 2020
72d5c0e
Merge in 'develop', update gutenberg ref to master
cameronvoell Feb 14, 2020
6ec05f0
Merge pull request #1904 from wordpress-mobile/add/image-size-options…
cameronvoell Feb 14, 2020
8e59a5a
Correct add icon appearance (#1918)
lukewalczak Feb 14, 2020
141a589
Merge remote-tracking branch 'origin/develop' into update_aztec_to_1.…
etoledom Feb 17, 2020
46239f3
Update release notes.
SergioEstevao Feb 17, 2020
d8811f9
Merge pull request #1857 from wordpress-mobile/update_aztec_to_1.16.0
SergioEstevao Feb 17, 2020
88d7b03
Fix menu item width inside the inserter (#1914)
lukewalczak Feb 17, 2020
3012637
Merge pull request #1869 from wordpress-mobile/try/delete-react-nativ…
ceyhun Feb 17, 2020
48751d4
Merge pull request #1903 from wordpress-mobile/master-to-develop-post…
mchowning Feb 17, 2020
13907c8
v1.23.0
mchowning Feb 17, 2020
2b8cfc5
Fix accessibility for block (#1922)
dratwas Feb 18, 2020
7d52659
Remove duplicate gallery image size release note
mchowning Feb 18, 2020
82b325e
Merge pull request #1926 from wordpress-mobile/remove-gallery-size-re…
mchowning Feb 18, 2020
3548d9d
Update GB reference.
SergioEstevao Feb 18, 2020
d8fd101
Update release notes.
SergioEstevao Feb 18, 2020
fc0ff83
Fix inserter - update ref
dratwas Feb 18, 2020
ec68bab
Merge pull request #1894 from wordpress-mobile/fix/inserter
mchowning Feb 18, 2020
31e0ebb
Update bundles
mchowning Feb 18, 2020
def06bb
Update gutenberg ref
mchowning Feb 18, 2020
1d22fc2
Merge remote-tracking branch 'origin/release/1.23.0' into issue/1929_…
mchowning Feb 18, 2020
7b01871
Merge pull request #1930 from wordpress-mobile/issue/1929_emoji_on_title
mchowning Feb 18, 2020
e3fe836
Update bundles
mchowning Feb 18, 2020
781782c
Fix alignment setting.
SergioEstevao Feb 20, 2020
f6de8f8
Add release notes.
SergioEstevao Feb 20, 2020
ffda54d
Merge pull request #1938 from wordpress-mobile/issue/1916_fix_align_i…
SergioEstevao Feb 20, 2020
f8a5c85
Update bundle files
mchowning Feb 20, 2020
8ffd547
Update release notes
mchowning Feb 21, 2020
d636e1d
Merge pull request #1946 from wordpress-mobile/update_1.23_release_notes
mchowning Feb 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

; Ignore various node_modules
<PROJECT_ROOT>/node_modules/react-native-gesture-handler/.*
<PROJECT_ROOT>/node_modules/react-native-linear-gradient/.*
<PROJECT_ROOT>/node_modules/expo/.*
<PROJECT_ROOT>/node_modules/react-navigation/.*
<PROJECT_ROOT>/node_modules/xdl/.*
Expand Down
10 changes: 10 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
1.23.0
------
* New block: Group
* Add support for upload options in Gallery block
* Add support for size options in the Image block
* New block: Button
* Add scroll support inside block picker and block settings
* [Android] Fix issue preventing correct placeholder image from displaying during image upload

1.22.0
------
* Add support for changing images size in Gallery block
Copy link
Contributor Author

Choose a reason for hiding this comment

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

👋 @mkevins ! Looks like this should be moved up to under 1.23.0. Does that seem right to you?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, that was released as part of 1.22.0, so it's correct there, but I just noticed it's listed twice under 1.22.0 🤔 I guess one of the duplicates under 1.22.0 can be removed.

* Make inserter to show options on long-press to add before/after
* Retry displaying image when connectivity restores
* [iOS] Show an "Edit" button overlay on selected image blocks
Expand Down
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ repositories {


dependencies {
implementation project(':react-native-linear-gradient')
implementation project(':@react-native-community_slider')
implementation project(':react-native-video')
implementation project(':react-native-svg')
Expand Down
2 changes: 2 additions & 0 deletions android/app/src/main/java/com/gutenberg/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import androidx.core.util.Consumer;

import com.facebook.react.ReactApplication;
import com.BV.LinearGradient.LinearGradientPackage;
import com.reactnativecommunity.slider.ReactSliderPackage;
import com.brentvatne.react.ReactVideoPackage;
import com.facebook.react.bridge.ReadableArray;
Expand Down Expand Up @@ -136,6 +137,7 @@ protected List<ReactPackage> getPackages() {
new ReactVideoPackage(),
new SvgPackage(),
new ReactAztecPackage(),
new LinearGradientPackage(),
mRnReactNativeGutenbergBridgePackage);
}

Expand Down
2 changes: 2 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ include ':react-native-aztec'
project(':react-native-aztec').projectDir = new File(rootProject.projectDir, '../react-native-aztec/android')
include ':react-native-gutenberg-bridge'
project(':react-native-gutenberg-bridge').projectDir = new File(rootProject.projectDir, '../react-native-gutenberg-bridge/android')
include ':react-native-linear-gradient'
project(':react-native-linear-gradient').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-linear-gradient/android')

include ':app'
1,930 changes: 980 additions & 950 deletions bundle/android/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/App.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
},
"customBackgroundColor": {
"type": "string"
},
"customTextColor" : {
"type": "string"
},
"textColor": {
"type": "string"
}
}
}
2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_de.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_fr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_gl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/android/raw/i18ncache_data_hr.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions bundle/android/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
<string name="gutenberg_native_alt_text" tools:ignore="UnusedResources">Alt Text</string>
<string name="gutenberg_native_an_unknown_error_occurred_please_try_again" tools:ignore="UnusedResources">An unknown error occurred. Please try again.</string>
<string name="gutenberg_native_annotations_sidebar" tools:ignore="UnusedResources">Annotations Sidebar</string>
<string name="gutenberg_native_border_settings" tools:ignore="UnusedResources">Border Settings</string>
<string name="gutenberg_native_button_url" tools:ignore="UnusedResources">Button URL</string>
<string name="gutenberg_native_choose_from_device" tools:ignore="UnusedResources">Choose from device</string>
<string name="gutenberg_native_clear_all_settings" tools:ignore="UnusedResources">Clear All Settings</string>
<string name="gutenberg_native_color_settings" tools:ignore="UnusedResources">Color Settings</string>
<string name="gutenberg_native_content" tools:ignore="UnusedResources">Content…</string>
<string name="gutenberg_native_current_value_is_s" tools:ignore="UnusedResources">Current value is %s</string>
<string name="gutenberg_native_double_tap_and_hold_to_edit" tools:ignore="UnusedResources">Double tap and hold to edit</string>
Expand Down Expand Up @@ -50,6 +53,7 @@
<!-- translators: accessibility text. %s: image caption. -->
<string name="gutenberg_native_image_caption_s" tools:ignore="UnusedResources">Image caption. %s</string>
<string name="gutenberg_native_link_inserted" tools:ignore="UnusedResources">Link inserted</string>
<string name="gutenberg_native_link_settings" tools:ignore="UnusedResources">Link Settings</string>
<string name="gutenberg_native_link_text" tools:ignore="UnusedResources">Link text</string>
<string name="gutenberg_native_move_block_down" tools:ignore="UnusedResources">Move block down</string>
<!-- translators: accessibility text. %1: current block position (number). %2: next block position (number) -->
Expand All @@ -65,6 +69,7 @@
<string name="gutenberg_native_my_pre_publish_panel" tools:ignore="UnusedResources">My pre publish panel</string>
<string name="gutenberg_native_navigate_up" tools:ignore="UnusedResources">Navigate Up</string>
<string name="gutenberg_native_no_application_can_handle_this_request_please_install_a_web_brows" tools:ignore="UnusedResources">No application can handle this request. Please install a Web browser.</string>
<string name="gutenberg_native_note_theme_colors_are_not_available_at_this_time" tools:ignore="UnusedResources">Note: Theme colors are not available at this time.</string>
<string name="gutenberg_native_open_settings" tools:ignore="UnusedResources">Open Settings</string>
<!-- translators: accessibility text. %s: Page break text. -->
<string name="gutenberg_native_page_break_block_s" tools:ignore="UnusedResources">Page break block. %s</string>
Expand Down
1,942 changes: 986 additions & 956 deletions bundle/ios/App.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/App.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions bundle/ios/GutenbergNativeTranslations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ private func dummy() {
_ = NSLocalizedString("Alt Text", comment: "")
_ = NSLocalizedString("An unknown error occurred. Please try again.", comment: "")
_ = NSLocalizedString("Annotations Sidebar", comment: "")
_ = NSLocalizedString("Border Settings", comment: "")
_ = NSLocalizedString("Button URL", comment: "")
_ = NSLocalizedString("Choose from device", comment: "")
_ = NSLocalizedString("Clear All Settings", comment: "")
_ = NSLocalizedString("Color Settings", comment: "")
_ = NSLocalizedString("Content…", comment: "")
_ = NSLocalizedString("Current value is %s", comment: "")
_ = NSLocalizedString("Double tap and hold to edit", comment: "")
Expand All @@ -49,6 +52,7 @@ private func dummy() {
_ = NSLocalizedString("Hide keyboard", comment: "")
_ = NSLocalizedString("Image caption. %s", comment: "translators: accessibility text. %s: image caption.")
_ = NSLocalizedString("Link inserted", comment: "")
_ = NSLocalizedString("Link Settings", comment: "")
_ = NSLocalizedString("Link text", comment: "")
_ = NSLocalizedString("Move block down", comment: "")
_ = NSLocalizedString("Move block down from row %1$s to row %2$s", comment: "translators: accessibility text. %1: current block position (number). %2: next block position (number)")
Expand All @@ -62,6 +66,7 @@ private func dummy() {
_ = NSLocalizedString("My pre publish panel", comment: "")
_ = NSLocalizedString("Navigate Up", comment: "")
_ = NSLocalizedString("No application can handle this request. Please install a Web browser.", comment: "")
_ = NSLocalizedString("Note: Theme colors are not available at this time.", comment: "")
_ = NSLocalizedString("Open Settings", comment: "")
_ = NSLocalizedString("Page break block. %s", comment: "translators: accessibility text. %s: Page break text.")
_ = NSLocalizedString("Paste URL", comment: "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
},
"customBackgroundColor": {
"type": "string"
},
"customTextColor" : {
"type": "string"
},
"textColor": {
"type": "string"
}
}
}
2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/de.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/fr.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/gl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/ios/assets/i18n-cache/data/hr.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
PODS:
- boost-for-react-native (1.63.0)
- BVLinearGradient (2.5.6):
- React
- DoubleConversion (1.1.6)
- FBLazyVector (0.61.5)
- FBReactNativeSpec (0.61.5):
Expand Down Expand Up @@ -244,6 +246,7 @@ PODS:
- Yoga (1.14.0)

DEPENDENCIES:
- BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
- FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`)
Expand Down Expand Up @@ -287,6 +290,8 @@ SPEC REPOS:
- WordPress-Aztec-iOS

EXTERNAL SOURCES:
BVLinearGradient:
:path: "../node_modules/react-native-linear-gradient"
DoubleConversion:
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
FBLazyVector:
Expand Down Expand Up @@ -356,6 +361,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
BVLinearGradient: 60a475b2edfe7707deda00278cb8ce9bfe70e669
DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f
FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75
Expand Down
2 changes: 2 additions & 0 deletions ios/gutenberg.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-gutenberg/Pods-gutenberg-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/BVLinearGradient/BVLinearGradient.framework",
"${BUILT_PRODUCTS_DIR}/DoubleConversion/DoubleConversion.framework",
"${BUILT_PRODUCTS_DIR}/FBReactNativeSpec/FBReactNativeSpec.framework",
"${BUILT_PRODUCTS_DIR}/Folly/folly.framework",
Expand Down Expand Up @@ -494,6 +495,7 @@
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BVLinearGradient.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DoubleConversion.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBReactNativeSpec.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/folly.framework",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
"react-native-dark-mode": "git+https://github.com/wordpress-mobile/react-native-dark-mode.git#f09bf1480e7b34536413ab3300f29e4375edb2c6",
"react-native-hr": "git+https://github.com/Riglerr/react-native-hr.git#2d01a5cf77212d100e8b99e0310cce5234f977b3",
"react-native-keyboard-aware-scroll-view": "git+https://github.com/wordpress-mobile/react-native-keyboard-aware-scroll-view.git#gb-v0.8.7",
"react-native-linear-gradient": "git+https://github.com/wordpress-mobile/react-native-linear-gradient.git#52bf43077171cff8714ce3e0155f3ebb7f55bc37",
"react-native-modal": "^6.5.0",
"react-native-safe-area": "^0.5.0",
"react-native-svg": "git+https://github.com/wordpress-mobile/react-native-svg.git#a628e92990a2404e30a0086f168bd2b5b7b4ce96",
Expand Down
15 changes: 14 additions & 1 deletion react-native-aztec/ios/RNTAztecView/RCTAztecView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class RCTAztecView: Aztec.TextView {
@objc var onPaste: RCTBubblingEventBlock? = nil
@objc var onContentSizeChange: RCTBubblingEventBlock? = nil
@objc var onSelectionChange: RCTBubblingEventBlock? = nil
@objc var minWidth: CGFloat = 0
@objc var maxWidth: CGFloat = 0
@objc var blockType: NSDictionary? = nil {
didSet {
guard let block = blockType, let tag = block["tag"] as? String else {
Expand Down Expand Up @@ -174,14 +176,25 @@ class RCTAztecView: Aztec.TextView {
recognizer.isEnabled = false
}

// MARK - View Height: Match to content height
// MARK: - View height and width: Match to the content

override func layoutSubviews() {
super.layoutSubviews()
adjustWidth()
fixLabelPositionForRTLLayout()
updateContentSizeInRN()
}

private func adjustWidth() {
if (maxWidth > 0 && minWidth > 0) {
let maxSize = CGSize(width: maxWidth, height: CGFloat.greatestFiniteMagnitude)
let newWidth = sizeThatFits(maxSize).width
if (newWidth != frame.size.width) {
frame.size.width = max(newWidth, minWidth)
}
}
}

private func fixLabelPositionForRTLLayout() {
if hasRTLLayout {
// RCTScrollViews are flipped horizontally on RTL layout.
Expand Down
2 changes: 2 additions & 0 deletions react-native-aztec/ios/RNTAztecView/RCTAztecViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ @interface RCT_EXTERN_MODULE(RCTAztecViewManager, NSObject)
RCT_EXPORT_VIEW_PROPERTY(placeholderTextColor, UIColor)
RCT_REMAP_VIEW_PROPERTY(color, textColor, UIColor)
RCT_EXPORT_VIEW_PROPERTY(linkTextColor, UIColor)
RCT_EXPORT_VIEW_PROPERTY(minWidth, CGFloat)
RCT_EXPORT_VIEW_PROPERTY(maxWidth, CGFloat)

RCT_EXPORT_VIEW_PROPERTY(fontFamily, NSString)
RCT_EXPORT_VIEW_PROPERTY(fontSize, CGFloat)
Expand Down
2 changes: 2 additions & 0 deletions react-native-gutenberg-bridge/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ dependencies {

if (rootProject.ext.buildGutenbergFromSource) {
println "using gutenberg from source"
implementation project(':react-native-linear-gradient')
implementation project(':react-native-svg')
implementation project(':react-native-video')
implementation project(':@react-native-community_slider')
Expand All @@ -139,6 +140,7 @@ dependencies {

implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-svg', readHashedVersion('../../package.json', 'react-native-svg', 'dependencies')))
implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-video', readHashedVersion('../../package.json', 'react-native-video', 'dependencies')))
implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-linear-gradient', readHashedVersion('../../package.json', 'react-native-linear-gradient', 'dependencies')))
implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-slider', readHashedVersion('../../package.json', '@react-native-community/slider', 'dependencies')))

// FIXME Temporary fix to get Jitpack builds to green while I work on a solution without hardcoded values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void requestMediaPickFrom(String mediaSource, ReadableArray filter, Boole
} else if (mediaSource.equals(MEDIA_SOURCE_DEVICE_LIBRARY)) {
mGutenbergBridgeJS2Parent.requestMediaPickFromDeviceLibrary(getNewUploadMediaCallback(allowMultipleSelection, onUploadMediaSelected), allowMultipleSelection, mediaType);
} else if (mediaSource.equals(MEDIA_SOURCE_DEVICE_CAMERA)) {
mGutenbergBridgeJS2Parent.requestMediaPickerFromDeviceCamera(getNewUploadMediaCallback(false, onUploadMediaSelected), mediaType);
mGutenbergBridgeJS2Parent.requestMediaPickerFromDeviceCamera(getNewUploadMediaCallback(allowMultipleSelection, onUploadMediaSelected), mediaType);
} else {
mGutenbergBridgeJS2Parent.requestMediaPickFrom(mediaSource, getNewUploadMediaCallback(allowMultipleSelection, onUploadMediaSelected), allowMultipleSelection);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.horcrux.svg.SvgPackage;
import com.BV.LinearGradient.LinearGradientPackage;
import com.reactnativecommunity.slider.ReactSliderPackage;

import org.wordpress.android.util.AppLog;
Expand Down Expand Up @@ -321,6 +322,7 @@ public void requestMediaEditor(MediaUploadCallback mediaUploadCallback, String m
return Arrays.asList(
new MainReactPackage(getMainPackageConfig(getImagePipelineConfig(sOkHttpClient))),
new SvgPackage(),
new LinearGradientPackage(),
new ReactAztecPackage(),
new ReactVideoPackage(),
new ReactSliderPackage(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "react-native-linear-gradient",
"version": "2.5.6",
"summary": "A <LinearGradient /> component for react-native",
"description": "A <LinearGradient /> component for react-native",
"license": "MIT",
"authors": "Brent Vatne => brentvatne@gmail.com",
"homepage": "https://github.com/brentvatne/react-native-linear-gradient.git",
"source": {
"git": "https://github.com/brentvatne/react-native-linear-gradient.git",
"tag": "v2.5.6"
},
"source_files": "BVLinearGradient/*.{h,m}",
"preserve_paths": "**/*.js",
"platforms": {
"ios": "8.0"
},
"dependencies": {
"React": [

]
}
}
3 changes: 3 additions & 0 deletions src/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ $blue-50: #2271b1;
// Primary tint color (dark)
$blue-30: #5198d9;

$button-default-bg: #2271b1;
$button-fallback-bg: #595959;

// color-studio
$gray-0: #f6f7f7;
$gray-5: #dcdcde;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class RootComponent extends React.Component {
render() {
const { initialHtmlModeEnabled } = this.props;
const settings = {
__experimentalEnablePageTemplates: !! __DEV__,
__mobileEnablePageTemplates: !! __DEV__,
};
let initialData = this.props.initialData;
let initialTitle = this.props.initialTitle;
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11479,6 +11479,10 @@ react-native-iphone-x-helper@^1.0.3:
prop-types "^15.6.2"
react-native-iphone-x-helper "^1.0.3"

"react-native-linear-gradient@git+https://github.com/wordpress-mobile/react-native-linear-gradient.git#52bf43077171cff8714ce3e0155f3ebb7f55bc37":
version "2.5.6"
resolved "git+https://github.com/wordpress-mobile/react-native-linear-gradient.git#52bf43077171cff8714ce3e0155f3ebb7f55bc37"

react-native-modal@^6.5.0:
version "6.5.0"
resolved "https://registry.yarnpkg.com/react-native-modal/-/react-native-modal-6.5.0.tgz#46220b2289a41597d344c1db17454611b426a758"
Expand Down