Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pls update module for RN-0.40 it crash app #12

Open
Mactub07 opened this issue Feb 2, 2017 · 3 comments
Open

pls update module for RN-0.40 it crash app #12

Mactub07 opened this issue Feb 2, 2017 · 3 comments
Assignees

Comments

@Mactub07
Copy link

Mactub07 commented Feb 2, 2017

No description provided.

@Mactub07
Copy link
Author

Mactub07 commented Feb 8, 2017

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

@atticoos atticoos self-assigned this Feb 8, 2017
@atticoos
Copy link
Contributor

atticoos commented Feb 8, 2017

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

@atticoos
Copy link
Contributor

Fixed in #15. A release will be tagged soon, where this issue will become closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@atticoos @Mactub07 and others