Skip to content

Instantly share code, notes, and snippets.

Avatar
🏂
Easy to use and powerful

侑夕 tw93

🏂
Easy to use and powerful
View GitHub Profile
View douban.md

📚:6 在读 · 3 想读 · 53 读过
🎬:0 在看 · 1 想看 · 166 看过
🎵:0 在听 · 0 想听 · 6 听过

@tw93
tw93 / 📊 Weekly development breakdown
Last active Sep 20, 2020
🏊 Weekly development time
View 📊 Weekly development breakdown
JavaScript 1 hr 6 mins ███████████▒░░░░░░░░░░░░ 32.9%
TypeScript 1 hr 6 mins ███████████▒░░░░░░░░░░░░ 32.9%
Markdown 28 mins ███████░░░░░░░░░░░░░░░░░ 14.2%
JSON 24 mins ██████▒░░░░░░░░░░░░░░░░░ 12.2%
Smarty 13 mins █████░░░░░░░░░░░░░░░░░░░ 6.8%
Other 1 min ███▓░░░░░░░░░░░░░░░░░░░░ 0.6%
@tw93
tw93 / <switch>.md
Last active Mar 21, 2018
[weex] Support setting color about <switch>
View <switch>.md

Background

  • Currently, the component in Weex only support the default green color, But many times the business needs to set color for the theme tone of the product, So needs to support setting the color.

New Support && Demo

  • tintColor: Background color when the switch is turned on.
  • onTintColor: Border color and background color on Android when the switch is turned off.
  • thumbTintColor: Color of the foreground switch grip.
iOSWeb
@tw93
tw93 / .md
Last active Mar 7, 2018
【Discussion】 More enhanced about <web> component
View .md

0301 Modified version

0302 Modified version 0307 Modified version

Hi, I'm Tw93(侑夕) from Fliggy, I'd like to discuss the enhancements about component, let it take over where we can't implement through weex.

Target

View ReactNativeAnimated.js
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Animated, //使用Animated组件
Easing, //引入Easing渐变函数
} from 'react-native';
View animated.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
You can’t perform that action at this time.