Skip to content

Commit 736e0f2

Browse files
committed
49.0.6
Updated expo 49
1 parent 11f50d6 commit 736e0f2

13 files changed

+10772
-10372
lines changed

.gitignore

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
14
node_modules/
5+
6+
# Expo
27
.expo/
3-
.vscode/
48
dist/
5-
npm-debug.*
9+
web-build/
10+
11+
# Native
12+
*.orig.*
613
*.jks
714
*.p8
815
*.p12
916
*.key
1017
*.mobileprovision
11-
*.orig.*
12-
web-build/
18+
19+
# Metro
20+
.metro-health-check*
21+
22+
# debug
23+
npm-debug.*
24+
yarn-debug.*
25+
yarn-error.*
1326

1427
# macOS
1528
.DS_Store
29+
*.pem
30+
31+
# local env files
32+
.env*.local
33+
34+
# typescript
35+
*.tsbuildinfo

App.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
/// <reference types="nativewind/types" />
2-
import { StatusBar } from 'expo-status-bar';
3-
import { Text, View } from 'react-native';
1+
import React from 'react';
2+
import { SafeAreaView, Text } from 'react-native';
3+
import { styled } from 'nativewind';
44

5-
export default function App() {
6-
7-
return (
8-
<View className="flex-1 items-center justify-center bg-white">
9-
<Text>Open up App.js to start working on your app!</Text>
10-
<StatusBar style="auto" />
11-
</View>
12-
);
5+
const StyledSafeArea = styled(SafeAreaView);
6+
const StyledText = styled(Text);
137

14-
}
8+
export default function App() {
9+
return (
10+
<StyledSafeArea className='flex bg-white items-center justify-center'>
11+
<StyledText className='text-black text-center text-lg p-4'>React Native Expo in TypeScript with Tailwind CSS</StyledText>
12+
</StyledSafeArea>
13+
);
14+
}

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
<br />
42
<div align="center">
53
<br />
@@ -17,57 +15,68 @@
1715
</p>
1816
</div>
1917

20-
21-
2218
[![Contributors][contributors-shield]][contributors-url]
2319
[![Forks][forks-shield]][forks-url]
2420
[![Stargazers][stars-shield]][stars-url]
2521
[![Issues][issues-shield]][issues-url]
2622
[![MIT License][license-shield]][license-url]
2723

28-
2924
<!-- GETTING STARTED -->
25+
3026
## Getting Started
3127

3228
This is the instructions on setting up your project locally.
3329
To get a local copy up and running follow these simple example steps.
3430

3531
### Installation
3632

37-
1. Install Expo CLI Global
33+
1. Install Expo CLI Global
3834
```sh
3935
npm install -g expo-cli
4036
```
4137
2. Clone the repo
4238
```sh
4339
git clone https://github.com/mashwishi/React-Native-Expo-with-TailwindCSS.git
4440
```
45-
3. Install NPM packages
41+
3. Install NPM packages
4642
```sh
4743
yarn install
4844
```
49-
4. Run on your terminal to test
45+
4. Run on your Development Environment
46+
- Windows with iPhone App (Expo Go) run
5047
```sh
51-
npx expo start
48+
npx expo start --tunnel
5249
```
50+
- Windows/Mac with Android run
51+
```sh
52+
npx expo start --android
53+
```
54+
- Windows/Mac with Browser run
55+
```sh
56+
npx expo start --web
57+
```
58+
- Mac with iPhone run
59+
```sh
60+
npx expo start --ios
61+
```
62+
Tailwind (Nativewind Docs): https://www.nativewind.dev
5363

5464
### Built With
5565

56-
This section list of major things that we used to this project.
57-
58-
* [![React Native][ReactNative]][ReactNative-url]
59-
* [![NativeWind][NativeWind]][NativeWind-url]
60-
* [![Tailwind][Tailwind]][Tailwind-url]
61-
* [![Expo][Expo]][Expo-url]
62-
* [![Typescript][Typescript]][Typescript-url]
63-
* [![Javascript][Javascript]][Javascript-url]
64-
* [![Yarn][Yarn]][Yarn-url]
66+
This section list of major things that we used to this project.
6567

68+
- [![React Native][ReactNative]][ReactNative-url]
69+
- [![NativeWind][NativeWind]][NativeWind-url]
70+
- [![Tailwind][Tailwind]][Tailwind-url]
71+
- [![Expo][Expo]][Expo-url]
72+
- [![Typescript][Typescript]][Typescript-url]
73+
- [![Javascript][Javascript]][Javascript-url]
74+
- [![Yarn][Yarn]][Yarn-url]
6675

6776
See the [open issues](https://github.com/mashwishi/kohee/issues) for a full list of proposed features (and known issues).
6877

69-
7078
<!-- CONTRIBUTING -->
79+
7180
## Contributing
7281

7382
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
@@ -83,6 +92,7 @@ Don't forget to give the project a star! Thanks again!
8392

8493
<!-- MARKDOWN LINKS & IMAGES -->
8594
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
95+
8696
[contributors-shield]: https://img.shields.io/github/contributors/mashwishi/React-Native-Expo-with-TailwindCSS.svg?style=for-the-badge
8797
[contributors-url]: https://github.com/mashwishi/React-Native-Expo-with-TailwindCSS/graphs/contributors
8898
[forks-shield]: https://img.shields.io/github/forks/mashwishi/React-Native-Expo-with-TailwindCSS.svg?style=for-the-badge
@@ -93,27 +103,17 @@ Don't forget to give the project a star! Thanks again!
93103
[issues-url]: https://github.com/mashwishi/React-Native-Expo-with-TailwindCSS/issues
94104
[license-shield]: https://img.shields.io/github/license/mashwishi/React-Native-Expo-with-TailwindCSS.svg?style=for-the-badge
95105
[license-url]: https://github.com/mashwishi/React-Native-Expo-with-TailwindCSS/blob/main/LICENSE
96-
97106
[ReactNative]: https://img.shields.io/badge/React_Native-20232A?style=for-the-badge&logo=react&logoColor=61DAFB
98107
[ReactNative-url]: https://reactnative.dev/
99-
100108
[NativeWind]: https://img.shields.io/badge/NativeWind-20232A?style=for-the-badge&logo=react&logoColor=61DAFB
101109
[NativeWind-url]: https://www.nativewind.dev/quick-starts/expo
102-
103110
[Tailwind]: https://img.shields.io/badge/Tailwind-0EA5E9?style=for-the-badge&logo=TailwindCSS&logoColor=white
104111
[Tailwind-url]: https://tailwindcss.com/
105-
106112
[Expo]: https://img.shields.io/badge/Expo-FFFFFF?style=for-the-badge&logo=Expo&logoColor=01001F
107113
[Expo-url]: https://expo.io/
108-
109114
[Typescript]: https://img.shields.io/badge/Typescript-3178C6?style=for-the-badge&logo=Typescript&logoColor=FFFFFF
110115
[Typescript-url]: https://www.typescriptlang.org/
111-
112116
[Javascript]: https://img.shields.io/badge/Javascript-EAD51C?style=for-the-badge&logo=Javascript&logoColor=01001F
113117
[Javascript-url]: https://youtu.be/dQw4w9WgXcQ
114-
115118
[Yarn]: https://img.shields.io/badge/Yarn-2C8EBB?style=for-the-badge&logo=Yarn&logoColor=FFFFFF
116119
[Yarn-url]: https://classic.yarnpkg.com/lang/en/docs/install/
117-
118-
119-

app.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"expo": {
3-
"name": "react-native-ts-app",
4-
"slug": "react-native-ts-app",
3+
"name": "react-native-expo-with-tailwindcss",
4+
"slug": "react-native-expo-with-tailwindcss",
55
"version": "1.0.0",
66
"orientation": "portrait",
77
"icon": "./assets/icon.png",
@@ -11,9 +11,6 @@
1111
"resizeMode": "contain",
1212
"backgroundColor": "#ffffff"
1313
},
14-
"updates": {
15-
"fallbackToCacheTimeout": 0
16-
},
1714
"assetBundlePatterns": [
1815
"**/*"
1916
],
@@ -23,7 +20,7 @@
2320
"android": {
2421
"adaptiveIcon": {
2522
"foregroundImage": "./assets/adaptive-icon.png",
26-
"backgroundColor": "#FFFFFF"
23+
"backgroundColor": "#ffffff"
2724
}
2825
},
2926
"web": {

babel.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
module.exports = function(api) {
2-
api.cache(true);
3-
return {
4-
presets: ['babel-preset-expo'],
5-
plugins: ["nativewind/babel"],
6-
};
1+
module.exports = function (api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
plugins: ['nativewind/babel'],
6+
};
77
};

global.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

metro.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// metro.confgi.js
2+
const { getDefaultConfig } = require('expo/metro-config');
3+
4+
const config = getDefaultConfig(__dirname, {
5+
isCSSEnabled: true,
6+
});
7+
8+
module.exports = config;

0 commit comments

Comments
 (0)