小编Afi*_*han的帖子

34
推荐指数
4
解决办法
3万
查看次数

React Native Image Picker:null不是一个对象(评估'ImagePickerManager.showImagePicker')

我根据文档安装了react-native-image-picker。当我尝试从手机中选择图像时(按下按钮后),模拟器给了我这个错误 - null is not an object (evaluating 'ImagePickerManager.showImagePicker')

我的 React Native 版本是 0.59.8

图像选择器的版本是0.28.0

这是代码-

import React, { Component } from 'react';
import {
  StyleSheet,
  Text,
  View,
  Image,
  Button
} from 'react-native';
import ImagePicker from "react-native-image-picker";

export default class App extends Component {

  state = {
    pickedImage: null
  }

  reset = () => {
    this.setState({
      pickedImage: null
    });
  }




pickImageHandler = () => {
    ImagePicker.showImagePicker({title: "Pick an Image", maxWidth: 800, maxHeight: 600}, res => {
      if (res.didCancel) {
        console.log("User …
Run Code Online (Sandbox Code Playgroud)

android react-native react-native-image-picker

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

如何在号码输入字段中以这种“ xxx-xxx-xxxx”格式输入电话号码

我希望每当我在数字输入字段中以数字XXXXXXXXXX格式输入数字时,就像XXX-XXX-XXXX使用HTML,CSS和javascript一样。

就像此代码段一样,但不使用mask脚本。

$('.phone_us').mask('000-000-0000');
Run Code Online (Sandbox Code Playgroud)
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<script src="https://igorescobar.github.io/jQuery-Mask-Plugin/js/jquery.mask.min.js" type="text/javascript"></script>
<!--mask script-->

<input type="text" class="phone_us" />
Run Code Online (Sandbox Code Playgroud)

html javascript jquery

4
推荐指数
2
解决办法
3629
查看次数

如何在本机反应中进行反向地理编码

我试图在 react native 中获取我当前的位置,使用react-native-geolocation获取我所在位置的纬度和经度。现在我想在不使用 Google API 密钥的情况下将它们转换为位置的地址。

有没有办法在不使用 Google API 密钥的情况下将纬度经度转换为地址?

geolocation reverse-geocoding react-native

3
推荐指数
2
解决办法
7057
查看次数

如何在 Oracle 中删除多个函数

我想在 Oracle 的 SQL 开发人员中一次从我的数据库中删除多个函数。有没有人知道如何为此创建脚本?

sql database oracle plsql oracle-sqldeveloper

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