├── .gitignore ├── LICENSE.txt ├── README.md ├── images └── progress.png ├── index.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Walmart Labs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | *** 2 | # NOTICE: 3 | 4 | ## This repository has been archived and is not supported. 5 | 6 | [![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) 7 | *** 8 | NOTICE: SUPPORT FOR THIS PROJECT HAS ENDED 9 | 10 | This projected was owned and maintained by Walmart. This project has reached its end of life and Walmart no longer supports this project. 11 | 12 | We will no longer be monitoring the issues for this project or reviewing pull requests. You are free to continue using this project under the license terms or forks of this project at your own risk. This project is no longer subject to Walmart's bug bounty program or other security monitoring. 13 | 14 | 15 | ## Actions you can take 16 | 17 | We recommend you take the following action: 18 | 19 | * Review any configuration files used for build automation and make appropriate updates to remove or replace this project 20 | * Notify other members of your team and/or organization of this change 21 | * Notify your security team to help you evaluate alternative options 22 | 23 | ## Forking and transition of ownership 24 | 25 | For [security reasons](https://www.theregister.co.uk/2018/11/26/npm_repo_bitcoin_stealer/), Walmart does not transfer the ownership of our primary repos on Github or other platforms to other individuals/organizations. Further, we do not transfer ownership of packages for public package management systems. 26 | 27 | If you would like to fork this package and continue development, you should choose a new name for the project and create your own packages, build automation, etc. 28 | 29 | Please review the licensing terms of this project, which continue to be in effect even after decommission. 30 | 31 | React Native Image Progress Bar 32 | =============================== 33 | 34 | An image based react-native progress bar: 35 | 36 | ![Preview](./images/progress.png) 37 | 38 | And sample sample code: 39 | 40 | ``` 41 | var ProgressBar = require('react-native-image-progressbar'); 42 | ``` 43 | 44 | Then: 45 | 46 | ``` 47 | 57 | 75% 66 | 67 | ``` 68 | 69 | ## Installation 70 | 71 | ``` 72 | npm install react-native-image-progressbar --save 73 | ``` 74 | -------------------------------------------------------------------------------- /images/progress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/walmartlabs/react-native-image-progressbar/545ce0adde8a1cc24744c5a1446685badbd9c34b/images/progress.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var { CroppedImage } = require('react-native-cropping'); 4 | 5 | var React = require('react-native'); 6 | var { 7 | Text, 8 | View, 9 | Image 10 | } = React; 11 | 12 | var ProgressBar = React.createClass({ 13 | propTypes: { 14 | height: React.PropTypes.number.isRequired, 15 | width: React.PropTypes.number.isRequired, 16 | percent: React.PropTypes.number.isRequired 17 | }, 18 | getDefaultProps() { 19 | return { 20 | backgroundOpacity: 0.2, 21 | resizeMode: 'contain' 22 | } 23 | }, 24 | render() { 25 | return ( 26 | 33 | 46 | 47 | 63 | 64 | {this.props.children} 65 | 66 | ); 67 | } 68 | }); 69 | 70 | module.exports = ProgressBar; 71 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-image-progressbar", 3 | "version": "0.0.1", 4 | "description": "An image based progress bar", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "Jack Herrington ", 10 | "license": "MIT", 11 | "dependencies": { 12 | "react-native-cropping": "0.0.4" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "https://github.com/walmartreact/react-native-image-progressbar.git" 17 | } 18 | } 19 | --------------------------------------------------------------------------------