Skip to content

Commit ad1d16a

Browse files
committed
satisfy Prettier
1 parent 648b9cd commit ad1d16a

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

demo-react/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
"template"
3939
],
4040
"dependencies": {
41-
"@nativescript/core": "8.0.0-alpha.8",
4241
"@nativescript-community/ui-material-activityindicator": "file:../packages/activityindicator",
43-
"@nativescript-community/ui-material-bottomsheet": "file:../packages/bottomsheet",
42+
"@nativescript-community/ui-material-bottom-navigation": "file:../packages/bottom-navigation",
4443
"@nativescript-community/ui-material-bottomnavigationbar": "file:../packages/bottomnavigationbar",
44+
"@nativescript-community/ui-material-bottomsheet": "file:../packages/bottomsheet",
4545
"@nativescript-community/ui-material-button": "file:../packages/button",
4646
"@nativescript-community/ui-material-cardview": "file:../packages/cardview",
4747
"@nativescript-community/ui-material-core": "file:../packages/core",
@@ -51,8 +51,10 @@
5151
"@nativescript-community/ui-material-ripple": "file:../packages/ripple",
5252
"@nativescript-community/ui-material-slider": "file:../packages/slider",
5353
"@nativescript-community/ui-material-snackbar": "file:../packages/snackbar",
54+
"@nativescript-community/ui-material-tabs": "file:../packages/tabs",
5455
"@nativescript-community/ui-material-textfield": "file:../packages/textfield",
5556
"@nativescript-community/ui-material-textview": "file:../packages/textview",
57+
"@nativescript/core": "8.0.0-alpha.8",
5658
"@nativescript/theme": "3.0.0",
5759
"nativescript-ui-listview": "9.1.0",
5860
"react": "~16.13.1",

demo-react/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ purpose of the file is to pass control to the app’s first module.
1010
*/
1111

1212
import * as ReactNativeScript from 'react-nativescript';
13-
import { mainStackNavigator as AppContainer } from './components/Navigator';
13+
import { ExampleTabs as AppContainer } from './components/HomeScreen';
1414
import { registerTabs } from '@nativescript-community/ui-material-tabs/react';
1515

1616
registerTabs();

demo-react/src/components/HomeScreen.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import * as React from 'react';
22
import { StyleSheet } from 'react-nativescript';
33

4-
export function ExampleTabs(){
4+
export function ExampleTabs() {
55
return (
66
<tabs selectedIndex={1}>
77
{/* The bottomTab UI is created via tabStrip (the container) and tabStripItem (for each tab) */}
88
<tabStrip>
99
<tabStripItem>
1010
<label>Home</label>
11-
<image src="font://&#xf015;" className="fas"/>
11+
<image src="font://&#xf015;" className="fas" />
1212
</tabStripItem>
1313
<tabStripItem className="special">
1414
<label>Account</label>
15-
<image src="font://&#xf007;" className="fas"/>
15+
<image src="font://&#xf007;" className="fas" />
1616
</tabStripItem>
1717
<tabStripItem className="special">
1818
<label>Search</label>
19-
<image src="font://&#xf00e;" className="fas"/>
19+
<image src="font://&#xf00e;" className="fas" />
2020
</tabStripItem>
2121
</tabStrip>
2222

@@ -42,17 +42,17 @@ export function ExampleTabs(){
4242

4343
const styles = StyleSheet.create({
4444
container: {
45-
height: "100%",
46-
flexDirection: "column",
47-
justifyContent: "center",
45+
height: '100%',
46+
flexDirection: 'column',
47+
justifyContent: 'center'
4848
},
4949
text: {
50-
textAlignment: "center",
50+
textAlignment: 'center',
5151
fontSize: 24,
52-
color: "black",
52+
color: 'black'
5353
},
5454
button: {
5555
fontSize: 24,
56-
color: "#2e6ddf",
57-
},
58-
});
56+
color: '#2e6ddf'
57+
}
58+
});

0 commit comments

Comments
 (0)