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.
83 lines
1.8 KiB
83 lines
1.8 KiB
/** |
|
* Copyright (c) 2015-present, Facebook, Inc. |
|
* |
|
* This source code is licensed under the MIT license found in the |
|
* LICENSE file in the root directory of this source tree. |
|
* |
|
* @providesModule ProgressViewIOS |
|
* @flow |
|
*/ |
|
'use strict'; |
|
|
|
const Image = require('Image'); |
|
const NativeMethodsMixin = require('NativeMethodsMixin'); |
|
const React = require('React'); |
|
const PropTypes = require('prop-types'); |
|
const StyleSheet = require('StyleSheet'); |
|
const ViewPropTypes = require('ViewPropTypes'); |
|
|
|
const createReactClass = require('create-react-class'); |
|
const requireNativeComponent = require('requireNativeComponent'); |
|
|
|
/** |
|
* Use `ProgressViewIOS` to render a UIProgressView on iOS. |
|
*/ |
|
const ProgressViewIOS = createReactClass({ |
|
displayName: 'ProgressViewIOS', |
|
mixins: [NativeMethodsMixin], |
|
|
|
propTypes: { |
|
...ViewPropTypes, |
|
/** |
|
* The progress bar style. |
|
*/ |
|
progressViewStyle: PropTypes.oneOf(['default', 'bar']), |
|
|
|
/** |
|
* The progress value (between 0 and 1). |
|
*/ |
|
progress: PropTypes.number, |
|
|
|
/** |
|
* The tint color of the progress bar itself. |
|
*/ |
|
progressTintColor: PropTypes.string, |
|
|
|
/** |
|
* The tint color of the progress bar track. |
|
*/ |
|
trackTintColor: PropTypes.string, |
|
|
|
/** |
|
* A stretchable image to display as the progress bar. |
|
*/ |
|
progressImage: Image.propTypes.source, |
|
|
|
/** |
|
* A stretchable image to display behind the progress bar. |
|
*/ |
|
trackImage: Image.propTypes.source, |
|
}, |
|
|
|
render: function() { |
|
return ( |
|
<RCTProgressView |
|
{...this.props} |
|
style={[styles.progressView, this.props.style]} |
|
/> |
|
); |
|
} |
|
}); |
|
|
|
const styles = StyleSheet.create({ |
|
progressView: { |
|
height: 2, |
|
}, |
|
}); |
|
|
|
const RCTProgressView = requireNativeComponent( |
|
'RCTProgressView', |
|
ProgressViewIOS |
|
); |
|
|
|
module.exports = ProgressViewIOS;
|
|
|