ordering-ui-react-native 0.21.85-release → 0.21.86-release

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.21.85-release",
3
+ "version": "0.21.86-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -133,8 +133,9 @@ NavBar.defaultProps = {
133
133
  textAlign: 'center'
134
134
  };
135
135
 
136
- const areEqual = (prevProps: { route?: any; }, nextProps: { route?: any; }) => {
137
- return prevProps.route === nextProps.route
136
+ const areEqual = (prevProps: { route?: any, title?: string }, nextProps: { route?: any, title?: string }) => {
137
+ return prevProps.route === nextProps.route &&
138
+ JSON.stringify(prevProps.title) === JSON.stringify(nextProps.title)
138
139
  return true
139
140
  }
140
141