Skip to content

Commit e54ecf9

Browse files
cpojerfacebook-github-bot
authored andcommitted
Move react-native-implementation.js to index.js
Summary: I am unsure whether there was a reason not to use an `index.js` file from the beginning. It always struck me as confusing and odd to have the main API hidden in a folder somewhere. This changes RN to use the standard `index.js` file that is common in almost all JavaScript packages. Reviewed By: yungsters, rubennorte Differential Revision: D17314423 fbshipit-source-id: 10eaf4fddd41e91163de7d10c0879b623dab00d7
1 parent 607e258 commit e54ecf9

File tree

6 files changed

+205
-205
lines changed

6 files changed

+205
-205
lines changed

.flowconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
[include]
2525

2626
[libs]
27-
Libraries/react-native/react-native-interface.js
27+
interface.js
2828
flow/
2929

3030
[options]
@@ -39,7 +39,7 @@ module.file_ext=.ios.js
3939

4040
munge_underscores=true
4141

42-
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/Libraries/react-native/react-native-implementation'
42+
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/index.js'
4343
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
4444
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub'
4545

.flowconfig.android

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
[include]
2525

2626
[libs]
27-
Libraries/react-native/react-native-interface.js
27+
interface.js
2828
flow/
2929

3030
[options]
@@ -39,7 +39,7 @@ module.file_ext=.android.js
3939

4040
munge_underscores=true
4141

42-
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/Libraries/react-native/react-native-implementation'
42+
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/index.js'
4343
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
4444
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/Libraries/Image/RelativeImageStub'
4545

0 commit comments

Comments
 (0)