/**
 * 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.
 *
 */

'use strict';

import * as React from 'react';
import { processColor } from 'react-native';

import RNCProgressViewNativeComponent from './RNCProgressViewNativeComponentAndroid';

export default function ProgressView(props) {
  const nativeProps = {
	...props,
    testID: props.testID,
    progress: props.progress,
    progressTintColor: processColor(props.progressTintColor || '#007AFF'),
    trackTintColor: processColor(props.trackTintColor || '#DCDCDC'),
    isIndeterminate: props.isIndeterminate,
    progressViewStyle: props.progressViewStyle,
    style: [{height: 20}, props.style],
  };

  return <RNCProgressViewNativeComponent {...nativeProps} />;
}