Android Error android.os.NetworkOnMainThreadException

QuestionRequest http in Android, the code is as follows, but there is an exception android.os.Networ...
Apr 20, 2020 Android Comments 0

Convert between JSON String and NSDictionary/NSArray

In iOS, the NSJSONSerialization class of Objective C is used to convert between JSON strings and obj...
Apr 17, 2020 Objective C Comments 0

Convert between NSString and NSData

With Objective C in iOS, we can convert the value of NSString to NSData.NSString* str = @"Hello Worl...
Apr 16, 2020 Objective C Comments 0

React Native init specific version

Use the react-native init project_name command to initialize a React Native project. By default, the...
Apr 12, 2020 React Native Comments 0

React Native: No visible @interface for 'MyModule' declares the selector 'sendEventWithName:body:'

QuestionIn the iOS project, I use Objective C to customize a native module, and use sendEventWithNam...
Apr 10, 2020 React Native Comments 0

Objective C Error 'RCTLinkingManager.h' file not found

QuestionUpgrade React Native to 0.61.5 and import header files on iOS.#import "RCTLinkingManager.h"X...
Apr 08, 2020 React Native Comments 0

[iOS] When scheme is Release, Undefined symbol: _RCTSetLogFunction

QuestionUpgrade React Native 0.60 to 0.61. When Scheme is set to Debug, it runs without problems. An...
Apr 01, 2020 Objective C Comments 0

POST request using application/x-www-form-urlencoded with Objective C

Using Objective C to post request withapplication/x-www-form-urlencodedbody. The data will be encode...
Mar 28, 2020 Objective C Comments 0

React Native Error: must be used from main thread only

QuestionIn iOS, I use Objective C to create my own native module.RCT_EXPORT_METHOD(startPay:(NSStrin...
Mar 26, 2020 Objective C Comments 0

Git error fatal: No such remote 'origin'

QuestionOn my computer, I run some commands to create git repository. $ mkdir test$ cd test$ git ini...
Mar 24, 2020 Git Comments 0