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
| xsdgf |
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, { PureComponent } from 'react' | |
| import { View, TextInput, StyleSheet, Platform } from 'react-native'; | |
| class ExpandingTextInput extends PureComponent { | |
| constructor(props) { | |
| super(props) | |
| this.state = {} | |
| this.onContentSizeChange = this.onContentSizeChange.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, { PureComponent } from 'react'; | |
| import { InteractionManager } from 'react-native'; | |
| class WaitForUI extends PureComponent { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| interactionsComplete: 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
| export default (property, hex, alpha, extraProperties) => { | |
| const isHex = ((hex) => { | |
| return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(hex) | |
| }); | |
| const hexToRGB = ((hex) => { | |
| if (isHex(hex)) { | |
| const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; | |
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 fib = (n) => { | |
| if (n == 0) { | |
| return 0; | |
| } | |
| if (n == 1 || n == 2) { | |
| f[n] = 1; | |
| return f[n] |
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 Svg from 'react-native-svg'; | |
| import * as Icons from './icons'; | |
| const Icon = (props) => { | |
| const { | |
| icon | |
| } = props; | |
| if (!icon) { |
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, { PureComponent } from 'react'; | |
| // Import styles | |
| import GeneralStyles from '../styles/GeneralStyles'; | |
| import FormElements from '../styles/FormElements'; | |
| import SearchScreenStyles from '../styles/SearchScreenStyles'; | |
| // Importing components | |
| import CustomIcon from '../components/CustomIcon'; | |
| import SearchInput from '../components/SearchInput' |
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, { PureComponent } from 'react'; | |
| class App extends PureComponent { | |
| componentWillMount() { | |
| const url = 'api.openweathermap.org/data/2.5/weather?q=München,DE&appid=382aa7ad3501c6d4a564022372982343'; | |
| fetch(url).then((res) => { | |
| if (res.status !== 200) { | |
| console.log('Looks like there was a problem. Status Code: ' + res.status); |
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 { Line } from 'react-chartjs-2'; | |
| import './app.scss'; | |
| class App extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { |
OlderNewer