小编Had*_*hin的帖子

反应原生相机 - 默认预览似乎在 IOS 上放大

我正在为我的应用程序使用 React Native Camera,但我遇到了一个奇怪的问题。

这是我的代码:

<View flex>
    <RNCamera ref={ref=> { this.camera = ref; }} style={{flex : 1}} type={this.state.cameraType} flashMode={RNCamera.Constants.FlashMode.on} permissionDialogTitle={'Autorisation de l\'appareil photo'} permissionDialogMessage={'Nous avons besoin de votre permission pour accéder à l\'appareil photo.'} zoom={0} ratio={'16:9'} focusDepth={0} />
    <View style={{ position: 'absolute', width: 75, height: 75, top: this.state.currentHeight / 2.2, bottom: 0, right: 37, zIndex: 1 }}>
        <TouchableOpacity centerH onPress={this.takePicture.bind(this)}>
            <Image style={{ width: 75, height: 75 }} source={{ uri: "cameraButton" }} />
        </TouchableOpacity>
    </View>
    <View style={{ position: 'absolute', width: 50, …
Run Code Online (Sandbox Code Playgroud)

javascript react-native react-native-ios

5
推荐指数
0
解决办法
496
查看次数

ngx 图表:折线图定义线宽

我在一个项目中使用 ngxChart,一切都很好,但我发现线宽很细,我不知道如何让它变大。

有什么帮助吗?

javascript angular ngx-charts

3
推荐指数
1
解决办法
1222
查看次数

netbeans cordova-在构建我的项目时出错

我的newtbeans Cordova安装有一些问题.

我尝试构建简单的Cordova Hello World项目以在我的设备上进行检查.

但是当我尝试构建我的项目时,netbeans会将此错误返回给我:

Error: Command failed: C:\Windows\system32\cmd.exe /s /c "git clone "https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git" "C:\Users\hadrien\AppData\Local\Temp\git\1426857416149""
Run Code Online (Sandbox Code Playgroud)

克隆到'C:\ Users\hadrien\AppData\Local\Temp\git\1426857416149'...致命:无法访问' https://git-wip-us.apache.org/repos/asf/cordova-plugin -device.git / ':SSL证书问题:无法获得本地颁发者证书

at ChildProcess.exithandler (child_process.js:744:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1008:16)
at Socket.<anonymous> (child_process.js:1176:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:476:12)
Run Code Online (Sandbox Code Playgroud)

C:\ Users\hadrien\Documents\NetBeansProjects\HTML5Application \nbproject\build.xml:235:exec返回:1 BUILD FAILED(总时间:1秒)

我觉得有点迷茫,你能帮助我吗?也许我在安装过程中犯了错误?

多谢

git ssl netbeans build cordova

2
推荐指数
1
解决办法
1644
查看次数

typescript - 创建一个回调函数

嘿伙计们,我想知道如何在打字稿中制作一个回调函数.

我知道如何在vanilla JS中做到这一点:

function mySandwich(param1, param2, callback) {
alert('Started eating my sandwich.\n\nIt has: ' + param1 + ', ' + param2);
callback();}

mySandwich('ham', 'cheese', function() {
alert('Finished eating my sandwich.');});
Run Code Online (Sandbox Code Playgroud)

但我找不到用TS做的方法.你们有一个例子吗?

谢谢!

javascript web typescript

0
推荐指数
1
解决办法
6003
查看次数