Giter Club home page Giter Club logo

pure-swift-views-react-native's Issues

would it be possible to update this?

"dependencies": {
"react": "16.0.0",
"react-native": "0.51.0"
},

xcode 9.2

Works as expected with your (older) settings, but not for the life of me I can get it to work now.
Thank you in advance!

Uli

how can i handle UiViewController?

// SwiftStreetVueController.swift
import UIKit
import GoogleMaps

class SwiftStreetVueController: UIViewController, GMSPanoramaViewDelegate {
override func loadView() {
let bounda = UIScreen.main.bounds
let width = bounda.size.width
let height = bounda.size.height
let panoView = GMSPanoramaView(frame: CGRect(x: 0, y: 0, width: width,
height: height-60))
panoView.setAllGesturesEnabled(true)
panoView.moveNearCoordinate(CLLocationCoordinate2DMake(38.4476364, -123.3953934))
panoView.delegate = self
self.view = panoView
}
// MARK: - GMSPanoramaViewDelegate
private func panoramaView(view: GMSPanoramaView!, error: NSError!, onMoveNearCoordinate coordinate: CLLocationCoordinate2D) {
print("Moving near coordinate (\(coordinate.latitude),\(coordinate.longitude) error: \(error.localizedDescription)")
}

private func panoramaView(view: GMSPanoramaView!, error: NSError!, onMoveToPanoramaID panoramaID: String!) {
print("Moving to PanoID \(panoramaID) error: \(error.localizedDescription)")
}

private func panoramaView(view: GMSPanoramaView!, didMoveToPanorama panorama: ``GMSPanorama!) {
print("Moved to panoramaID: \(panorama.panoramaID) " +
"coordinates: (\(panorama.coordinate.latitude),\(panorama.coordinate.longitude))")
}

}

`// SwiftStreetVue.swift
import UIKit
import GoogleMaps

class SwiftStreetVue: UIView {
let StreetVueController: SwiftStreetVueController = SwiftStreetVueController()
override init(frame: CGRect) {
super.init(frame: frame)
self.reactAddController(toClosestParent: StreetVueController)
self.addSubview(StreetVueController.view)
}

required init(coder aDecoder: NSCoder) {
fatalError("This class does not support NSCoding")
}

}
`

`// SwiftStreetVueManager.swift

import Foundation
@objc(SwiftStreetVueManager)
class SwiftStreetVueManager : RCTViewManager {

override func view() -> UIView! {
return SwiftStreetVue();
}
}
`

I can't touch or click my view. how can i do it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.