Skip to content

Commit 285adf1

Browse files
Merge pull request #30 from creativetimofficial/v1.2.0
V1.2.0
2 parents 9ace4a6 + e381db0 commit 285adf1

File tree

8 files changed

+52
-52
lines changed

8 files changed

+52
-52
lines changed

App.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export default class App extends React.Component {
4343
fontLoaded: false
4444
};
4545

46-
async componentDidMount() {
47-
Font.loadAsync({
48-
'montserrat-regular': require('./assets/font/Montserrat-Regular.ttf'),
49-
'montserrat-bold': require('./assets/font/Montserrat-Bold.ttf')
50-
});
46+
// async componentDidMount() {
47+
// Font.loadAsync({
48+
// 'montserrat-regular': require('./assets/font/Montserrat-Regular.ttf'),
49+
// 'montserrat-bold': require('./assets/font/Montserrat-Bold.ttf')
50+
// });
5151

52-
this.setState({ fontLoaded: true });
53-
}
52+
// this.setState({ fontLoaded: true });
53+
// }
5454

5555
render() {
5656
if (!this.state.isLoadingComplete) {
@@ -75,6 +75,12 @@ export default class App extends React.Component {
7575
}
7676

7777
_loadResourcesAsync = async () => {
78+
await Font.loadAsync({
79+
'montserrat-regular': require('./assets/font/Montserrat-Regular.ttf'),
80+
'montserrat-bold': require('./assets/font/Montserrat-Bold.ttf')
81+
});
82+
83+
this.setState({ fontLoaded: true });
7884
return Promise.all([...cacheImages(assetImages)]);
7985
};
8086

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# [Now UI React Native](https://creativetimofficial.github.io/now-ui-react-native/docs/#) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/home?status=now-ui%20React%20Native,%20a%20cool%20NowUI%20React%20Native%20App%20Template%20%E2%9D%A4%EF%B8%8F%20https%3A//bit.ly/2KAj86H%20%23reactnative%20%23NowUI%20%23designsystem%20%23developers%20via%20%40CreativeTim)
22

33

4-
![version](https://img.shields.io/badge/version-1.1.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/now-ui-react-native.svg?style=flat)](https://github.com/creativetimofficial/now-ui-react-native/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/now-ui-react-native.svg?maxAge=2592000)](https://github.com/creativetimofficial/now-ui-react-native/issues?q=is%3Aissue+is%3Aclosed)
4+
![version](https://img.shields.io/badge/version-1.2.0-blue.svg) [![GitHub issues open](https://img.shields.io/github/issues/creativetimofficial/now-ui-react-native.svg?style=flat)](https://github.com/creativetimofficial/now-ui-react-native/issues?q=is%3Aopen+is%3Aissue) [![GitHub issues closed](https://img.shields.io/github/issues-closed-raw/creativetimofficial/now-ui-react-native.svg?maxAge=2592000)](https://github.com/creativetimofficial/now-ui-react-native/issues?q=is%3Aissue+is%3Aclosed)
55

66

77
![Product Gif](https://raw.githubusercontent.com/creativetimofficial/public-assets/master/now-ui-react-native/opt_nurn_thumbnail.jpg)

app.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
"name": "Now UI React Native",
44
"slug": "now-ui-react-native",
55
"privacy": "public",
6-
"sdkVersion": "36.0.0",
7-
"platforms": ["ios", "android"],
8-
"version": "1.1.0",
6+
"sdkVersion": "37.0.0",
7+
"platforms": [
8+
"ios",
9+
"android"
10+
],
11+
"version": "1.2.0",
912
"orientation": "portrait",
1013
"icon": "./assets/icon.png",
1114
"splash": {
@@ -16,12 +19,17 @@
1619
"updates": {
1720
"fallbackToCacheTimeout": 0
1821
},
19-
"assetBundlePatterns": ["**/*"],
22+
"assetBundlePatterns": [
23+
"**/*"
24+
],
2025
"ios": {
2126
"supportsTablet": true
2227
},
2328
"packagerOpts": {
24-
"assetExts": ["ttf"]
25-
}
29+
"assetExts": [
30+
"ttf"
31+
]
32+
},
33+
"description": "Now UI React Native, based on Now UI Design System. Coded by Creative Tim"
2634
}
2735
}

components/Header.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const iPhoneX = () =>
1515
const BellButton = ({ isWhite, style, navigation }) => (
1616
<TouchableOpacity
1717
style={[styles.button, style]}
18-
onPress={() => navigation.navigate('Notifications')}
18+
onPress={() => navigation.navigate('Pro')}
1919
>
2020
<Icon
2121
family="NowExtra"
@@ -28,7 +28,7 @@ const BellButton = ({ isWhite, style, navigation }) => (
2828
);
2929

3030
const BasketButton = ({ isWhite, style, navigation }) => (
31-
<TouchableOpacity style={[styles.button, style]} onPress={() => navigation.navigate('Cart')}>
31+
<TouchableOpacity style={[styles.button, style]} onPress={() => navigation.navigate('Pro')}>
3232
<Icon
3333
family="NowExtra"
3434
size={16}
@@ -115,7 +115,7 @@ class Header extends React.Component {
115115
style={styles.search}
116116
placeholder="What are you looking for?"
117117
placeholderTextColor={'#8898AA'}
118-
onFocus={() => navigation.navigate('Search')}
118+
onFocus={() => navigation.navigate('Pro')}
119119
iconContent={
120120
<Icon size={16} color={theme.COLORS.MUTED} name="zoom-bold2x" family="NowExtra" />
121121
}

components/Icon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as Font from 'expo-font';
33
import { createIconSetFromIcoMoon } from '@expo/vector-icons';
44
import { Icon } from 'galio-framework';
55

6-
import nowConfig from '../assets/font/now.json';
6+
import nowConfig from '../assets/config/now.json';
77
const NowExtra = require('../assets/font/now.ttf');
88
const IconNowExtra = createIconSetFromIcoMoon(nowConfig, 'NowExtra');
99

navigation/Screens.js

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,10 @@ const Drawer = createDrawerNavigator();
2626

2727
function ComponentsStack(props) {
2828
return (
29-
<Stack.Navigator>
29+
<Stack.Navigator initialRouteName="Components" mode="card" headerMode="screen">
3030
<Stack.Screen name="Components" component={Components} options={{
31-
navigationOptions:({ navigation, scene }) => ({
32-
header: <Header title="Components" navigation={navigation} scene={scene} />
33-
}),
34-
backgroundColor: "#FFFFFF"
35-
}}/>
36-
</Stack.Navigator>
37-
);
38-
}
39-
40-
function SettingsStack(props) {
41-
return (
42-
<Stack.Navigator initialRouteName="Settings" mode="card" headerMode="screen">
43-
<Stackk.Screen name="Settings" component={SettingsScreen} options={{
44-
header: ({ navigation, scene }) => (<Header title="Settings" navigation={navigation} scene={scene}/>),
45-
backgroundcolor: '#FFFFFF'
31+
header:({ navigation, scene }) => (<Header title="Components" navigation={navigation} scene={scene} />),
32+
backgroundColor: "#FFFFFF"
4633
}}/>
4734
</Stack.Navigator>
4835
);
@@ -198,7 +185,6 @@ function AppStack(props) {
198185
<Drawer.Screen name="Articles" component={ArticlesStack} />
199186
<Drawer.Screen name="Profile" component={ProfileStack} />
200187
<Drawer.Screen name="Account" component={AccountStack} />
201-
<Drawer.Screen name="Settings" component={AccountStack} />
202188
</Drawer.Navigator>
203189
);
204190
}

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "now-ui-react-native",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "Now UI React Native, based on Now UI Design System. Coded by Creative Tim",
55
"main": "node_modules/expo/AppEntry.js",
66
"scripts": {
@@ -15,29 +15,29 @@
1515
"url": "git+https://github.com/creativetimofficial/now-ui-react-native.git"
1616
},
1717
"dependencies": {
18-
"@react-native-community/masked-view": "0.1.5",
19-
"@react-navigation/bottom-tabs": "^5.0.6",
20-
"@react-navigation/compat": "^5.0.0",
21-
"@react-navigation/drawer": "5.0.0",
22-
"@react-navigation/native": "5.0.0",
23-
"@react-navigation/stack": "5.0.0",
24-
"expo": "^36.0.0",
25-
"expo-asset": "~8.0.0",
26-
"expo-font": "~8.0.0",
18+
"@react-native-community/masked-view": "0.1.6",
19+
"@react-navigation/bottom-tabs": "^5.5.1",
20+
"@react-navigation/compat": "^5.1.25",
21+
"@react-navigation/drawer": "5.8.1",
22+
"@react-navigation/native": "5.5.0",
23+
"@react-navigation/stack": "5.4.1",
24+
"expo": "^37.0.0",
25+
"expo-asset": "~8.1.5",
26+
"expo-font": "~8.1.0",
2727
"galio-framework": "^0.6.3",
2828
"prop-types": "^15.7.2",
2929
"react": "16.9.0",
30-
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz",
31-
"react-native-gesture-handler": "~1.5.0",
30+
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
31+
"react-native-gesture-handler": "~1.6.0",
3232
"react-native-modal-dropdown": "^0.7.0",
33-
"react-native-reanimated": "~1.4.0",
34-
"react-native-svg": "^9.9.5",
35-
"react-native-safe-area-context": "0.6.0",
36-
"react-native-screens": "2.0.0-alpha.12"
33+
"react-native-reanimated": "~1.7.0",
34+
"react-native-svg": "11.0.1",
35+
"react-native-safe-area-context": "0.7.3",
36+
"react-native-screens": "~2.2.0"
3737
},
3838
"devDependencies": {
3939
"babel-eslint": "^10.0.3",
40-
"babel-preset-expo": "^7.1.0"
40+
"babel-preset-expo": "^8.2.1"
4141
},
4242
"keywords": [
4343
"now react native",

0 commit comments

Comments
 (0)