Skip to content

Commit 238921c

Browse files
author
Luke Brandon Farrell
committed
Added peer-dependancy
1 parent 778a9ce commit 238921c

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

RNNSearchBar.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,7 @@ export class RNNSearchBar extends React.Component {
7878
</Animated.View>
7979
);
8080
}
81-
82-
/**
83-
* Both the blur and focus functions below contain a rare
84-
* use case where we need to access the RNN API from the
85-
* component. The architecture of the project discourages
86-
* this practices, and favours access if the RNN API to
87-
* be limited to "screens" in the "./screens" folder.
88-
*
89-
* Although in this case, the component animation does
90-
* not make sense without a accompanied topBar hide/show.
91-
*/
92-
81+
9382
/**
9483
* Sets the search as focused and evokes any side effects
9584
*/

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
"license": "MIT",
1818
"dependencies": {
1919
"react-native-elements": "^1.2.7"
20+
},
21+
"peerDependencies": {
22+
"react-native-navigation": ">= 2.0.0"
2023
}
2124
}

0 commit comments

Comments
 (0)