react-native-hr's People
Forkers
berkayk priyesh9875 kamdjouduplex prakashw3expert raymondtam sreesharp stuharvey stokesbga jpcweb skipsuva ltd brandondenham rahmanazhar hamravesh reggie3 gang89 orinoco mirandamon kchalermsook getsource1234 ejohnf umairda joshuabalduff bburdiliak khalidhussain juniornapier nareshpalle9 wordpress-mobilereact-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.
Doesn't accept style props
neither through lineStyle={{}}
, direct (i.e. margin={}
) or enclosed in a View (disappears)
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
How to set a custom width ?
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.
Vertical Line
How to draw vertical line
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.
Text Size and other properties?
How to change text properties like font family, size etc....
Update npm
It seems that the package that is available in NPM does not correspond with master.
undefined is not an object (evaluating _react.PropTypes.String') error @ line import Hr from 'react-native-hr'
Please help me out in how to install, import and use clearly with example.
I am using expo .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.