Skip to content

Commit 312c485

Browse files
committed
49.0.3
1 parent 736e0f2 commit 312c485

12 files changed

+1339
-14543
lines changed

.gitignore

+4-24
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,15 @@
1-
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2-
3-
# dependencies
41
node_modules/
5-
6-
# Expo
72
.expo/
3+
.vscode/
84
dist/
9-
web-build/
10-
11-
# Native
12-
*.orig.*
5+
npm-debug.*
136
*.jks
147
*.p8
158
*.p12
169
*.key
1710
*.mobileprovision
18-
19-
# Metro
20-
.metro-health-check*
21-
22-
# debug
23-
npm-debug.*
24-
yarn-debug.*
25-
yarn-error.*
11+
*.orig.*
12+
web-build/
2613

2714
# macOS
2815
.DS_Store
29-
*.pem
30-
31-
# local env files
32-
.env*.local
33-
34-
# typescript
35-
*.tsbuildinfo

App.tsx

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import React from 'react';
2-
import { SafeAreaView, Text } from 'react-native';
3-
import { styled } from 'nativewind';
4-
5-
const StyledSafeArea = styled(SafeAreaView);
6-
const StyledText = styled(Text);
1+
/// <reference types="nativewind/types" />
2+
import { StatusBar } from 'expo-status-bar';
3+
import { Text, View } from 'react-native';
74

85
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-
}
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+
);
13+
14+
}

app.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"expo": {
3-
"name": "react-native-expo-with-tailwindcss",
4-
"slug": "react-native-expo-with-tailwindcss",
3+
"name": "react-native-ts-app",
4+
"slug": "react-native-ts-app",
55
"version": "1.0.0",
66
"orientation": "portrait",
77
"icon": "./assets/icon.png",
@@ -11,6 +11,9 @@
1111
"resizeMode": "contain",
1212
"backgroundColor": "#ffffff"
1313
},
14+
"updates": {
15+
"fallbackToCacheTimeout": 0
16+
},
1417
"assetBundlePatterns": [
1518
"**/*"
1619
],
@@ -20,7 +23,7 @@
2023
"android": {
2124
"adaptiveIcon": {
2225
"foregroundImage": "./assets/adaptive-icon.png",
23-
"backgroundColor": "#ffffff"
26+
"backgroundColor": "#FFFFFF"
2427
}
2528
},
2629
"web": {

babel.config.js

+6-6
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

-3
This file was deleted.

metro.config.js

-8
This file was deleted.

0 commit comments

Comments
 (0)