File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -8,26 +8,26 @@ title: useColorMode
88## Import
99
1010``` jsx
11- import { useColorMode } from ' native-base' ;
11+ import { useColorMode } from " native-base" ;
1212```
1313
1414## Example
1515
1616``` jsx isLive=true
17- import React from ' react' ;
17+ import React from " react" ;
1818import {
1919 NativeBaseProvider ,
2020 VStack ,
2121 useColorMode ,
2222 Text ,
2323 Button ,
2424 Center ,
25- } from ' native-base' ;
25+ } from " native-base" ;
2626
2727function UseColorMode () {
2828 const { colorMode , toggleColorMode } = useColorMode ();
2929 return (
30- < Center flex= {1 } bg= {colorMode === ' dark' ? ' black' : ' white' }>
30+ < Center flex= {1 } bg= {colorMode === " dark" ? " black" : " white" }>
3131 < Text fontSize= " lg" display= " flex" >
3232 The active color mode is < Text bold> {colorMode}< / Text >
3333 < / Text >
@@ -51,6 +51,6 @@ export function Example() {
5151
5252| Name | Type | Description | Default |
5353| --------------- | --------------- | ------------------------------------------ | ------- |
54- | colorMode | ` light ` , ` dark ` | The active color mode | ` light ` |
54+ | colorMode | ` light ` , ` dark ` | The active color mode. | ` light ` |
5555| setColorMode | function | Use to set color mode. | - |
5656| toggleColorMode | function | Use to toggle between light and dark mode. | - |
Original file line number Diff line number Diff line change @@ -8,26 +8,26 @@ title: useColorMode
88## Import
99
1010``` jsx
11- import { useColorMode } from ' native-base' ;
11+ import { useColorMode } from " native-base" ;
1212```
1313
1414## Example
1515
1616``` jsx isLive=true
17- import React from ' react' ;
17+ import React from " react" ;
1818import {
1919 NativeBaseProvider ,
2020 VStack ,
2121 useColorMode ,
2222 Text ,
2323 Button ,
2424 Center ,
25- } from ' native-base' ;
25+ } from " native-base" ;
2626
2727function UseColorMode () {
2828 const { colorMode , toggleColorMode } = useColorMode ();
2929 return (
30- < Center flex= {1 } bg= {colorMode === ' dark' ? ' black' : ' white' }>
30+ < Center flex= {1 } bg= {colorMode === " dark" ? " black" : " white" }>
3131 < Text fontSize= " lg" display= " flex" >
3232 The active color mode is < Text bold> {colorMode}< / Text >
3333 < / Text >
@@ -51,6 +51,6 @@ export function Example() {
5151
5252| Name | Type | Description | Default |
5353| --------------- | --------------- | ------------------------------------------ | ------- |
54- | colorMode | ` light ` , ` dark ` | The active color mode | ` light ` |
54+ | colorMode | ` light ` , ` dark ` | The active color mode. | ` light ` |
5555| setColorMode | function | Use to set color mode. | - |
5656| toggleColorMode | function | Use to toggle between light and dark mode. | - |
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ title: useColorMode
88## Import
99
1010``` jsx
11- import { useColorMode } from ' native-base' ;
11+ import { useColorMode } from " native-base" ;
1212```
1313
1414## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121
2222| Name | Type | Description | Default |
2323| --------------- | --------------- | ------------------------------------------ | ------- |
24- | colorMode | ` light ` , ` dark ` | The active color mode | ` light ` |
24+ | colorMode | ` light ` , ` dark ` | The active color mode. | ` light ` |
2525| setColorMode | function | Use to set color mode. | - |
2626| toggleColorMode | function | Use to toggle between light and dark mode. | - |
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ title: useColorMode
88## Import
99
1010``` jsx
11- import { useColorMode } from ' native-base' ;
11+ import { useColorMode } from " native-base" ;
1212```
1313
1414## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121
2222| Name | Type | Description | Default |
2323| --------------- | --------------- | ------------------------------------------ | ------- |
24- | colorMode | ` light ` , ` dark ` | The active color mode | ` light ` |
24+ | colorMode | ` light ` , ` dark ` | The active color mode. | ` light ` |
2525| setColorMode | function | Use to set color mode. | - |
2626| toggleColorMode | function | Use to toggle between light and dark mode. | - |
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ title: useColorMode
88## Import
99
1010``` jsx
11- import { useColorMode } from ' native-base' ;
11+ import { useColorMode } from " native-base" ;
1212```
1313
1414## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121
2222| Name | Type | Description | Default |
2323| --------------- | --------------- | ------------------------------------------ | ------- |
24- | colorMode | ` light ` , ` dark ` | The active color mode | ` light ` |
24+ | colorMode | ` light ` , ` dark ` | The active color mode. | ` light ` |
2525| setColorMode | function | Use to set color mode. | - |
2626| toggleColorMode | function | Use to toggle between light and dark mode. | - |
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ title: useColorMode
88## Import
99
1010``` jsx
11- import { useColorMode } from ' native-base' ;
11+ import { useColorMode } from " native-base" ;
1212```
1313
1414## Example
@@ -21,6 +21,6 @@ import { useColorMode } from 'native-base';
2121
2222| Name | Type | Description | Default |
2323| --------------- | --------------- | ------------------------------------------ | ------- |
24- | colorMode | ` light ` , ` dark ` | The active color mode | ` light ` |
24+ | colorMode | ` light ` , ` dark ` | The active color mode. | ` light ` |
2525| setColorMode | function | Use to set color mode. | - |
2626| toggleColorMode | function | Use to toggle between light and dark mode. | - |
You can’t perform that action at this time.
0 commit comments