小编Pan*_*wal的帖子

自下而上的抽屉反应原生

我是新来的本地人.我想在IOS中创建一个像控制中心一样的菜单滑块.我以为我可以使用react-native-drawer,但是库没有提供从底部打开抽屉的方法.你们可以提出一些建议吗?

android ios react-native

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

pod安装失败,反应原生0.44

我正在使用本地数据库开发一个react本机项目.我使用这个https://github.com/andpor/react-native-sqlite-storage进行本地数据库访问.它与RN 0.41一起工作正常.

但是现在当我将我的RN版本升级到0.44时,我会在安装pod时出现以下错误.

Unable to satisfy the following requirements:
- `Yoga (= 0.44.0.React)` required by `React/Core (0.44.0)`

None of your spec sources contain a spec satisfying the dependency: `Yoga (= 0.44.0.React)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods react-native

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

React Native fs iOS 不显示文档目录中的文件

我正在做一个 React Native 项目。我需要将捕获的图像存储在自定义文件夹中。

我为此使用了 react native fs 库。我能够在所需目录中创建图像,但我无法在我的 iphone 文件目录中看到这些图像。

这是我用来存储图像的代码。

 async moveAttachment(capturedImagePath) {

    $filePathDir = `${RNFS.DocumentDirectoryPath}/myapp/myfilename`;
    $filePath = `${$filePathDir }/myfilename.png`;
    return new Promise((resolve, reject) => {
        RNFS.mkdir(filePathDir)
        .then(() => {
            RNFS.moveFile(capturedImagePath, filePath )
            .then(() => resolve(dirPictures))
            .catch(error => reject(error));
        })
        .catch(err => reject(err));
    });
}
Run Code Online (Sandbox Code Playgroud)

我能够在模拟器的文档目录中看到图像,但无法在 iPhone > 文件目录中看到。

请帮我解决这个问题。

react-native react-native-fs

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

无法识别的字体系列“Ionicons”错误 - Native Base

我正在尝试在我的应用程序中使用本机基本图标,但每次我都会收到Unrecognized font family \xe2\x80\x98Ionicons\xe2\x80\x99 错误。我在谷歌上搜索了它并尝试了一切。像\n rm -rf node_modules && npm install\n React-Native链接React-Native-Vector-icons\N React-Native Start --reset-cache

\n\n

谁能告诉我一些基本设置,例如我应该在哪里创建我的资源文件夹以及所有用于此修复的内容?\n谢谢

\n\n

在此输入图像描述

\n

icons ios react-native native-base

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

如何从 React Native FormData 对象获取数据

我正在做一个 React Native 项目。我正在使用 FormData 上传我的文件和输入文本。

但是在表单验证中,我需要从 FormData 对象中获取值。我试过了,formData.get('mykey')但它给了我一个错误,它不是一个函数。谁能告诉我我该怎么做?

谢谢。

javascript multipartform-data reactjs react-native

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

在PHP函数中计算日期时出错

我正在开发一个php项目,我需要从特定日期获取接下来20周的所有日期,我正在尝试遵循逻辑

$epochdate = strtotime("17 August 2015");

for ($i=$epochdate + 604800, $i < $epochdate + ( 604800 * 20 ); $i = $i+604800, $j++) { 
   echo date('Y-m-d H:i:s', $i);
   echo '</br>';
}
Run Code Online (Sandbox Code Playgroud)

一切都运转良好,但它在2015-10-19之后给出了错误的日期..这是输出

2015-08-24 00:00:00
2015-08-31 00:00:00
2015-09-07 00:00:00
2015-09-14 00:00:00
2015-09-21 00:00:00
2015-09-28 00:00:00
2015-10-05 00:00:00
2015-10-12 00:00:00
2015-10-19 00:00:00
2015-10-25 23:00:00//it should be 2015-10-26
2015-11-01 23:00:00
2015-11-08 23:00:00
2015-11-15 23:00:00
2015-11-22 23:00:00
2015-11-29 23:00:00
2015-12-06 23:00:00
2015-12-13 23:00:00
2015-12-20 23:00:00
2015-12-27 23:00:00
Run Code Online (Sandbox Code Playgroud)

这有什么不对?

php strtotime

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