react-native-torch icon indicating copy to clipboard operation
react-native-torch copied to clipboard

Problem with the linking

Open hugohow opened this issue 6 years ago • 4 comments

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

hugohow avatar Mar 28 '18 15:03 hugohow

I had the same issue.

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

varburg avatar May 09 '18 09:05 varburg

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

hugohow avatar May 11 '18 08:05 hugohow

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

jrounsav avatar Aug 09 '18 21:08 jrounsav

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

Eramirez0633 avatar Mar 05 '19 20:03 Eramirez0633