react-native-screen-brightness icon indicating copy to clipboard operation
react-native-screen-brightness copied to clipboard

pls update module for RN-0.40 it crash app

Open Mactub07 opened this issue 8 years ago • 3 comments

Mactub07 avatar Feb 02 '17 09:02 Mactub07

solution for RN >=0.40 for time being :

  • open Xcode, found ScreenBrightness.xcodeproj (as usually in Libraries)

  • replace import files in ScreenBrightness.h file : #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <React/RCTBridgeModule.h> #import <React/RCTBridge.h> #import <React/RCTEventDispatcher.h>

  • comment import files in ScreenBrightness.m file : #import "ScreenBrightness.h" //#import "RCTBridgeModule.h" //#import "RCTBridge.h" //#import "RCTEventDispatcher.h" //#import <React/RCTBridgeModule.h> //#import <React/RCTBridge.h> //#import <React/RCTEventDispatcher.h>

there will be only one import : #import "ScreenBrightness.h" screenshot at 08 15-31-30 screenshot at 08 15-31-55 screenshot at 08 15-32-22

Mactub07 avatar Feb 08 '17 13:02 Mactub07

Thanks for the report, we'll making some updates for compatability

atticoos avatar Feb 08 '17 15:02 atticoos

Fixed in https://github.com/robinpowered/react-native-screen-brightness/pull/15. A release will be tagged soon, where this issue will become closed.

atticoos avatar Apr 20 '17 15:04 atticoos