ludo / react-native-torch

Torch (flashlight) plugin for React Native (Android/iOS)
MIT License
78 stars 27 forks source link

Problem with the linking #9

Open hugohow opened 6 years ago

hugohow commented 6 years ago

Hello,

I didn't succeed to have this library worked.

I have this : "undefined is not an object (evaluation '_reactNativeTorch2.default.switchState')

Simulator : Physical iPhone react-native : "0.50.3" react-native-torch : "^1.1.3"

It may be a problem with the linking ?

Thanks

varburg commented 6 years ago

I had the same issue.

to use it as Torch.switchState(... import Torch from .... not import { Torch } from ...

hugohow commented 6 years ago

@varburg I solve it by manual installation : https://github.com/ludo/react-native-torch/pull/10

jrounsav commented 6 years ago

react-native link also failed on android for me. Had to go in and link manually.

Eramirez0633 commented 5 years ago

I have the same problem on android. how could I solve it? :(