ReactNative problem collection react native problem

When building the project, that is, when entering react-native run-Android, failed to find Build Tools revision 23.0.1 appears.

Reason: The android SDK is not updated and installed completely.

Workaround: Set up the SDK, install the update.
Open the Android SDK Manager. Check the following items:
          Android SDK Build-tools version 23.0.1
          Android 6.0 (API 23)
          Android Support Repository
          Local Maven repository for Support Libraries

Pictures can't be loaded?

var localImg = "./images/demo/newsImg2.png";
require( localImg );
Example 2:

require( "./images/demo/newsImg2.png");
The first case cannot be loaded.

Reason: In order for the new image resource mechanism to work properly, the image name in require must be a static string, which is a React requirement.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326116200&siteId=291194637
Recommended