Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions SHARE_EXTENSION_VIEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ Open your Share Extension's `Info.plist` and add the following:
<key>ReactShareViewBackgroundColor</key>
<dict>
<key>Red</key>
<integer>1</integer>
<real>1</real>
<key>Green</key>
<integer>1</integer>
<real>1</real>
<key>Blue</key>
<integer>1</integer>
<real>1</real>
<key>Alpha</key>
<integer>1</integer>
<real>1</real>
<key>Transparent</key>
<false/>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion ios/Modules/ShareMenuReactView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class ShareMenuReactView: NSObject {
}

public static func attachViewDelegate(_ delegate: ReactShareViewDelegate!) {
guard (ShareMenuReactView.viewDelegate == nil) else { return }
// guard (ShareMenuReactView.viewDelegate == nil) else { return }

ShareMenuReactView.viewDelegate = delegate
}
Expand Down
8 changes: 4 additions & 4 deletions ios/ReactShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class ReactShareViewController: ShareViewController, RCTBridgeDelegate, ReactSha
break backgroundColorSetup
}

let red = backgroundColorConfig[COLOR_RED_KEY] as? Float ?? 1
let green = backgroundColorConfig[COLOR_GREEN_KEY] as? Float ?? 1
let blue = backgroundColorConfig[COLOR_BLUE_KEY] as? Float ?? 1
let alpha = backgroundColorConfig[COLOR_ALPHA_KEY] as? Float ?? 1
let red = (backgroundColorConfig[COLOR_RED_KEY] as? NSNumber)?.floatValue ?? 1
let green = (backgroundColorConfig[COLOR_GREEN_KEY] as? NSNumber)?.floatValue ?? 1
let blue = (backgroundColorConfig[COLOR_BLUE_KEY] as? NSNumber)?.floatValue ?? 1
let alpha = (backgroundColorConfig[COLOR_ALPHA_KEY] as? NSNumber)?.floatValue ?? 1

rootView.backgroundColor = UIColor(red: CGFloat(red), green: CGFloat(green), blue: CGFloat(blue), alpha: CGFloat(alpha))
}
Expand Down