diff --git a/.npmignore b/.npmignore index 1b34630..8617866 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,4 @@ Sample +__tests__ screenshots index.ios.js \ No newline at end of file diff --git a/README.md b/README.md index 54152aa..76fbe67 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,16 @@ Soon... ## Install +1. Install dependency package ```bash npm i -S react-native-keyboard-manager ``` +2. Link the native project +```bash + react-native link react-native-keyboard-manager +``` + ## Contribute New features, bug fixes and improvements are welcome! For questions and suggestions use the [issues](https://github.com/douglasjunior/react-native-keyboard-manager/issues). diff --git a/__tests__/index.android.js b/__tests__/index.android.js deleted file mode 100644 index b49b908..0000000 --- a/__tests__/index.android.js +++ /dev/null @@ -1,12 +0,0 @@ -import 'react-native'; -import React from 'react'; -import Index from '../index.android.js'; - -// Note: test renderer must be required after react-native. -import renderer from 'react-test-renderer'; - -it('renders correctly', () => { - const tree = renderer.create( - - ); -}); diff --git a/index.ios.js b/index.ios.js index 5c055ca..ba0283d 100644 --- a/index.ios.js +++ b/index.ios.js @@ -44,7 +44,7 @@ KeyboardManager.setShouldShowTextFieldPlaceholder(true); KeyboardManager.setOverrideKeyboardAppearance(false); KeyboardManager.setShouldResignOnTouchOutside(true); -class Demo extends Component { +class Sample extends Component { state = {}; @@ -104,4 +104,4 @@ class Demo extends Component { } -AppRegistry.registerComponent('ReactNativeKeyboardManager', () => Demo); \ No newline at end of file +AppRegistry.registerComponent('ReactNativeKeyboardManager', () => Sample); \ No newline at end of file diff --git a/index.js b/index.js index a16c96b..ae1e3aa 100644 --- a/index.js +++ b/index.js @@ -23,14 +23,11 @@ */ import { - NativeModules, DeviceEventEmitter + NativeModules, DeviceEventEmitter } from 'react-native'; const KeyboardManager = NativeModules.ReactNativeKeyboardManager; -console.log("ReactNativeKeyboardManager module"); -console.log(KeyboardManager); - module.exports = KeyboardManager;