wix-incubator / react-native-keyboard-input

Use your own custom input component instead of the system keyboard
MIT License
819 stars 150 forks source link

Added capability to use CocoaPods #47

Open shofman opened 6 years ago

shofman commented 6 years ago

Adding a podspec allows the user to include this library using

pod 'react-native-keyboard-input', :path => '../node_modules/react-native-keyboard-input'
pod 'react-native-keyboard-tracking-view', :path => '../node_modules/react-native-keyboard-tracking-view'

rather than adding libraries manually.

Dependent on https://github.com/wix/react-native-keyboard-tracking-view/pull/13 since we need that library to include a podspec

Ashoat commented 5 years ago

@artald, react-native-cli is moving to requiring the use of CocoaPods. Could you take a look at this PR and wix/react-native-keyboard-tracking-view#13?

Ashoat commented 5 years ago

I've been using these podspecs with the custom patch and noticed there's an issue - the #if __has_include(<KeyboardTrackingView/ObservingInputAccessoryView.h>) line in react-native-keyboard-input resolves as false. The package appears to be named react-native-keyboard-tracking-view rather than KeyboardTrackingView.

samgermain commented 4 years ago

Why isn't this on the main page under installing for iOS instead of in a random issue comment

Also it's

pod 'ReactNativeKeyboardInput', :path => '../node_modules/react-native-keyboard-input'
pod 'ReactNativeKeyboardTrackingView', :path => '../node_modules/react-native-keyboard-tracking-view'