Search
Preparing search index...
The search index is not available
EF React Native Style Framework
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"theme/Opacity"
ThemeOpacity
Class ThemeOpacity
Provides style mixins that can be used to specify states of opacity
example
Using the mixins
```ts import { ViewStyle } from 'react-native'; import { Theme } from '@ef-carbon/react-native-style'; const theme = new Theme(); const transparent: ViewStyle = { ...theme.font.transparent, }; const translucent: ViewStyle = { ...theme.font.translucent, }; const semi: ViewStyle = { ...theme.font.semi, }; const cloudy: ViewStyle = { ...theme.font.cloudy, }; const opaque: ViewStyle = { ...theme.font.opaque, }; ```
example
Overriding the values
```ts import { Opacity, ThemeOpacity, Theme } from '@ef-carbon/react-native-style'; const constants = new Opacity({ base: 0.6 }); const opacity = new Opacity({ opacity: constants }); const theme = new Theme({ opacity, base: 'blue' }); ```
see
Opacity
Hierarchy
ThemeOpacity
Implements
object
Index
Constructors
constructor
Properties
cloudy
opaque
semi
translucent
transparent
Constructors
constructor
new
Theme
Opacity
(
__namedParameters
:
object
)
:
ThemeOpacity
Parameters
__namedParameters:
object
cloudy
:
undefined
|
IOpacityStylesAll
opacity
:
IOpacity
<
number
>
opaque
:
undefined
|
IOpacityStylesAll
semi
:
undefined
|
IOpacityStylesAll
translucent
:
undefined
|
IOpacityStylesAll
transparent
:
undefined
|
IOpacityStylesAll
Returns
ThemeOpacity
Properties
cloudy
cloudy
:
Readonly
<
IStyles
>
opaque
opaque
:
Readonly
<
IStyles
>
semi
semi
:
Readonly
<
IStyles
>
translucent
translucent
:
Readonly
<
IStyles
>
transparent
transparent
:
Readonly
<
IStyles
>
Globals
"theme/
Opacity"
Theme
Opacity
constructor
cloudy
opaque
semi
translucent
transparent
ITheme
Opacity
Options
Provides style mixins that can be used to specify states of opacity
Opacity