React Nativeã®æ½è±¡åãã¬ã¼ã ã¯ã¼ã¯ãExpoã®v33ãå æ¥ãªãªã¼ã¹ããã¾ããã
ä»åã®ç®çã®ä¸ã¤ã¯ãä½ã¨è¨ã£ã¦ã Expo for Web ã§ããReact Native for Webãåãè¾¼ãã ãã¨ã§ãExpoã§ä½ã£ãã¢ããªããã»ã©ãã¤ãã£ããªæ©è½ã使ã£ã¦ãªãéãããã©ã¦ã¶ã§ãåããããããããªãæãã«ãªã£ã¦ãã¾ããã
ã©ããã¦æ¯åããæªãã®ãã¨ããã¨ãå½ç¶Expoã«ã¯ãã©ã¦ã¶ã§ã®åç¾ãå°é£ãªæ©è½ãå¤ãå«ã¾ãã¦ããããã§ããReact Native for Webã®ãµã³ãã«éã«ãããããªæ©è½ã§ããã°é«ç¢ºçã§åãã®ã§ãå®å
¨ãªç¯å²ã§å°å
¥ãããæ¹ã¯ expo
ããã±ã¼ã¸ã®æ©è½ã«æãåºããªãããã«ãã¦ããã°ãããªãã®é¨åã¯åãã¯ãã§ãã
å®å
¨ã§ãªãç¯å²ã§å°å
¥ãããæ¹ã¸ã®æå ±ã¨ãã¦ã¯ãsdk-33ãã©ã³ãï¼å·çæç¹ã§f5f35c30ï¼ãè¦ã¦ããã ããã¨ãããã®ã§ããã次ã®ãããªã¢ã¸ã¥ã¼ã«ã®Webçï¼.web.ts/tsx
ï¼ãå®è£
ããã¦ãã¾ãã
import { Video, Audio } from 'expo-av';
import { GLView } from 'expo-gl';
import { SQLite } from 'expo-sqlite';
import { Camera } from 'expo-camera';
import { Accelerometer, Gyroscope } from 'expo-sensors';
ã©ããã¤ã³ãã¯ãããããã¤ã§ãããã ãããEvan Baconã®ä»æ¥ã§ããä½ãªãã ãã®æ ç±ã¯ã©ãããæ¥ããã ã
ã¡ããã¨å®è£ ãè¦ã¦ã¿ãã¨ããããªã«éæ³ã¯ä½¿ã£ã¦ããªããã¿ã¼ã³ãå¤ããæ®éã« æè¿ã®Web APIã£ã¦ããã¼ãª ãã¨ããæãã«ãªãã¾ãã
éæ³æ ã¨ãã¦ã¯ãå®ã¯featureãã©ã³ãã§ãããã©ã¦ã¶ä¸ã§BarcodeScannerãåããã³ã¼ããEvan Baconã®æã«ãã£ã¦å®é¨ããã¦ãã¾ã*1ãä½ãªãã ãã®æ ç±ã¯ã©ãããæ¥ããã ã
ãããªæãã§ãåã«React Native for Webãåãè¾¼ãã ã ãã§ã¯ãªããå¾æ¥ãããã£ãã¢ã¸ã¥ã¼ã«ã«é¢ãã¦ãï¼Evan Baconãã»ã¼ä¸äººã§é»ã ã¨ä½æ¥ãã¦ï¼Webçãã©ãã©ãå®è£ ããã¦ãã¾ããæ£ç´ãå½¼ã®æ ç±ãå°½ããæç¹ã§ã¡ã³ããã³ã¹ãããªããªãææãããã®ã§ãããã¾ãã¾ã 使ããã¨æããªãã®ã§ãããæããã¯äººæ±ã«ãªããã¨ããå¥ç¹ãªæ¹ãããã£ãããã°ããã²ãé¡ããã¾ãã
æ¬å½ã¯ãããã¯ã·ã§ã³ãã«ããããã«ãæ¸ã¿ãã©ã«ãã®è©±ããããã£ãã®ã§ãããé·ããªã£ã¦ããã®ã§æ¬¡åã«ãã¾ãã
*1:ã¾ãjsQR使ã£ã¦ãã ãã¨ããã°ã ãã§ãã