Bill Xie

Results 10 comments of Bill Xie

``` - (CGFloat)initialZoomScaleWithMinScale { CGFloat zoomScale = self.minimumZoomScale; if (_photoImageView && _photoBrowser.zoomPhotosToFill) { // Zoom image to fill if the aspect ratios are fairly similar CGSize boundsSize = self.bounds.size; CGSize...

``` if (ABS(boundsAR - imageAR) < 0.17) { zoomScale = MAX(xScale, yScale); // Ensure we don't zoom in or out too far, just in case zoomScale = MIN(MAX(self.minimumZoomScale, zoomScale), self.maximumZoomScale);...

我也遇到了类似的问题在JSContext 里面设置的block 没有回调.不过我发现 是这个 [context setObject:@"" forKeyedSubscript:^() {}];没有起到效果

replace the `ref={'tabContainer'}` with `ref={ref => (this.tabContainer = ref)}`

ImagePicker.openPicker({ ... directAlbum: true, ... }).then(arr => { func(arr) })

same isuue super expression must either be null or function

subClass: [Function RefreshableScrollView] superClass: {"$$typeof": Symbol(react.forward_ref), "Context": {"$$typeof": Symbol(react.context), "Consumer": {"$$typeof": Symbol(react.context), "_calculateChangedBits": null, "_context": [Circular]}, "Provider": {"$$typeof": Symbol(react.provider), "_context": [Circular]}, "_calculateChangedBits": null, "_currentRenderer": {}, "_currentRenderer2": null, "_currentValue": null, "_currentValue2":...

I just try to fix it with this replace `export default class RefreshableScrollView extends ScrollView` with `export default class RefreshableScrollView extends Component` The short answer is: ScrollView component is not...

-(void)carouselDidScroll:(iCarousel *)carousel { for(UIView *view in carousel.visibleItemViews) { if(view == carousel.currentItemView) { view.alpha = 1 - (carousel.scrollOffset - carousel.currentItemIndex)>0.4?1 - (carousel.scrollOffset - carousel.currentItemIndex):1; } else { view.alpha = 0.4 +...