This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
34 lines
1.3 KiB
import styles from './style' |
|
import React, { Component } from 'react'; |
|
import { Div, StyleSheet, Text, View, ScrollView, Alert, Button, TouchableHighlight, Image, Collapsile } from 'react-native'; |
|
import wifi from 'react-native-android-wifi'; |
|
import MapView from 'react-native-maps'; |
|
import { createStackNavigator } from 'react-navigation'; |
|
import { YellowBox } from 'react-native'; |
|
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']); //Silence Bug in React-Navigation |
|
import { WebView } from 'react-native'; |
|
|
|
|
|
export default class Speedtest extends React.Component { |
|
static navigationOptions = { |
|
title: 'Speedtest', |
|
}; |
|
render() { |
|
/* 2. Get the param, provide a fallback value if not available */ |
|
const { navigation } = this.props; |
|
const itemId = navigation.getParam('itemId', 'NO-ID'); |
|
const dataATT = navigation.getParam('dataATT', 'some default value'); |
|
//console.log('From MapScreen', dataATT.map(us => us.hostname)) //Funktioniert! |
|
return ( |
|
<WebView |
|
// source={{uri: 'http://speedtest.t-online.de/'}} |
|
// source={{uri: 'https://speedtest.de/'}} |
|
// source={{uri: 'http://st.ilm-provider.de/'}} |
|
source={{uri: 'http://gw02.tecff.de/speedtest/'}} |
|
style={{marginTop: 0, }} |
|
/> |
|
); |
|
} |
|
} |
|
|
|
|