Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
67d2796
Fix request import to send the correct information.
SergioEstevao Oct 24, 2019
b8f574b
Make MediaInfo properties public
SergioEstevao Oct 24, 2019
7a5f155
Update gutenberg ref
etoledom Oct 25, 2019
65964a8
Update release notes.
SergioEstevao Oct 25, 2019
bb8d92a
Update RELEASE-NOTES.txt
etoledom Oct 25, 2019
6dfba3d
Update gutenberg ref
etoledom Oct 25, 2019
2abde85
Merge pull request #1495 from wordpress-mobile/issue/fix-block-picker…
etoledom Oct 25, 2019
d65c7f9
Add left right borders to inner blocks (#1496)
pinarol Oct 25, 2019
f190247
Remove alignment options from Media & Text until they are fixed (#1500)
pinarol Oct 25, 2019
9624986
Add extension to encode MediaInfo to JS.
SergioEstevao Oct 25, 2019
a4bab40
Merge branch 'release/1.15.2' into issue/fix_request_import_on_bridge
SergioEstevao Oct 25, 2019
e243459
Merge pull request #1494 from wordpress-mobile/issue/fix_request_impo…
etoledom Oct 28, 2019
59022ee
Update JS Bundles
etoledom Oct 28, 2019
73c2873
Bump version to 1.15.2
etoledom Oct 28, 2019
1811d84
[FIX] Scroll position android (#1478)
dratwas Oct 28, 2019
c1f86ea
Update gutenberg ref
etoledom Oct 28, 2019
f42bc54
Fix: Media & Text Loses upload status if post is closed/reopened duri…
pinarol Oct 29, 2019
d502c46
Update JS Bundles
etoledom Oct 29, 2019
649a22a
Update gutenberg ref
etoledom Oct 29, 2019
6e4b4f2
Update bundles
mchowning Oct 29, 2019
6865978
Merge pull request #1503 from wordpress-mobile/release/1.15.2
mchowning Oct 29, 2019
4ed5523
Merge remote-tracking branch 'origin/develop' into master_develop_1.1…
mchowning Oct 29, 2019
0f0bde6
Update gutenberg ref
etoledom Oct 30, 2019
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
Prev Previous commit
Next Next commit
Add extension to encode MediaInfo to JS.
  • Loading branch information
SergioEstevao committed Oct 25, 2019
commit 9624986cf75f4df6be5085572716356950c55e3c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ public class RNReactNativeGutenbergBridge: RCTEventEmitter {
}

let jsFormattedMedia = mediaToReturn.map { mediaInfo in
return [mediaDictKeys.IDKey: mediaInfo.id as Any,
mediaDictKeys.URLKey: mediaInfo.url as Any,
mediaDictKeys.TypeKey: mediaInfo.type as Any]
return mediaInfo.encodeForJS()
}
if allowMultipleSelection {
callback([jsFormattedMedia])
Expand Down Expand Up @@ -202,3 +200,14 @@ extension RNReactNativeGutenbergBridge {
static let TypeKey = "type"
}
}

extension MediaInfo {

func encodeForJS() -> [String: Any] {
return [
RNReactNativeGutenbergBridge.mediaDictKeys.IDKey: id as Any,
RNReactNativeGutenbergBridge.mediaDictKeys.URLKey: url as Any,
RNReactNativeGutenbergBridge.mediaDictKeys.TypeKey: type as Any
]
}
}