This file contains 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 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 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 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 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 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 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 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); |
This file contains 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
RCT_CUSTOM_VIEW_PROPERTY(showNextButton, BOOL, RCTTextField) | |
{ | |
if (json && ([RCTConvert BOOL:json])) { | |
UIToolbar* toolbar = [[UIToolbar alloc] init]; | |
[toolbar sizeToFit]; | |
UIBarButtonItem* flex = [[UIBarButtonItem alloc] | |
initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace | |
target:nil action:nil]; | |
UIBarButtonItem* doneButton = [[UIBarButtonItem alloc] |
This file contains 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
// images are from the properties.. | |
downloadImages = async ({ images }) => { | |
const newImage = images.map(image => { | |
return RNFetchBlob.fetch('GET', image.url) | |
.then(res => { | |
return { | |
title_en: image.title_en, | |
type: image.type, | |
image: `data:image/png;base64,${res.base64()}`, |
OlderNewer