Let's, for instance, give our app the ability to use authorize with Siri. On iOS, by default, we are using Objective-C. When working in Objective-C, we need to perform the following steps:
- Create the ios/SpeechManager folder.
- Create a header file. In our example, we will simply create the SpeechManager native module, which will use the iOS speech API for transforming text to speech.
- We will create a folder under the iOS folder and call it SpeechManager.
- Create an Objective-C file for our SpeechManager implementation; we will call it SpeechManager.m.
- Open a XCode project and drag and drop the SpeechManager files into the project:
- When we drop them, XCode will display the following prompt, asking us whether ...