@momo-kits/foundation 0.89.4-tracking.15 → 0.89.4-tracking.16

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.
@@ -4,7 +4,7 @@ import Navigation from './Navigation';
4
4
  import {ApplicationContext, MiniAppContext} from './index';
5
5
  import {GridSystem} from '../Layout';
6
6
  import {useHeaderHeight} from '@react-navigation/stack';
7
- import {InteractionManager} from 'react-native';
7
+ import {Alert, InteractionManager} from 'react-native';
8
8
 
9
9
  const {
10
10
  ScreenContext,
@@ -49,6 +49,12 @@ const StackScreen: React.FC<ScreenParams> = props => {
49
49
  * tracking for screen
50
50
  */
51
51
  useEffect(() => {
52
+ if (__DEV__) {
53
+ if (!Component.name || Component.name === 'screen') {
54
+ Alert.alert('Design system', `Unvalidated screen name "${Component.name}" !`)
55
+ }
56
+ }
57
+
52
58
  const tracking = {
53
59
  ...context,
54
60
  screen_name: Component.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.89.4-tracking.15",
3
+ "version": "0.89.4-tracking.16",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {