JSON

React NativeÒƶ¯¿ª·¢ÊµÕ½-5-Androidƽ̨µÄµ÷ÊÔ¼¼ÇÉ

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-09-15 14:07 ÎÒÒªÆÀÂÛ( )

Androidƽ̨µÄµ÷ÊÔºÍÆäËûƽ̨µÄµ÷ÊÔÒ²ºÜÀ࣬ÀýÈ磺ÔÚAndroidStudio´ò¿ªµÄ¹¤³ÌÖУ¬´ò¿ªÔ´ÂëMainActivity.java£¬È»ºó£¬½«Êó±êÒÆÖÁ´úÂë±à¼­ÇøµÄ×ó²àºó£¬µ¥»÷Êó±ê¼´

    Androidƽ̨µÄµ÷ÊÔºÍÆäËûƽ̨µÄµ÷ÊÔÒ²ºÜÀà似£¬ÀýÈ磺ÔÚAndroid Studio´ò¿ªµÄ¹¤³ÌÖУ¬´ò¿ªÔ´ÂëMainActivity.java£¬È»ºó£¬½«Êó±êÒÆÖÁ´úÂë±à¼­ÇøµÄ×ó²àºó£¬µ¥»÷Êó±ê¼´¿ÉÌí¼Ó¶Ïµã£¬½Ó×Å£¬Ñ¡Ôñ²Ëµ¥Debug -> Debug ¡®app¡¯£¬¼´¿Éµ÷ÊÔAndroidÓ¦Óã¬Ð§¹ûÈçͼ5.12Ëùʾ¡£

React NativeÒƶ¯¿ª·¢ÊµÕ½-5-Androidƽ̨µÄµ÷ÊÔ¼¼ÇÉ


ͼ5.12  AndroidÔ­ÉúÏîÄ¿¶Ïµãµ÷ÊÔ

    Èç¹ûÒªµ÷ÊÔÔ­ÉúÏîÄ¿µÄʵÏÖºÍÂß¼­£¬¿ÉÒÔʹÓÃÉÏÊö·½·¨£»Èç¹ûÒªµ÷ÊÔAndroidµÄ²¼¾Ö¿ÉÒÔʹÓÃReact NativeµÄµ÷ÊÔÑ¡ÏToggle Inspector¡£

»Î¶¯AndroidÉ豸»òÕßÔÚAndroidÄ£ÄâÆ÷ÉÏʹÓÿì½Ý¼ü£¨command + m£©´ò¿ªµ÷ÊÔÑ¡ÏȻºóÑ¡ÔñToggle InspectorÑ¡Ï´ËʱÓÃÊó±êµ¥»÷ÈÎÒâ×é¼þ£¬¼´¿É²é¿´¸Ã×é¼þµÄ²¼¾ÖÐÅÏ¢£¬Ð§¹ûÈçͼ5.13Ëùʾ¡£

React NativeÒƶ¯¿ª·¢ÊµÕ½-5-Androidƽ̨µÄµ÷ÊÔ¼¼ÇÉ


ͼ5.13  ´ò¿ªToggle Inspectorµ÷ÊÔ²¼¾Ö

Ìáʾ£ºiOS AppÒ²¿ÉÒÔʹÓÃReact NativeµÄÉÏÊö²¼¾Öµ÷ÊÔ·½·¨£¬ÓÐÐËȤµÄ¶ÁÕß¿ÉÒÔ°´ÕÕAndroid AppµÄ½éÉÜ×Ô¼º³¢ÊÔһϡ£

ºÍÎÒÒ»Æðѧ°É£¬¡¶React NativeÒƶ¯¿ª·¢ÊµÕ½¡·

React NativeÒƶ¯¿ª·¢ÊµÕ½-5-Androidƽ̨µÄµ÷ÊÔ¼¼ÇÉ


React NativeÒƶ¯¿ª·¢ÊµÕ½-5-Androidƽ̨µÄµ÷ÊÔ¼¼ÇÉ


¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • ¡¾02¡¿react Ö® jsx

    ¡¾02¡¿react Ö® jsx

    2017-08-16 12:00

  • AndroidʵսÖÐÓëJsonÊý¾Ý¡¢Java

    AndroidʵսÖÐÓëJsonÊý¾Ý¡¢Java

    2017-07-29 14:03

  • ΢ÐÅС³ÌÐòÊÓƵ½Ì³Ì£¨Áã»ù´¡ÊµÕ½Åàѵ£©

    ΢ÐÅС³ÌÐòÊÓƵ½Ì³Ì£¨Áã»ù´¡ÊµÕ½Åàѵ£©

    2017-07-10 13:06

  • ReactϵÁÐѧϰ±Ê¼Ç£º5.PCÓëMACͨÓÃpackage.jsonÅäÖÃ

    ReactϵÁÐѧϰ±Ê¼Ç£º5.PCÓëMACͨÓÃpackage.jsonÅäÖÃ

    2017-07-06 17:01

ÍøÓѵãÆÀ
¹