- In a new or existing project called
MyProject
(for example) add the .h, .m and .swift files to the/ios/
directory - Put the ReactNativeSwiftPromises file wherever you like
- Launch/compile your react native project. Note: whenever you change the native files you'll need to recompile with XCode
NOTE: if this example doesn't compile/work let me know. I just pasted random bits from a project without checking if it compiles. I'm using 9.2 with RN 0.55.2
Hello sir!
how are you?
I need have started the camera in the swift controller could you help me to add promise there so when the camera is done with the recording or capturing image it should return URI in resolve
the callback methods are working fine that returns the data in the callback