Skip to content

Commit

Permalink
Merge pull request #226 from nerdfitness/add-animated-text-allowed
Browse files Browse the repository at this point in the history
Add Animated.Text to allowed rules list
  • Loading branch information
Intellicode committed Apr 14, 2019
2 parents b78c7c9 + fc13427 commit 23a2c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-raw-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = (context) => {
};

const skippedElements = options.skip ? options.skip : [];
const allowedElements = ['Text', 'TSpan', 'StyledText'].concat(skippedElements);
const allowedElements = ['Text', 'TSpan', 'StyledText', 'Animated.Text'].concat(skippedElements);

const hasOnlyLineBreak = value => /^[\r\n\t\f\v]+$/.test(value.replace(/ /g, ''));

Expand Down

0 comments on commit 23a2c86

Please sign in to comment.