
Android
你微笑时很美ivan
这个作者很懒,什么都没留下…
展开
-
ReactNative报错undefined is not an object (evaluating 'this.props.navigation.navigate')
在入口初始化import { AppRegistry, StyleSheet, Text, View } from 'react-native';import React, { Component } from 'react';import { Image } from 'react-native';import Home from './app/home/Home'import A...原创 2019-04-08 16:35:06 · 6564 阅读 · 0 评论 -
ReactNative FlatList多布局展示列表数据
import React, { Component } from "react";import { Button, FlatList, StyleSheet, Text, View, TextInput } from "react-native";import Swiper from 'react-native-swiper';import { PullView } from 'react...原创 2019-04-08 16:37:20 · 3556 阅读 · 0 评论 -
ReactNative导入原生模块报错TypeError: null is not an object (evaluating '_ToastExample.default.show')
刚开始接触RN,一步一踩坑,按照RN中文网集成,到toast这里就进行不下去了,红屏报错TypeError: null is not an object (evaluating '_ToastExample.default.show')错误原因:继承了自定义的ReactActivity,没有link到本地module解决办法:继承com.facebook.react.ReactAct...原创 2019-04-08 16:51:18 · 7323 阅读 · 5 评论 -
ReactNative的Navigator和BottomTabNavigator使用
创建一个简单的项目,目录结构如下index.js为App注册入口代码import { AppRegistry, StyleSheet, Text, View } from 'react-native';import InitApp from './InitApp'AppRegistry.registerComponent('MyReactNativeApp',...原创 2019-05-06 16:16:44 · 745 阅读 · 0 评论 -
Android开发webview打开第三方Cookie支持
Android 5.0以上使用原生WebView跳转H5,丢失参数,5.0以上版本的webview做了较大的改动,cookie同步操作可以自动同步,但是必须手动添加cookie支持if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) CookieManager.getInst...原创 2019-07-22 17:31:28 · 1040 阅读 · 0 评论