diff --git a/src/apis/StyleSheet/expandStyle.js b/src/apis/StyleSheet/expandStyle.js index 05f1bab5..5d5250d4 100644 --- a/src/apis/StyleSheet/expandStyle.js +++ b/src/apis/StyleSheet/expandStyle.js @@ -10,7 +10,7 @@ */ import normalizeValue from './normalizeValue'; -import processColor from './processColor'; +import processColor from '../../modules/processColor'; import resolveBoxShadow from './resolveBoxShadow'; import resolveTextShadow from './resolveTextShadow'; import resolveTransform from './resolveTransform'; diff --git a/src/apis/StyleSheet/resolveBoxShadow.js b/src/apis/StyleSheet/resolveBoxShadow.js index c7001a34..a524a7f4 100644 --- a/src/apis/StyleSheet/resolveBoxShadow.js +++ b/src/apis/StyleSheet/resolveBoxShadow.js @@ -1,5 +1,5 @@ import normalizeValue from './normalizeValue'; -import processColor from './processColor'; +import processColor from '../../modules/processColor'; const defaultOffset = { height: 0, width: 0 }; diff --git a/src/apis/StyleSheet/resolveTextShadow.js b/src/apis/StyleSheet/resolveTextShadow.js index 99382f8f..86f3b433 100644 --- a/src/apis/StyleSheet/resolveTextShadow.js +++ b/src/apis/StyleSheet/resolveTextShadow.js @@ -1,5 +1,5 @@ import normalizeValue from './normalizeValue'; -import processColor from './processColor'; +import processColor from '../../modules/processColor'; const defaultOffset = { height: 0, width: 0 }; diff --git a/src/index.js b/src/index.js index 018e814e..33007ad3 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,8 @@ +import createDOMElement from './modules/createDOMElement'; import findNodeHandle from './modules/findNodeHandle'; +import modality from './modules/modality'; +import NativeModules from './modules/NativeModules'; +import processColor from './modules/processColor'; import { render, unmountComponentAtNode } from 'react-dom'; // APIs @@ -37,11 +41,6 @@ import TouchableOpacity from './components/Touchable/TouchableOpacity'; import TouchableWithoutFeedback from './components/Touchable/TouchableWithoutFeedback'; import View from './components/View'; -// modules -import createDOMElement from './modules/createDOMElement'; -import modality from './modules/modality'; -import NativeModules from './modules/NativeModules'; - // propTypes import ColorPropType from './propTypes/ColorPropType'; import EdgeInsetsPropType from './propTypes/EdgeInsetsPropType'; @@ -55,6 +54,11 @@ const ReactNative = { render, unmountComponentAtNode, + // modules + createDOMElement, + NativeModules, + processColor, + // APIs Animated, AppRegistry, @@ -91,10 +95,6 @@ const ReactNative = { TouchableWithoutFeedback, View, - // modules - createDOMElement, - NativeModules, - // propTypes ColorPropType, EdgeInsetsPropType, diff --git a/src/apis/StyleSheet/__tests__/processColor-test.js b/src/modules/processColor/__tests__/index-test.js similarity index 98% rename from src/apis/StyleSheet/__tests__/processColor-test.js rename to src/modules/processColor/__tests__/index-test.js index f9f9fd85..ec0fd4a6 100644 --- a/src/apis/StyleSheet/__tests__/processColor-test.js +++ b/src/modules/processColor/__tests__/index-test.js @@ -1,6 +1,6 @@ /* eslint-env jasmine, jest */ -import processColor from '../processColor'; +import processColor from '..'; describe('apis/StyleSheet/processColor', () => { describe('predefined color names', () => { diff --git a/src/apis/StyleSheet/processColor.js b/src/modules/processColor/index.js similarity index 100% rename from src/apis/StyleSheet/processColor.js rename to src/modules/processColor/index.js