GithubCopilotリファクタリング2
This commit is contained in:
parent
3ac0edd3ad
commit
8a1b8c94f3
@ -21,7 +21,6 @@ export const LandscapeTrainInfo = (props) => {
|
||||
width: width / 2,
|
||||
}}
|
||||
>
|
||||
<Text>{width / 2}</Text>
|
||||
{leftContent}
|
||||
</View>
|
||||
<ScrollView
|
||||
|
@ -36,7 +36,7 @@ export const StationDeteilView = (props) => {
|
||||
setTrainBus();
|
||||
}
|
||||
setTrainBus(data[0]);
|
||||
}, [currentStation]);
|
||||
}, [currentStation, busAndTrainData]);
|
||||
|
||||
const [usePDFView, setUsePDFView] = useState(undefined);
|
||||
useEffect(() => {
|
||||
|
@ -14,9 +14,7 @@ import { createStackNavigator } from "@react-navigation/stack";
|
||||
import { TransitionPresets } from "@react-navigation/stack";
|
||||
//import * as ExpoFelicaReader from "../../modules/expo-felica-reader/src";
|
||||
import * as Updates from "expo-updates";
|
||||
import StatusbarDetect from "../../StatusbarDetect";
|
||||
import { AS } from "../../storageControl";
|
||||
var Status = StatusbarDetect();
|
||||
import { Switch } from "react-native-elements";
|
||||
import AutoHeightImage from "react-native-auto-height-image";
|
||||
import { SettingTopPage } from "./SettingTopPage";
|
||||
|
@ -29,7 +29,9 @@ export default function TrainBase({ route }) {
|
||||
"https://train.jr-shikoku.co.jp",
|
||||
"https://train.jr-shikoku.co.jp/sp.html",
|
||||
]}
|
||||
onMessage={(event) => {}}
|
||||
onMessage={() => {
|
||||
// 必要に応じてメッセージ処理を実装
|
||||
}}
|
||||
mixedContentMode={"compatibility"}
|
||||
javaScriptEnabled
|
||||
injectedJavaScript={jss}
|
||||
|
@ -119,8 +119,10 @@ setInterval(() => {
|
||||
javaScriptEnabled={true}
|
||||
injectedJavaScript={jsa}
|
||||
pullToRefreshEnabled
|
||||
onError={() => this.webView?.reload()}
|
||||
onMessage={()=>{}}
|
||||
onError={() => webview.current?.reload()}
|
||||
onMessage={() => {
|
||||
// 必要に応じてメッセージ処理を実装
|
||||
}}
|
||||
/>
|
||||
<ReloadButton
|
||||
onPress={() => webview.current.reload()}
|
||||
|
@ -117,12 +117,10 @@ export const NotificationProvider: FC<Props> = ({ children }) => {
|
||||
notificationListener.current =
|
||||
Notifications.addNotificationReceivedListener((notification) => {
|
||||
setNotification(notification);
|
||||
});
|
||||
|
||||
responseListener.current =
|
||||
Notifications.addNotificationResponseReceivedListener((response) => {
|
||||
console.log(response);
|
||||
});
|
||||
}); responseListener.current =
|
||||
Notifications.addNotificationResponseReceivedListener((response) => {
|
||||
// 通知レスポンスの処理
|
||||
});
|
||||
|
||||
return () => {
|
||||
notificationListener.current &&
|
||||
|
Loading…
Reference in New Issue
Block a user