Skip to content

Commit

Permalink
Merge branch 'master' into prop-types
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie authored Nov 19, 2017
2 parents 75a79f4 + 2d184ba commit f41227a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The high-quality [iOS native search bar](https://developer.apple.com/library/ios

## Installation

In your react native project, run `npm install react-native-search-bar --save`
In your react native project, run `npm install react-native-search-bar --save` or `yarn add react-native-search-bar`

To link this library, please follow the first two steps in the [Linking Libraries (iOS)](http://facebook.github.io/react-native/docs/linking-libraries-ios.html) guide on React Native website. The `.xcodeproj` file is in `node_modules/react-native-search-bar/`. In the end, you should have `RNSearchBar.xcodeproj` in the `Libaries` group on Xcode and `libRNSearchBar.a` in the `Link Binary With Libraries` section inside the `Build Phases` tab of your project target.

Expand Down Expand Up @@ -72,3 +72,5 @@ Except code contribution, you are welcome to answer question asked in [Issues](h
## License

MIT


3 changes: 2 additions & 1 deletion SearchBar.coffee
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
React = require 'react'
ReactNative = require 'react-native'
PropTypes = require 'prop-types'
createReactClass = require 'create-react-class'

RNSearchBar = ReactNative.requireNativeComponent 'RNSearchBar', null

NativeModules = ReactNative.NativeModules


SearchBar = React.createClass
SearchBar = createReactClass

propTypes:
placeholder: PropTypes.string
Expand Down
6 changes: 4 additions & 2 deletions SearchBar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var NativeModules, PropTypes, RNSearchBar, React, ReactNative, SearchBar;
var NativeModules, PropTypes, RNSearchBar, React, ReactNative, SearchBar, createReactClass;

React = require('react');

Expand All @@ -10,7 +10,9 @@ PropTypes = require('prop-types');

NativeModules = ReactNative.NativeModules;

SearchBar = React.createClass({
createReactClass = require('create-react-class');

SearchBar = createReactClass({
propTypes: {
placeholder: PropTypes.string,
text: PropTypes.string,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-search-bar",
"version": "3.0.0",
"version": "3.0.1",
"description": "The native search bar for react native.",
"keywords": [
"search-bar",
Expand All @@ -17,5 +17,6 @@
"license": "MIT",
"dependencies": {
"prop-types": "^15.5.10"
"create-react-class": "^15.6.0"
}
}

0 comments on commit f41227a

Please sign in to comment.