Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-layout
Advanced tools
This project contains react-native layout components which brings more semantic to your JSX code.
It contains a "little bit more complex" BorderLayout, as well as really simple layout modules like Center, Fill, Header, Footer, and it also renames a view group as LinearLayout.
API, documentation and unit tests are WIP. Ideas, discussions and contributions are welcome: Open an issue
If your brave install the alpha version (0.0.x):
npm install react-native-layout --save
You can expect a beta version (0.1.0) soon.
Developing apps with react-native is great. But sometimes the JSX markup loses its simplicity with a growing number of components and view elements. Especially when you extracts and imports the stylesheets from an external file.
An example project is coming soon. Currently please checkout the examples
folder and the following inline codes.
Instead of:
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>Center Content</Text>
</View>
Write:
<Center>
<Text>Center Content</Text>
</Center>
Instead of:
<View style={{ flex: 1 }}>
<View><Text>Header</Text></View>
<View style={{ flex: 1 }}><Text>Content</Text></View>
<View><Text>Footer</Text></View>
</View>
You could write:
<Fill>
<Top><Text>Header</Text></Top>
<Bottom><TextFooter</Text></Bottom>
<View><Text>Content</Text></View>
</Fill>
FAQs
Semantic JSX layout components for react-native
The npm package react-native-layout receives a total of 0 weekly downloads. As such, react-native-layout popularity was classified as not popular.
We found that react-native-layout demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.