yeet
This commit is contained in:
46
node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js
generated
vendored
Normal file
46
node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const React = require('react');
|
||||
const StyleSheet = require('../../StyleSheet/StyleSheet');
|
||||
const Text = require('../../Text/Text');
|
||||
const View = require('../View/View');
|
||||
|
||||
class DummyProgressViewIOS extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<View style={[styles.dummy, this.props.style]}>
|
||||
<Text style={styles.text}>
|
||||
ProgressViewIOS is not supported on this platform!
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
dummy: {
|
||||
width: 120,
|
||||
height: 20,
|
||||
backgroundColor: '#ffbcbc',
|
||||
borderWidth: 1,
|
||||
borderColor: 'red',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
text: {
|
||||
color: '#333333',
|
||||
margin: 5,
|
||||
fontSize: 10,
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = DummyProgressViewIOS;
|
77
node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js
generated
vendored
Normal file
77
node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js
generated
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
* @flow strict-local
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const React = require('react');
|
||||
const StyleSheet = require('../../StyleSheet/StyleSheet');
|
||||
|
||||
import RCTProgressViewNativeComponent from './RCTProgressViewNativeComponent';
|
||||
import type {ImageSource} from '../../Image/ImageSource';
|
||||
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
|
||||
import type {ViewProps} from '../View/ViewPropTypes';
|
||||
|
||||
type Props = $ReadOnly<{|
|
||||
...ViewProps,
|
||||
|
||||
/**
|
||||
* The progress bar style.
|
||||
*/
|
||||
progressViewStyle?: ?('default' | 'bar'),
|
||||
|
||||
/**
|
||||
* The progress value (between 0 and 1).
|
||||
*/
|
||||
progress?: ?number,
|
||||
|
||||
/**
|
||||
* The tint color of the progress bar itself.
|
||||
*/
|
||||
progressTintColor?: ?ColorValue,
|
||||
|
||||
/**
|
||||
* The tint color of the progress bar track.
|
||||
*/
|
||||
trackTintColor?: ?ColorValue,
|
||||
|
||||
/**
|
||||
* A stretchable image to display as the progress bar.
|
||||
*/
|
||||
progressImage?: ?ImageSource,
|
||||
|
||||
/**
|
||||
* A stretchable image to display behind the progress bar.
|
||||
*/
|
||||
trackImage?: ?ImageSource,
|
||||
|}>;
|
||||
|
||||
/**
|
||||
* Use `ProgressViewIOS` to render a UIProgressView on iOS.
|
||||
*/
|
||||
const ProgressViewIOS = (
|
||||
props: Props,
|
||||
forwardedRef?: ?React.Ref<typeof RCTProgressViewNativeComponent>,
|
||||
) => (
|
||||
<RCTProgressViewNativeComponent
|
||||
{...props}
|
||||
style={[styles.progressView, props.style]}
|
||||
ref={forwardedRef}
|
||||
/>
|
||||
);
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
progressView: {
|
||||
height: 2,
|
||||
},
|
||||
});
|
||||
|
||||
const ProgressViewIOSWithRef = React.forwardRef(ProgressViewIOS);
|
||||
|
||||
module.exports = (ProgressViewIOSWithRef: typeof RCTProgressViewNativeComponent);
|
35
node_modules/react-native/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js
generated
vendored
Normal file
35
node_modules/react-native/Libraries/Components/ProgressViewIOS/RCTProgressViewNativeComponent.js
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict-local
|
||||
* @format
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import type {Float, WithDefault} from '../../Types/CodegenTypes';
|
||||
import type {ImageSource} from '../../Image/ImageSource';
|
||||
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
|
||||
import type {ViewProps} from '../View/ViewPropTypes';
|
||||
|
||||
import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
|
||||
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
|
||||
|
||||
type NativeProps = $ReadOnly<{|
|
||||
...ViewProps,
|
||||
|
||||
// Props
|
||||
progressViewStyle?: WithDefault<'default' | 'bar', 'default'>,
|
||||
progress?: WithDefault<Float, 0>,
|
||||
progressTintColor?: ?ColorValue,
|
||||
trackTintColor?: ?ColorValue,
|
||||
progressImage?: ?ImageSource,
|
||||
trackImage?: ?ImageSource,
|
||||
|}>;
|
||||
|
||||
export default (codegenNativeComponent<NativeProps>(
|
||||
'RCTProgressView',
|
||||
): HostComponent<NativeProps>);
|
Reference in New Issue
Block a user