<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[The_Small_White的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/The_Small_White</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; The_Small_White]]></copyright><item><title><![CDATA[npm run build报错Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/107456742</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/107456742</guid><author>The_Small_White</author><pubDate>Mon, 20 Jul 2020 09:40:43 +0800</pubDate><description><![CDATA[在react项目执行 npm run build 报错
Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
解决办法
更改package.json文件中的build项

更改前

更改后

添加  --max_old_space_size=4096即可
扩展
CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out ]]></description><category></category></item><item><title><![CDATA[react-native-image-picker调取照相机配置环境]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/103711001</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/103711001</guid><author>The_Small_White</author><pubDate>Thu, 26 Dec 2019 10:51:54 +0800</pubDate><description><![CDATA[安装
npm install react-native-image-picker --save
react-native link react-native-image-picker
卸载
react-native unlink react-native-image-picker
npm uninstall react-native-image-picker --save
android环境配置
...]]></description><category></category></item><item><title><![CDATA[react-native-picker在android上无法打包]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/103682530</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/103682530</guid><author>The_Small_White</author><pubDate>Tue, 24 Dec 2019 14:30:34 +0800</pubDate><description><![CDATA[node_modules文件夹下找到react-native-picker下android 下的build.gradle文件夹


27改为28

compile改为implementation即可

]]></description><category></category></item><item><title><![CDATA[react-native项目在android9请求不到数据]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/103682468</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/103682468</guid><author>The_Small_White</author><pubDate>Tue, 24 Dec 2019 14:26:25 +0800</pubDate><description><![CDATA[打开如下文件夹

添加如下代码即可
android:usesCleartextTraffic=“true”&gt;

]]></description><category></category></item><item><title><![CDATA[ScrollView横向滑动]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/103184891</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/103184891</guid><author>The_Small_White</author><pubDate>Thu, 21 Nov 2019 16:06:37 +0800</pubDate><description><![CDATA[ScrollView中

horizontal默认为true，代表横向滑动
showsVerticalScrollIndicator默认值为true,显示竖直滚动条showsVerticalScrollIndicator={false}不显示滚动条
horizontal={false}改为横向滑动
showsHorizontalScrollIndicator默认值为true,显示横向滚动条show...]]></description><category></category></item><item><title><![CDATA[react-native6.0版本xcode11.2版本ios报错Unrecognized font family 'Ionicons']]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/103178996</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/103178996</guid><author>The_Small_White</author><pubDate>Thu, 21 Nov 2019 11:13:44 +0800</pubDate><description><![CDATA[解决办法
打开该项目中的info.plist

在Fonts proviedby application添加下图四条

Materiallcons.ttf
Foundation.ttf
FontAwesome.ttf
Ionicons.ttf

]]></description><category></category></item><item><title><![CDATA[react-native6.0以上版本从gitlab上拉项目运行不起来]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/103117288</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/103117288</guid><author>The_Small_White</author><pubDate>Mon, 18 Nov 2019 09:39:30 +0800</pubDate><description><![CDATA[有图有真相

解决办法
cd 到当前项目的ios文件夹下边,然后运行
pod  install 即可
原因：6.0版本以上的react-native都是安装完包 需要link的包

]]></description><category></category></item><item><title><![CDATA[更新xcode11之后react-native跑项目报错问题]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/102695231</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/102695231</guid><author>The_Small_White</author><pubDate>Wed, 23 Oct 2019 09:33:14 +0800</pubDate><description><![CDATA[更新xcode到11版本之后，跑之前xcode10版本的项目，提示

报错为：
Unknown argument type ‘attribute’ in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type
这是因为xcode11引起的
解决办法
xcode打开项目

找到Ba...]]></description><category></category></item><item><title><![CDATA[react-native自动生成二维码]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/102544012</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/102544012</guid><author>The_Small_White</author><pubDate>Mon, 14 Oct 2019 11:07:59 +0800</pubDate><description><![CDATA[1.安装组件
npm install react-native-qrcode --save
2.引入组件

3.展示部分

value={‘填写自己的二维码地址’}
size={自己二维码的大小}
bgColor=‘二维码颜色’
fgColor=‘二维码颜色’

...]]></description><category></category></item><item><title><![CDATA[Parse从后台读取数据到页面]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/102521136</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/102521136</guid><author>The_Small_White</author><pubDate>Sat, 12 Oct 2019 15:16:25 +0800</pubDate><description><![CDATA[1.创建原型

2.生命周期函数部分，调用get函数

3.get函数拿去数据

4.数据呈现到界面


]]></description><category></category></item><item><title><![CDATA[react-native点击复制文本内容]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/102502765</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/102502765</guid><author>The_Small_White</author><pubDate>Fri, 11 Oct 2019 15:53:53 +0800</pubDate><description><![CDATA[1.首先引入Clipboard组件
import {Clipboard} from ‘react-native’
2.点击按钮复制文本
&lt;TouchableOpacity
activeOpacity={0.8}
onPress={() =&gt; this.copy(this.state.texts)}&gt;
&lt;Text
style={{
marginTop: scaleSizeH(...]]></description><category></category></item><item><title><![CDATA[react-native安装步骤]]></title><link>https://blog.youkuaiyun.com/The_Small_White/article/details/101690444</link><guid>https://blog.youkuaiyun.com/The_Small_White/article/details/101690444</guid><author>The_Small_White</author><pubDate>Sun, 29 Sep 2019 14:30:06 +0800</pubDate><description><![CDATA[react-native
如何新建一个项目
1.首先通过npm电脑全局安装 react-natve-cli （
2.新建项目
react-native-init appname
3.跑项目
react-native run-ios --simulator ‘iPhone X’ (可以跑指定机器型号)
react-native run-android
4.xcode的基本使用，
打开项目
首先进入你...]]></description><category></category></item></channel></rss>