Calvin-Huang / react-native-device-brightness

Screen brightness adjustment tool for ReactNative iOS and Android.
MIT License
49 stars 57 forks source link

'RCTBridgeModule.h' file not found #20

Open SnehalAgrawal opened 4 years ago

SnehalAgrawal commented 4 years ago

Hey, is there any possibility for the update of this library fro React Native 0.60? I tried everything but still getting the same error in iOS Screenshot 2019-08-20 at 12 05 20 AM

phuongwd commented 4 years ago

hi @SnehalAgrawal

Just tell RN it doesn't support autolinking on ios by editing your react-native.config.js like so:

module.exports = {
    dependencies: {
        'react-native-device-brightness': {
            platforms: {
                ios: null,
            },
        },
    },
}

and please refer https://stackoverflow.com/questions/41663002/react-rctbridgemodule-h-file-not-found

btw: pull request https://github.com/Calvin-Huang/react-native-device-brightness/pull/24 support autolinking.

JindiHu commented 4 years ago

I have the same issue, adding the react-native.config.js doesn't resolve it, what else do I need to do? thanks.