react-native
aminsky0
坚持记录开发过程中的疑难点
展开
-
React-native开发环境搭建(Windows平台)
React-native开发环境搭建Windows平台原创 2022-11-01 13:52:20 · 1457 阅读 · 0 评论 -
react-native Animated简单动画制作
react-native Animated简单动画制作 1、代码 import React from "react"; import { StyleSheet, View, Animated, Image } from "react-native"; class LoopAnimate extends React.Component { constructor(props) { super(props); this.state = { spin原创 2022-05-13 11:40:22 · 1473 阅读 · 0 评论 -
js从数组中随机多次获取三个值,三个值不相同,上下相邻获取值也不相同
js从数组中随机多次获取三个值,上下相邻获取值不相同 一、简单的数组排列 let numArr = [1, 2, 3, 4] numArr.sort(function() { return 0.5 - Math.random(); }) 二、从数组中随机多次获取三个值,上下相邻获取值不相同 let oldCakeList = []; let arr = []; for (var i=0; i< taskList.length; i ++) { // 循环获取随机值数组arr thi原创 2022-05-13 11:19:09 · 2215 阅读 · 0 评论 -
RN文本阴影添加
RN文本阴影添加 1、import { View, Text } from “react-native”; 引入文本 2、内容 <View style={styles.onceAndReback}> <Text style={styles.wordleftscss}>{'重新开始'}</Text> </View> 3、样式 var styles = StyleSheet.create({ wordscss: { fontSize:原创 2022-05-13 10:07:34 · 335 阅读 · 0 评论