Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Tw93 tw93

🎯
Focusing
Block or report user

Report or block tw93

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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.