This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { | |
| compose, | |
| withHandlers, | |
| withState, | |
| setStatic, | |
| setPropTypes | |
| } from 'recompose'; | |
| import { View } from 'react-native'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const obj = [ | |
| { | |
| city: "Kampong Thom", | |
| suburbs: [ | |
| { | |
| suburb: "Stueng Saen", | |
| suburbs: [ | |
| "Achar Leak", | |
| "Damrei Choan Khla", | |
| "Kampong Krabau", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { PropTypes } from 'react'; | |
| import { View, Platform } from 'react-native'; | |
| import { Surface, Shape, Path, Group } from '../../react-native/Libraries/ART/ReactNativeART'; | |
| import MetricsPath from 'art/metrics/path'; | |
| export default class CircularProgress extends React.Component { | |
| circlePath(cx, cy, r, startDegree, endDegree) { | |
| let p = Path(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import moment from 'moment'; | |
| import React, { PureComponent } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { | |
| View, | |
| Text, | |
| StyleSheet, | |
| Image, | |
| ImageBackground | |
| } from 'react-native'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function validatePIN (pin) { | |
| const checkLength = pin.length === 4 || pin.length === 6; | |
| const numMatch = /^[0-9]/g | |
| if (checkLength && pin.match(numMatch)){ | |
| return true; | |
| } | |
| return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { View, Platform, PickerIOS, Text } from 'react-native'; | |
| import PickerAndroid from 'react-native-picker-android'; | |
| import styles from './styles/LanguagePickerStyles'; | |
| let PickerList = Platform.OS === 'ios' ? PickerIOS : PickerAndroid; | |
| let PickerItem = PickerList.Item; | |
| const LANGUAGES = [ | |
| { name: 'Chinese(Mandarin)', key: 'cn' }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { View, ART } from 'react-native'; | |
| const { Surface, Shape, Path, Group } = ART; | |
| export default class CircularProgress extends React.Component { | |
| circlePath(cx, cy, r, startDegree, endDegree) { | |
| let p = Path(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, | |
| View, | |
| PixelRatio, | |
| TouchableOpacity, | |
| Image, | |
| Alert, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React,{ Component } from 'react'; | |
| import { PanResponder, View, Platform } from 'react-native'; | |
| import Svg,{ Path, Circle, G,Text } from 'react-native-svg'; | |
| class CircularSlider extends Component { | |
| constructor(props){ | |
| super(props); | |
| this.handlePanResponderMove = this.handlePanResponderMove.bind(this); | |
| this.cartesianToPolar = this.cartesianToPolar.bind(this); | |
| this.polarToCartesian = this.polarToCartesian.bind(this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Animated } from 'react-native'; | |
| import CircularProgress from './CircularProgress'; | |
| const AnimatedProgress = Animated.createAnimatedComponent(CircularProgress); | |
| class AnimatedCircularProgress extends React.Component { | |
| constructor() { | |
| super(); | |
| this._animatedValue = new Animated.Value(0); |
OlderNewer