ordering-ui-react-native 0.23.21 → 0.23.22

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.23.21",
3
+ "version": "0.23.22",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -130,8 +130,9 @@ NavBar.defaultProps = {
130
130
  textAlign: 'center'
131
131
  };
132
132
 
133
- const areEqual = (prevProps: { route?: any; }, nextProps: { route?: any; }) => {
134
- return prevProps.route === nextProps.route
133
+ const areEqual = (prevProps: { route?: any, title?: string }, nextProps: { route?: any, title?: string }) => {
134
+ return prevProps.route === nextProps.route &&
135
+ JSON.stringify(prevProps.title) === JSON.stringify(nextProps.title)
135
136
  return true
136
137
  }
137
138