This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaults write com.apple.iphonesimulator ShowSingleTouches 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import PlaygroundSupport | |
| class MyViewController : UIViewController { | |
| override func loadView() { | |
| let view = UIView() | |
| view.backgroundColor = .lightGray | |
| let label = UILabel() | |
| label.numberOfLines = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let usingNonBreakingSpace = UILabel() | |
| usingNonBreakingSpace.numberOfLines = 0 | |
| usingNonBreakingSpace.frame = CGRect(x: 90, y: 300, width: 220, height: 60) | |
| usingNonBreakingSpace.text = "My phone number is (555)\u{00a0}123–4567" | |
| usingNonBreakingSpace.textColor = .black |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import PlaygroundSupport | |
| class MyViewController : UIViewController { | |
| override func loadView() { | |
| let view = UIView() | |
| view.backgroundColor = .lightGray | |
| let label = UILabel() | |
| label.numberOfLines = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| public protocol ReactPresenter { | |
| func presentReactViewController(moduleName: String?, jsFileName: String?,bundle: Bundle? , isDebug: Bool, props: [String: Any]?, hidesBottomBarWhenPushed: Bool, showNavigationBar: Bool) | |
| func showReactViewController(moduleName: String?, jsFileName: String?,bundle: Bundle? , isDebug: Bool, props: [String: Any]? , hidesBottomBarWhenPushed: Bool, showNavigationBar: Bool) | |
| func presenterViewController() -> UIViewController | |
| } | |
| extension ReactPresenter where Self: UIViewController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import React | |
| @objc(ReactViewController) | |
| public class ReactViewController: UIViewController { | |
| var moduleName: String = "" | |
| var jsFileName: String = "" | |
| var isDebug: Bool = false | |
| var showNavigationBar: Bool = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <React/RCTBridgeModule.h> | |
| @interface RCT_EXTERN_MODULE(ReactViewController, NSObject) | |
| RCT_EXTERN_METHOD(dismissReactView) | |
| @end |