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

'RCTBridgeModule.h' file not found

Open SnehalAgrawal opened this issue 5 years ago • 2 comments

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

SnehalAgrawal avatar Aug 19 '19 18:08 SnehalAgrawal

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.

phuongwd avatar Sep 18 '19 11:09 phuongwd

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

JindiHu avatar Jan 21 '20 03:01 JindiHu