Config “januslo / react-native-bluetooth-escpos-printer” in React-Native

Copy from:  https://github.com/januslo/react-native-bluetooth-escpos-printer https://github.com/januslo/react-native-bluetooth-escpos-printer/pull/76/files We will get error message when we config on ios as bellow [!] use_native_modules! skipped the react-native dependency ‘react-native-bluetooth-escpos-printer’. No podspec file was found. Go to node_modules -> react-native-bluetooth-escpos-printer and create new file is called “RNBluetoothEscposPrinter.podspec” ————————————————————————– require “json” package = JSON.parse(File.read(File.join(__dir__, “package.json”))) Pod::Spec.new do |s| s.name = “RNBluetoothEscposPrinter” s.version =Continue reading “Config “januslo / react-native-bluetooth-escpos-printer” in React-Native”

Creating custom icon set

By: reactnative.guide react-native-vector-icons supports using custom icon sets if you do not want to use the icons which come bundled with it or if you want to add your own icons. It supports Fontello and IcoMoon to create custom fonts. We used IcoMoon to convert our SVGs to a config which is readable by the library.Continue reading “Creating custom icon set”

Compile-time Error: control may reach end of non-void function with Xcode 10.2

Copy from: https://github.com/realm/realm-js/issues/2305   temp solution : add default: return “null”; between line 52 and 53, template<> inline const char *jsc::Value::typeof(JSContextRef ctx, const JSValueRef &value) { switch (JSValueGetType(ctx, value)) { case kJSTypeNull: return “null”; case kJSTypeNumber: return “number”; case kJSTypeObject: return “object”; case kJSTypeString: return “string”; case kJSTypeBoolean: return “boolean”; case kJSTypeUndefined: return “undefined”; default: return “null”;Continue reading “Compile-time Error: control may reach end of non-void function with Xcode 10.2”

Change package name for Android in React Native

By:Cherniv Then manually switched the old and new package ids: In: android/app/src/main/java/MY/APP/NEW_ID/MainActivity.java: package MY.APP.NEW_ID; In android/app/src/main/java/MY/APP/NEW_ID/MainApplication.java: package MY.APP.NEW_ID; In android/app/src/main/AndroidManifest.xml: package=”MY.APP.NEW_ID” And in android/app/build.gradle: applicationId “MY.APP.NEW_ID” (Optional) In android/app/BUCK: android_build_config( package=”MY.APP.NEW_ID” ) android_resource( package=”MY.APP.NEW_ID” ) Gradle’ cleaning in the end (in /android folder): ./gradlew clean   Copy from: https://stackoverflow.com/questions/37389905/change-package-name-for-android-in-react-native