All Projects → styled-components-community → styled-native-polished

styled-components-community / styled-native-polished

Licence: MIT License
Styled Components helpers for React Native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to styled-native-polished

twin.examples
Packed with examples for different frameworks, this repo helps you get started with twin a whole lot faster.
Stars: ✭ 320 (+1423.81%)
Mutual labels:  styled-components
react-awesome-notifications
A beautiful fully customizable React + Redux notification system built with styled-components
Stars: ✭ 29 (+38.1%)
Mutual labels:  styled-components
minesweeper
💣Minesweeper game written with React
Stars: ✭ 18 (-14.29%)
Mutual labels:  styled-components
youtube-clone-mercadolivre
Mercado Livre (Sale Page) UI Clone
Stars: ✭ 24 (+14.29%)
Mutual labels:  styled-components
paygreen-ui
UI PayGreen Components: React, Styled Component
Stars: ✭ 29 (+38.1%)
Mutual labels:  styled-components
styled-components-docs-zh
💅 styled-components 中文文档翻译 🏇持续施工中
Stars: ✭ 160 (+661.9%)
Mutual labels:  styled-components
react-native-whirlwind
Whirlwind is a utility-first styling framework specifically designed for React Native. It is heavily inspired by Tachyons and Tailwind CSS and uses low-level building blocks for rapidly building custom designs.
Stars: ✭ 91 (+333.33%)
Mutual labels:  styled-components
react-component-library-lerna
Build your own React component library managed with lerna, presented with storybook and published in private npm registry.
Stars: ✭ 55 (+161.9%)
Mutual labels:  styled-components
smores-react
🍭 Marshmallow React components
Stars: ✭ 34 (+61.9%)
Mutual labels:  styled-components
desvg
🌅 Converts SVG files into components 🌞
Stars: ✭ 79 (+276.19%)
Mutual labels:  styled-components
react-easy-ssr
🔥 React Starter Project with Webpack 5, Babel 7, TypeScript, Redux-saga, Styled-components, React-jss, Split code, Server Side Rendering.
Stars: ✭ 31 (+47.62%)
Mutual labels:  styled-components
sendight-frontend
P2P File sharing
Stars: ✭ 53 (+152.38%)
Mutual labels:  styled-components
nextjs-with-material-ui-and-styled-components
Next.js with material-ui and styled-components
Stars: ✭ 100 (+376.19%)
Mutual labels:  styled-components
blog-desktop-v2
Yancey Blog website for desktop and mobile.
Stars: ✭ 19 (-9.52%)
Mutual labels:  styled-components
styled-svg
A styled-components generator for SVG files to use in react
Stars: ✭ 37 (+76.19%)
Mutual labels:  styled-components
web-template-project
This repository contains a template for nodeJS and ReactJs projects using TypeScript.
Stars: ✭ 18 (-14.29%)
Mutual labels:  styled-components
react-universal-starter
React@16, react-router@4, redux and webpack@4 starter project
Stars: ✭ 44 (+109.52%)
Mutual labels:  styled-components
twitch-stocks
A web platform that allows you to invest in Twitch streamers with imaginary points.
Stars: ✭ 17 (-19.05%)
Mutual labels:  styled-components
styled-units
You might want to try https://github.com/donavon/styled-shortcuts instead
Stars: ✭ 14 (-33.33%)
Mutual labels:  styled-components
medly-components
🧩 Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.
Stars: ✭ 66 (+214.29%)
Mutual labels:  styled-components

styled-native-polished

Styled Components helpers for React Native

Install

yarn add styled-native-polished styled-component

Setup

You provide all the methods using the theme provider

// index.js

...
import * as nativePolished from 'styled-native-polished'
import theme './theme'

<ThemeProvider theme={{ ...nativePolished, ...theme}}>
  <App />
</ThemeProvider>

Or import as necessary with the named imports

import { ios } from 'styled-native-polished'

Helpers

media

import { media } from 'styled-native-polished'

const ItemDetails = styled.View`
 ${media({ minWidth: 500 })`
   width: 100%;
 `};
  ${media({ maxWidth: 500 })`
   width: 60%;
 `};
`

ios

iOS specific styles

import { ios } from 'styled-native-polished'

const YouExpectedAnElementButItWasMeDioBtn = styled.TouchableOpacity`
 border-color: blue;
 ${ios`border-color: red`};
`

android

Android specific styles

import { android } from 'styled-native-polished'

const YouExpectedAnElementButItWasMeDioBtn = styled.TouchableOpacity`
 border-color: blue;
 ${android`border-color: red`};
`

fullAlign

Flex full centralize parent items

import { fullAlign } from 'styled-native-polished'

const Wrapper = styled.View`
 border-color: blue;
 ${fullAlign()};
`

roundedWrapper(size)

Helps to create a completely rounded view

import { roundedWrapper } from 'styled-native-polished'

const RoundedButton = styled.TouchableOpacity`
 border-color: blue;
 ${roundedWrapper('40px')};
`
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].