Skip to content

Commit 34484e0

Browse files
authored
pnpm 11.7.0 と Expo SDK 56 へ更新 (#3)
1 parent ee1f04e commit 34484e0

54 files changed

Lines changed: 3511 additions & 4425 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

eslint.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
const { defineConfig, globalIgnores } = require("eslint/config");
22
const universeNodeConfig = require("eslint-config-universe/flat/node");
33
const universeNativeConfig = require("eslint-config-universe/flat/native");
4-
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
54

6-
module.exports = defineConfig([
7-
universeNodeConfig,
8-
universeNativeConfig,
9-
eslintPluginPrettierRecommended,
10-
globalIgnores(["**/build"]),
11-
]);
5+
module.exports = defineConfig([universeNodeConfig, universeNativeConfig, globalIgnores(["**/build"])]);

example/App.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React, { useState } from "react";
2+
import * as SplashScreen from "expo-splash-screen";
23
import * as Downloads from "expo-downloads";
3-
import { Button, SafeAreaView, ScrollView, Text, View, StyleSheet } from "react-native";
4+
import { Button, Platform, ScrollView, StatusBar, Text, View, StyleSheet } from "react-native";
5+
6+
void SplashScreen.hideAsync();
47

58
export default function App() {
69
const [result, setResult] = useState<{
@@ -68,7 +71,7 @@ export default function App() {
6871
};
6972

7073
return (
71-
<SafeAreaView style={styles.container}>
74+
<View style={styles.container}>
7275
<ScrollView contentContainerStyle={styles.content}>
7376
<Text style={styles.header}>Downloads Module Sample</Text>
7477
<View style={styles.buttons}>
@@ -90,14 +93,15 @@ export default function App() {
9093
</View>
9194
)}
9295
</ScrollView>
93-
</SafeAreaView>
96+
</View>
9497
);
9598
}
9699

97100
const styles = StyleSheet.create({
98101
container: {
99102
flex: 1,
100103
backgroundColor: "#fff",
104+
paddingTop: Platform.OS === "ios" ? 72 : (StatusBar.currentHeight ?? 0),
101105
},
102106
content: {
103107
padding: 20,

example/android/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ local.properties
1212
*.hprof
1313
.cxx/
1414

15+
# generated inline modules
16+
app/src/main/java/inline/
17+
1518
# Bundle artifacts
1619
*.jsbundle

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</queries>
1414
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true" android:enableOnBackInvokedCallback="false">
1515
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
16+
<meta-data android:name="expo.modules.updates.ENABLE_BSDIFF_PATCH_SUPPORT" android:value="true"/>
1617
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
1718
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
1819
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode|smallestScreenSize" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">

example/android/app/src/main/java/jp/co/pocketsign/expo/downloads/example/MainActivity.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package jp.co.pocketsign.expo.downloads.example
2+
import expo.modules.splashscreen.SplashScreenManager
23

34
import android.os.Build
45
import android.os.Bundle
@@ -15,7 +16,10 @@ class MainActivity : ReactActivity() {
1516
// Set the theme to AppTheme BEFORE onCreate to support
1617
// coloring the background, status bar, and navigation bar.
1718
// This is required for expo-splash-screen.
18-
setTheme(R.style.AppTheme);
19+
// setTheme(R.style.AppTheme);
20+
// @generated begin expo-splashscreen - expo prebuild (DO NOT MODIFY) sync-f3ff59a738c56c9a6119210cb55f0b613eb8b6af
21+
SplashScreenManager.registerOnActivity(this)
22+
// @generated end expo-splashscreen
1923
super.onCreate(null)
2024
}
2125

-8.51 KB
Loading
-5.89 KB
Loading
-11.9 KB
Loading
-18.5 KB
Loading

0 commit comments

Comments
 (0)