Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-app-style

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-app-style

style simple apply to react native app

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

react-native-app-style

react native style을 중앙에서 관리 함. react native 기본 UI를 style을 적용하기 위해 wrapper class 형태로


import {View} from "react-native"

<View style={{flex:1, }}>
</View>

// style file
const style ={
  
  view:{// View 기본 스타일을 
    backgroundColor: 'green',
  },
  
 
  '.app':{ // html css 와같이 class name은 .을 찍어서 처리 
    flex:1,
  },

  'view.app':{
    width:100,
  }
}


import * as Styled from "react-native-app-style"
import styledComponent, { AppStyle } from "react-native-app-style/style"

<AppStyle styleInfo={style}>
<Styled.View cN="app">
</Styled.View>
</AppStyle>

Keywords

FAQs

Package last updated on 01 Mar 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc