I am working on a function related to the native part of ios written in Object-C,
I want to write a method that returns a string in Object-C,
but I am facing a problem when I write this method:
Expected selector for Objective-C method,
My code is as follows:
RCT_EXPORT_METHOD((NSString *)getName)
{
return "Sammeme";
}
@end
Anyone doing ios development can help me to solve this problem,
Thank you
Expected selector for Objective-C method, so I want to solve it. Do you know what I mean?@startsomewhere? Is this in a class? Could you show the rest of the class?