Skip to content

Commit cef3f3d

Browse files
author
Christopher J. Brody
committed
Merge branch 'noname-exception-handling' of https://github.com/738/react-native-create-library into dev
as proposed in frostney/react-native-create-library#104
2 parents 60f6c3c + 35dd456 commit cef3f3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib.js

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ module.exports = ({
4747
view = false,
4848
generateExample = DEFAULT_GENERATE_EXAMPLE,
4949
}) => {
50+
if (typeof name !== 'string') {
51+
throw new Error('Please write your library\'s name');
52+
}
53+
5054
if (platforms.length === 0) {
5155
throw new Error('Please specify at least one platform to generate the library.');
5256
}

0 commit comments

Comments
 (0)