ReactNative
blog.kimizuka.orgæè¿ã¯ãExpoãæã¾ãç´æ¥ReactNativeã§ã¢ããªãä½ã£ã¦ããã®ã§ãããçªç¶å®æ©ã«è»¢éã§ããªããªã£ãã®ã§ãä»å¾ã®ããã«ã¡ã¢ãæ®ãã¦ããã¾ãã ç°å¢ MacOS: 14.3.1 ããã: Apple M1 Max Xcode: 15.2 iOS: 17.3.1 ReactNative: 0.73.4 npx â¦
AirPodsã®å転è§ãmyCobotã®å§¿å¢ã¨åæã pic.twitter.com/vNcBK1gYO1â åå¡å²é« (@ki_230) 2024å¹´2æ1æ¥ AirPods â iPhoneã¢ã㪠â Express â python-shell â pymycobot â myCobotã¨ç¹ãã§ãã£ã¦ãAirPodsã®å転è§ã¨myCobotã®å§¿å¢ãåæããã¾ãããéè¦ãâ¦
å æ¥ãAirPodsã®å転è§ãç£è¦ããiOSã¢ããªã®ãããã¿ã¤ããReact Nativeã§ä½ãã¾ãããAirPodsã®å転è§ãç£è¦ãã¦ãæªã姿å¢ãç¶ããéã«æ²é³´ãæµããiOSã¢ããªãã¤ããã¾ãããåä»ãã¦ãè °ã®æ²é³´ãã§ãã pic.twitter.com/ZqwNDjSRH6â åå¡å²é« (@ki_230)â¦
react-native-soundã使ã£ã¦ãiOSã¢ããªã§mp3ãåçãã¦ã¿ã¾ããgithub.comåºæ¬çã«ã¯ãããã¥ã¡ã³ãéãé²ãã¦ããã°OKã§ããgithub.com ã¢ããªã®ä½æ npx react-native@latest init ReactNativeSound react-native-soundã®å°å ¥ yarn add react-native-sounâ¦
æ®æ®µãiOSã¢ããªãéçºããéã¯Expoã使ã£ã¦ããã®ã§ãããExpoã«ã¯æä¾ããã¦ããªãã¢ã¸ã¥ã¼ã«ã使ç¨ãããããExpoãªãã®React Nativeã§å®è£ ããæ©ä¼ãããã¾ãããããããã¨ã¯ã¾ãã©ããããã£ãã®ã§ã»ããã¢ããæé ãã¾ã¨ãã¦ããã¾ãã ãã ãéçºè â¦
reactnative.dev import { StyleSheet, View } from 'react-native'; import { WebView } from 'react-native-webview'; export default function App() { return ( <View style={ styles.container }> <WebView source={{ uri: 'https://expo.dev' }} /> </View> ); } const styles = StyleSheet.create({ container: { flâ¦
blog.kimizuka.orgåå ã¯iOSã¢ããªã®ã¿ä½¿ããæ¹æ³ãæ¤è¨¼ãã¾ããããä»åã¯Androidã¢ããªãã¦ã§ãã¢ããªã«ã対å¿ã§ããæ¹æ³ãæ¤è¨¼ãã¾ããå®ç¾æ¹æ³ããã£ãã調ã¹ãã¨ããã¤ã¦ã¯ AsyncStorage ã使ã£ãæ¹æ³ã主æµã ã£ãããã§ããreactnative.devããããç¾â¦
ãã¨ã®çºç«¯ ãã£ããã¨ãã使ãæ¹ ã¤ã³ãã¼ã å¤ã®åå¾ å¤ã®ä¿å å®è£ ä¾ æ³¨æäºé è¿½è¨ ãã¨ã®çºç«¯ ãã¤ã¦ãSwiftã§iOSã¢ããªãå¶ä½ãã¦ããéãç°¡åãªãã¼ã¿ãæ°¸ç¶åããã¨ã㯠UserDefaults ã使ã£ã¦ãã¾ãããdeveloper.apple.comãã¾ã¯Expoã§iOSã¢ããªãâ¦
ãã¨ã®çºç«¯ Expoã§ä½ã£ãã¢ããªããã©ã¢ã°ã©ã¦ã³ãã«ãªã£ãã¿ã¤ãã³ã°ãããªãã¡iOSã¢ããªã§ããã¨ããã®viewWillEnterForegroundãã©ãæ¸ãã®ããReact Nativeã®ããã¥ã¡ã³ãã§èª¿ã¹ãã¨ããã import { useRef, useState, useEffect } from 'react'; importâ¦