GithubHelp home page GithubHelp logo

react-native-hr's People

Contributors

berkayk avatar jpcweb avatar priyesh9875 avatar riglerr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-native-hr's Issues

Element type is invalid

Hey, trying to use react-native-hr in my project as this:

import {Hr} from 'react-native-hr'
    ...
    class MyListItem extends PureComponent {
 render(){
   return (
     <View style={styles.detailCard}>
     

         <Text style={styles.detailCardContent}>{this.props.content}</Text>
         <Hr />
         <Text> --{this.props.re}</Text>
         <Text>=====================</Text>
         </View>
     );
 }

}

But above code gives me an error:

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

textStyle and margin not working

React Native v44.
latest react-native-hr

<Hr lineColor="#ddd" text="RECOMMENDED" marginLeft={25} textStyle={{
                        color: "green",
                        fontSize: 20,
                        textDecorationLine: "underline",
                        textDecorationStyle: "solid",
                        textDecorationColor: "#000"
                    }}

the margin and style is not working

Setting FULL Width?

Right now the Hr line leaves some space at both ends. It looks good but my requirement is full width line. How to do that? I tried to set marginLeft marginRight paddingLeft paddingRight all 0 but it does not work.

PropTypes has been moved in React v16

Starting with react v15.5 the use of React.PropTypes resulted in a deprecation warning. in v16 that module was moved to the prop-types package. This is causing react-native-hr to fail:

TypeErr: Cannot read property 'string' of undefined

React has scripts that can be used to update the source for this package: https://github.com/reactjs/react-codemod. although that is probably unnecessary because the change is pretty minor.

Update npm

It seems that the package that is available in NPM does not correspond with master.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.