Soft work practice winter work (2 / 2)

Which course does this assignment belong to Soft worker Where are the requirements for this assignment Operational requirements The goal of this job Design and develop a program for epidemic statistics, learn how to optimize the program, learn how to use GitHub, learn how to use PSP (personal software development process), and learn how ...

Posted by Tryfan on Wed, 19 Feb 2020 21:00:14 -0800

React Navigation 5.0 Series 1: Use of StackNavigator

Presumably the reader's friends are Official announcement: Major updates to ReactNative Navigation Library This article learns that React Navigation, the official route navigation library recommended by React Native, has been updated to the 5th edition. It also learns about specific improvements and changes. Interested friends can read this art ...

Posted by OMorchoe on Fri, 14 Feb 2020 22:13:01 -0800

Tomato alarm one (the framework of react antd typescript)

1, Main documents React React Router Ant design TypeScript Redux 2, Start using and experience react scaffold npx create-react-app react-app-demo cd react-app-demo yarn start 3, Follow the document Rendering an element ReactDOM.render(<h1>Hello, world!</h1>, document.getElementById('root')); Use of rendering JSX const name = ...

Posted by Niruth on Wed, 12 Feb 2020 08:44:27 -0800

Use of React Router

1. Installation react router has multiple versions of packages, and react-router-dom is used in web Applications npm install react-router-dom --save 2. Use 2.0 Preparation Introduce router in src\index.js and apply it to the outermost component (Router only needs to be referenced once) import Rea ...

Posted by TitanKing on Tue, 11 Feb 2020 21:29:19 -0800

What is Redux, why and how to use Redux

1. What is Redux Official explanation: Redux is a predictable state container for JavaScript apps. This means that Redux is a predictable state container for js applications 2. Why use Redux The following illustration shows how parent-child components communicate when Redux is not used and when Redux is used In the absence of Redux, if co ...

Posted by Zssz on Fri, 07 Feb 2020 08:15:44 -0800

reactNative integrates QQ sharing and payment

1, android configuration 1. Download QQ Internet sdksdk Download 2. Create a new libs folder under android/app and put the sdk in the folder 3. Add the following in android/app/build.gradle: dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.facebook.re ...

Posted by pestilence669 on Sun, 02 Feb 2020 06:59:11 -0800

Redux information perfect interaction

Interaction requirements: improve the background interaction of information page, redux sends update data request to realize asynchronous update of user data of state tree, detects whether information supplement has been completed each time when entering the perfect information page, if it has been completed, directly jump to t ...

Posted by fooDigi on Fri, 31 Jan 2020 15:22:15 -0800

react native use redux to get started quickly

Let's take a look at a simple demo //app.js import React, {Component} from 'react'; import {StyleSheet, Button, View} from 'react-native'; import TestView from './src/testView' export default class App extends Component { state = {bgColor:'red'}; changeBgc = () => { this.setState({bgColor:'yellow',}); setTimeout(()=& ...

Posted by dpsd on Fri, 31 Jan 2020 11:25:39 -0800

Android native integration React Native

1. Create an empty directory RNDemo 2. Create a subdirectory android in RNDemo 3. Copy the android project to the subdirectory android, as shown in the project structure below. 4. Create the package.json file in RNDemo and add the following contents: { "name": "MyReactNativeApp", "version": "0.0.1", "private": true, "s ...

Posted by Minase on Fri, 31 Jan 2020 09:33:06 -0800

modal mode of react router 4. X

From 2.8.x to 4.x, it's a hard journey. There are not many online materials, so many things can only be chewed. Translate the key examples on the official website once, so that you can understand them well and improve your translation level. Before the program routing, there were frequent hops. On the one hand, the customer ex ...

Posted by rokchik on Fri, 31 Jan 2020 04:24:57 -0800