react-native-boost 0.6.2 → 0.7.0

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.
@@ -1,22 +0,0 @@
1
- import { NodePath, types as t } from '@babel/core';
2
-
3
- /**
4
- * Checks if a node represents a string value.
5
- */
6
- export const isStringNode = (path: NodePath<t.JSXOpeningElement>, child: t.Node): boolean => {
7
- if (t.isJSXText(child) || t.isStringLiteral(child)) return true;
8
-
9
- // Check for JSX expressions
10
- if (t.isJSXExpressionContainer(child)) {
11
- const expression = child.expression;
12
- if (t.isIdentifier(expression)) {
13
- const binding = path.scope.getBinding(expression.name);
14
- if (binding && binding.path.node && t.isVariableDeclarator(binding.path.node)) {
15
- return !!binding.path.node.init && t.isStringLiteral(binding.path.node.init);
16
- }
17
- return false;
18
- }
19
- if (t.isStringLiteral(expression)) return true;
20
- }
21
- return false;
22
- };