diff --git a/.buckconfig b/.buckconfig index 8e9e59e24..41234774b 100644 --- a/.buckconfig +++ b/.buckconfig @@ -7,4 +7,4 @@ [alias] movies = //Examples/Movies/android/app:app - uiexplorer = //Examples/UIExplorer/android/app:app + rntester = //RNTester/android/app:app diff --git a/Examples/.eslintrc b/Examples/.eslintrc deleted file mode 100644 index 8dc9d22c1..000000000 --- a/Examples/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rules": { - "no-alert": 0 - } -} diff --git a/Examples/UIExplorer/UIExplorer/AppDelegate.h b/Examples/UIExplorer/UIExplorer/AppDelegate.h deleted file mode 100644 index f3e75417c..000000000 --- a/Examples/UIExplorer/UIExplorer/AppDelegate.h +++ /dev/null @@ -1,24 +0,0 @@ -/** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -#import - -@class RCTBridge; - -@interface AppDelegate : UIResponder - -@property (nonatomic, strong) UIWindow *window; -@property (nonatomic, readonly) RCTBridge *bridge; - -@end diff --git a/Examples/UIExplorer/UIExplorer/NativeExampleViews/FlexibleSizeExampleView.h b/Examples/UIExplorer/UIExplorer/NativeExampleViews/FlexibleSizeExampleView.h deleted file mode 100644 index 3f8a85491..000000000 --- a/Examples/UIExplorer/UIExplorer/NativeExampleViews/FlexibleSizeExampleView.h +++ /dev/null @@ -1,21 +0,0 @@ -/** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -#import - -#import - -@interface FlexibleSizeExampleView : RCTView - -@end diff --git a/Examples/UIExplorer/UIExplorer/NativeExampleViews/UpdatePropertiesExampleView.h b/Examples/UIExplorer/UIExplorer/NativeExampleViews/UpdatePropertiesExampleView.h deleted file mode 100644 index 537fb90b0..000000000 --- a/Examples/UIExplorer/UIExplorer/NativeExampleViews/UpdatePropertiesExampleView.h +++ /dev/null @@ -1,21 +0,0 @@ -/** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -#import - -#import - -@interface UpdatePropertiesExampleView : RCTView - -@end diff --git a/Examples/UIExplorer/UIExplorer/main.m b/Examples/UIExplorer/UIExplorer/main.m deleted file mode 100644 index b2a647302..000000000 --- a/Examples/UIExplorer/UIExplorer/main.m +++ /dev/null @@ -1,23 +0,0 @@ -/** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -#import - -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git a/Examples/UIExplorer/UIExplorerUnitTests/RCTConvert_YGValueTests.m b/Examples/UIExplorer/UIExplorerUnitTests/RCTConvert_YGValueTests.m deleted file mode 100644 index 299dc5b16..000000000 --- a/Examples/UIExplorer/UIExplorerUnitTests/RCTConvert_YGValueTests.m +++ /dev/null @@ -1,45 +0,0 @@ -/** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -#import - -#import - -@interface RCTConvert_YGValueTests : XCTestCase - -@end - -@implementation RCTConvert_YGValueTests - -- (void)testUndefined -{ - YGValue value = [RCTConvert YGValue:nil]; - XCTAssertEqual(value.unit, YGUnitUndefined); -} - -- (void)testNumberPoints -{ - YGValue value = [RCTConvert YGValue:@100]; - XCTAssertEqual(value.unit, YGUnitPoint); - XCTAssertEqual(value.value, 100); -} - -- (void)testStringPercent -{ - YGValue value = [RCTConvert YGValue:@"100%"]; - XCTAssertEqual(value.unit, YGUnitPercent); - XCTAssertEqual(value.value, 100); -} - -@end diff --git a/Examples/UIExplorer/android/app/src/main/res/values/strings.xml b/Examples/UIExplorer/android/app/src/main/res/values/strings.xml deleted file mode 100644 index 0b8cb6bc3..000000000 --- a/Examples/UIExplorer/android/app/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - UIExplorer App - diff --git a/Examples/UIExplorer/js/ExampleTypes.js b/Examples/UIExplorer/js/ExampleTypes.js deleted file mode 100644 index 76ec2dfa3..000000000 --- a/Examples/UIExplorer/js/ExampleTypes.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule ExampleTypes - * @flow - */ -'use strict'; - -import type React from 'react'; - -export type Example = { - title: string, - render: () => ?React.Element, - description?: string, - platform?: string, -}; - -export type ExampleModule = { - title: string, - description: string, - examples: Array, -}; diff --git a/Examples/UIExplorer/js/ImageEditingExample.js b/Examples/UIExplorer/js/ImageEditingExample.js deleted file mode 100644 index dc6953e1e..000000000 --- a/Examples/UIExplorer/js/ImageEditingExample.js +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @flow - * @providesModule ImageEditingExample - */ -'use strict'; - -var React = require('react'); -var ReactNative = require('react-native'); -var { - CameraRoll, - Image, - ImageEditor, - Platform, - ScrollView, - StyleSheet, - Text, - TouchableHighlight, - View, -} = ReactNative; - -var PAGE_SIZE = 20; - -type ImageOffset = { - x: number; - y: number; -}; - -type ImageSize = { - width: number; - height: number; -}; - -type ImageCropData = { - offset: ImageOffset; - size: ImageSize; - displaySize?: ?ImageSize; - resizeMode?: ?any; -}; - -class SquareImageCropper extends React.Component { - state: any; - _isMounted: boolean; - _transformData: ImageCropData; - - constructor(props) { - super(props); - this._isMounted = true; - this.state = { - randomPhoto: null, - measuredSize: null, - croppedImageURI: null, - cropError: null, - }; - this._fetchRandomPhoto(); - } - - async _fetchRandomPhoto() { - try { - const data = await CameraRoll.getPhotos({first: PAGE_SIZE}); - if (!this._isMounted) { - return; - } - var edges = data.edges; - var edge = edges[Math.floor(Math.random() * edges.length)]; - var randomPhoto = edge && edge.node && edge.node.image; - if (randomPhoto) { - this.setState({randomPhoto}); - } - } catch (error) { - console.warn("Can't get a photo from camera roll", error); - } - } - - componentWillUnmount() { - this._isMounted = false; - } - - render() { - if (!this.state.measuredSize) { - return ( - { - var measuredWidth = event.nativeEvent.layout.width; - if (!measuredWidth) { - return; - } - this.setState({ - measuredSize: {width: measuredWidth, height: measuredWidth}, - }); - }} - /> - ); - } - - if (!this.state.croppedImageURI) { - return this._renderImageCropper(); - } - return this._renderCroppedImage(); - } - - _renderImageCropper() { - if (!this.state.randomPhoto) { - return ( - - ); - } - var error = null; - if (this.state.cropError) { - error = ( - {this.state.cropError.message} - ); - } - return ( - - Drag the image within the square to crop: - this._transformData = data} - /> - - - - Crop - - - - {error} - - ); - } - - _renderCroppedImage() { - return ( - - Here is the cropped image: - - - - - Try again - - - - - ); - } - - _crop() { - ImageEditor.cropImage( - this.state.randomPhoto.uri, - this._transformData, - (croppedImageURI) => this.setState({croppedImageURI}), - (cropError) => this.setState({cropError}) - ); - } - - _reset() { - this.setState({ - randomPhoto: null, - croppedImageURI: null, - cropError: null, - }); - this._fetchRandomPhoto(); - } - -} - -class ImageCropper extends React.Component { - _contentOffset: ImageOffset; - _maximumZoomScale: number; - _minimumZoomScale: number; - _scaledImageSize: ImageSize; - _horizontal: boolean; - - componentWillMount() { - // Scale an image to the minimum size that is large enough to completely - // fill the crop box. - var widthRatio = this.props.image.width / this.props.size.width; - var heightRatio = this.props.image.height / this.props.size.height; - this._horizontal = widthRatio > heightRatio; - if (this._horizontal) { - this._scaledImageSize = { - width: this.props.image.width / heightRatio, - height: this.props.size.height, - }; - } else { - this._scaledImageSize = { - width: this.props.size.width, - height: this.props.image.height / widthRatio, - }; - if (Platform.OS === 'android') { - // hack to work around Android ScrollView a) not supporting zoom, and - // b) not supporting vertical scrolling when nested inside another - // vertical ScrollView (which it is, when displayed inside UIExplorer) - this._scaledImageSize.width *= 2; - this._scaledImageSize.height *= 2; - this._horizontal = true; - } - } - this._contentOffset = { - x: (this._scaledImageSize.width - this.props.size.width) / 2, - y: (this._scaledImageSize.height - this.props.size.height) / 2, - }; - this._maximumZoomScale = Math.min( - this.props.image.width / this._scaledImageSize.width, - this.props.image.height / this._scaledImageSize.height - ); - this._minimumZoomScale = Math.max( - this.props.size.width / this._scaledImageSize.width, - this.props.size.height / this._scaledImageSize.height - ); - this._updateTransformData( - this._contentOffset, - this._scaledImageSize, - this.props.size - ); - } - - _onScroll(event) { - this._updateTransformData( - event.nativeEvent.contentOffset, - event.nativeEvent.contentSize, - event.nativeEvent.layoutMeasurement - ); - } - - _updateTransformData(offset, scaledImageSize, croppedImageSize) { - var offsetRatioX = offset.x / scaledImageSize.width; - var offsetRatioY = offset.y / scaledImageSize.height; - var sizeRatioX = croppedImageSize.width / scaledImageSize.width; - var sizeRatioY = croppedImageSize.height / scaledImageSize.height; - - var cropData: ImageCropData = { - offset: { - x: this.props.image.width * offsetRatioX, - y: this.props.image.height * offsetRatioY, - }, - size: { - width: this.props.image.width * sizeRatioX, - height: this.props.image.height * sizeRatioY, - }, - }; - this.props.onTransformDataChange && this.props.onTransformDataChange(cropData); - } - - render() { - return ( - - - - ); - } - -} - -exports.framework = 'React'; -exports.title = 'ImageEditor'; -exports.description = 'Cropping and scaling with ImageEditor'; -exports.examples = [{ - title: 'Image Cropping', - render() { - return ; - } -}]; - -var styles = StyleSheet.create({ - container: { - flex: 1, - alignSelf: 'stretch', - }, - imageCropper: { - alignSelf: 'center', - marginTop: 12, - }, - cropButtonTouchable: { - alignSelf: 'center', - marginTop: 12, - }, - cropButton: { - padding: 12, - backgroundColor: 'blue', - borderRadius: 4, - }, - cropButtonLabel: { - color: 'white', - fontSize: 16, - fontWeight: '500', - }, -}); diff --git a/Examples/UIExplorer/js/UIExplorerActions.js b/Examples/UIExplorer/js/UIExplorerActions.js deleted file mode 100644 index d1983e907..000000000 --- a/Examples/UIExplorer/js/UIExplorerActions.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @flow - * @providesModule UIExplorerActions - */ -'use strict'; - -export type UIExplorerBackAction = { - type: 'UIExplorerBackAction', -}; - -export type UIExplorerListAction = { - type: 'UIExplorerListAction', -}; - -export type UIExplorerExampleAction = { - type: 'UIExplorerExampleAction', - openExample: string, -}; - -export type UIExplorerAction = ( - UIExplorerBackAction | - UIExplorerListAction | - UIExplorerExampleAction -); - - -function Back(): UIExplorerBackAction { - return { - type: 'UIExplorerBackAction', - }; -} - -function ExampleList(): UIExplorerListAction { - return { - type: 'UIExplorerListAction', - }; -} - -function ExampleAction(openExample: string): UIExplorerExampleAction { - return { - type: 'UIExplorerExampleAction', - openExample, - }; -} - -const UIExplorerActions = { - Back, - ExampleList, - ExampleAction, -}; - -module.exports = UIExplorerActions; diff --git a/Examples/UIExplorer/js/UIExplorerExampleContainer.js b/Examples/UIExplorer/js/UIExplorerExampleContainer.js deleted file mode 100644 index fdd0ea75a..000000000 --- a/Examples/UIExplorer/js/UIExplorerExampleContainer.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule UIExplorerExampleContainer - */ -'use strict'; - -const React = require('react'); -const { - Platform, -} = require('react-native'); -const UIExplorerBlock = require('./UIExplorerBlock'); -const UIExplorerPage = require('./UIExplorerPage'); - -class UIExplorerExampleContainer extends React.Component { - renderExample(example, i) { - // Filter platform-specific examples - var {title, description, platform} = example; - if (platform) { - if (Platform.OS !== platform) { - return null; - } - title += ' (' + platform + ' only)'; - } - return ( - - {example.render()} - - ); - } - - render(): React.Element { - if (!this.props.module.examples) { - return ; - } - - return ( - - {this.props.module.examples.map(this.renderExample)} - - ); - } -} - -module.exports = UIExplorerExampleContainer; diff --git a/Examples/UIExplorer/js/UIExplorerNavigationReducer.js b/Examples/UIExplorer/js/UIExplorerNavigationReducer.js deleted file mode 100644 index 015f1e5c2..000000000 --- a/Examples/UIExplorer/js/UIExplorerNavigationReducer.js +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @flow - * @providesModule UIExplorerNavigationReducer - */ -'use strict'; - -// $FlowFixMe : This is a platform-forked component, and flow seems to only run on iOS? -const UIExplorerList = require('./UIExplorerList'); - -export type UIExplorerNavigationState = { - openExample: ?string, -}; - -function UIExplorerNavigationReducer( - state: ?UIExplorerNavigationState, - action: any -): UIExplorerNavigationState { - - if ( - // Default value is to see example list - !state || - - // Handle the explicit list action - action.type === 'UIExplorerListAction' || - - // Handle requests to go back to the list when an example is open - (state.openExample && action.type === 'UIExplorerBackAction') - ) { - return { - // A null openExample will cause the views to display the UIExplorer example list - openExample: null, - }; - } - - if (action.type === 'UIExplorerExampleAction') { - - // Make sure we see the module before returning the new state - const ExampleModule = UIExplorerList.Modules[action.openExample]; - - if (ExampleModule) { - return { - openExample: action.openExample, - }; - } - } - - return state; -} - -module.exports = UIExplorerNavigationReducer; diff --git a/Examples/UIExplorer/js/URIActionMap.js b/Examples/UIExplorer/js/URIActionMap.js deleted file mode 100644 index fb25f5811..000000000 --- a/Examples/UIExplorer/js/URIActionMap.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @flow - * @providesModule URIActionMap - */ -'use strict'; - -const ReactNative = require('react-native'); -const UIExplorerActions = require('./UIExplorerActions'); -// $FlowFixMe : This is a platform-forked component, and flow seems to only run on iOS? -const UIExplorerList = require('./UIExplorerList'); - -const { - Alert, -} = ReactNative; - -import type { UIExplorerAction } from './UIExplorerActions'; - -function PathActionMap(path: string): ?UIExplorerAction { - // Warning! Hacky parsing for example code. Use a library for this! - const exampleParts = path.split('/example/'); - const exampleKey = exampleParts[1]; - if (exampleKey) { - if (!UIExplorerList.Modules[exampleKey]) { - Alert.alert(`${exampleKey} example could not be found!`); - return null; - } - return UIExplorerActions.ExampleAction(exampleKey); - } - return null; -} - -function URIActionMap(uri: ?string): ?UIExplorerAction { - if (!uri) { - return null; - } - // Warning! Hacky parsing for example code. Use a library for this! - const parts = uri.split('rnuiexplorer:/'); - if (!parts[1]) { - return null; - } - const path = parts[1]; - return PathActionMap(path); -} - -module.exports = URIActionMap; diff --git a/Examples/UIExplorer/js/createExamplePage.js b/Examples/UIExplorer/js/createExamplePage.js deleted file mode 100644 index f7661a109..000000000 --- a/Examples/UIExplorer/js/createExamplePage.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule createExamplePage - * @flow - */ -'use strict'; - -const React = require('react'); - -const UIExplorerExampleContainer = require('./UIExplorerExampleContainer'); - -import type { ExampleModule } from 'ExampleTypes'; - -var createExamplePage = function(title: ?string, exampleModule: ExampleModule) - : ReactClass { - - class ExamplePage extends React.Component { - render() { - return ; - } - } - - return ExamplePage; -}; - -module.exports = createExamplePage; diff --git a/IntegrationTests/IntegrationTestsApp.js b/IntegrationTests/IntegrationTestsApp.js index 33ddaec45..5977188f7 100644 --- a/IntegrationTests/IntegrationTestsApp.js +++ b/IntegrationTests/IntegrationTestsApp.js @@ -22,7 +22,7 @@ var { View, } = ReactNative; -// Keep this list in sync with UIExplorerIntegrationTests.m +// Keep this list in sync with RNTesterIntegrationTests.m var TESTS = [ require('./IntegrationTestHarnessTest'), require('./TimersTest'), diff --git a/IntegrationTests/SyncMethodTest.js b/IntegrationTests/SyncMethodTest.js index 1a4507264..b07c8ab17 100644 --- a/IntegrationTests/SyncMethodTest.js +++ b/IntegrationTests/SyncMethodTest.js @@ -17,16 +17,16 @@ var { View } = ReactNative; const { TestModule, - UIExplorerTestModule, + RNTesterTestModule, } = ReactNative.NativeModules; class SyncMethodTest extends React.Component { componentDidMount() { - if (UIExplorerTestModule.echoString('test string value') !== 'test string value') { + if (RNTesterTestModule.echoString('test string value') !== 'test string value') { throw new Error('Something wrong with sync method export'); } - if (UIExplorerTestModule.methodThatReturnsNil() != null) { + if (RNTesterTestModule.methodThatReturnsNil() != null) { throw new Error('Something wrong with sync method export'); } TestModule.markTestCompleted(); diff --git a/LICENSE-examples b/LICENSE-examples deleted file mode 100644 index 87f537d43..000000000 --- a/LICENSE-examples +++ /dev/null @@ -1,9 +0,0 @@ -The examples provided by Facebook are for non-commercial testing and evaluation -purposes only. Facebook reserves all rights not expressly granted. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Libraries/Experimental/IncrementalExample.js b/Libraries/Experimental/IncrementalExample.js index 6cbe08696..721f2b9d3 100644 --- a/Libraries/Experimental/IncrementalExample.js +++ b/Libraries/Experimental/IncrementalExample.js @@ -1,15 +1,10 @@ /** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule IncrementalExample * @flow diff --git a/Libraries/Interaction/PanResponder.js b/Libraries/Interaction/PanResponder.js index fe217b8b7..bc6774e98 100644 --- a/Libraries/Interaction/PanResponder.js +++ b/Libraries/Interaction/PanResponder.js @@ -116,7 +116,7 @@ const currentCentroidY = TouchHistoryMath.currentCentroidY; * ### Working Example * * To see it in action, try the - * [PanResponder example in UIExplorer](https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/js/PanResponderExample.js) + * [PanResponder example in RNTester](https://github.com/facebook/react-native/blob/master/RNTester/js/PanResponderExample.js) */ const PanResponder = { diff --git a/Libraries/Text/TextUpdateTest.js b/Libraries/Text/TextUpdateTest.js index fb0b4f4ae..40a931eed 100644 --- a/Libraries/Text/TextUpdateTest.js +++ b/Libraries/Text/TextUpdateTest.js @@ -1,15 +1,10 @@ /** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule TextUpdateTest * @flow diff --git a/README.md b/README.md index 1fd239a58..640d4149f 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ See the official [React Native website](https://facebook.github.io/react-native/ ## Getting Started - Follow the [Getting Started guide](https://facebook.github.io/react-native/docs/getting-started.html) to install React Native and its dependencies. -- [Open the UIExplorer example project](#examples) to see a list of components that ship with React Native. +- [Open the RNTester app](#examples) to see a list of components that ship with React Native. - Install the React Developer Tools for [Chrome](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi) or [Firefox](https://addons.mozilla.org/firefox/addon/react-devtools/) for better debugging [(read more)](https://facebook.github.io/react-native/docs/debugging.html). - Try out apps from the [Showcase](https://facebook.github.io/react-native/showcase.html) to see what React Native is capable of! @@ -44,7 +44,7 @@ Please use these community resources for getting help. We use the GitHub issues - The **APIs** section covers other libraries like [Animated](https://facebook.github.io/react-native/docs/animated.html) and [StyleSheet](https://facebook.github.io/react-native/docs/stylesheet.html) that aren’t React components themselves. - Finally, React Native provides a small number of **Polyfills** that offer web-like APIs. -Another great way to learn more about the components and APIs included with React Native is to read their source. Look under the `Libraries` directory for components like `ScrollView` and `Navigator`, for example. The UIExplorer example is also here to demonstrate some of the ways to use these components. From the source you can get an accurate understanding of each component’s behavior and API. +Another great way to learn more about the components and APIs included with React Native is to read their source. Look under the `Libraries` directory for components like `ScrollView` and `Navigator`, for example. The RNTester example is also here to demonstrate some of the ways to use these components. From the source you can get an accurate understanding of each component’s behavior and API. The React Native documentation only discusses the components, APIs and topics specific to React Native (React on iOS and Android). For further documentation on the React API that is shared between React Native and React DOM, refer to the [React documentation](https://facebook.github.io/react/). diff --git a/Examples/UIExplorer/README.md b/RNTester/README.md similarity index 84% rename from Examples/UIExplorer/README.md rename to RNTester/README.md index 7afa6d2e0..95493ae95 100644 --- a/Examples/UIExplorer/README.md +++ b/RNTester/README.md @@ -1,6 +1,6 @@ -# UIExplorer +# RNTester -The UIExplorer is a sample app that showcases React Native views and modules. +The RNTester showcases React Native views and modules. ## Running this app @@ -14,7 +14,7 @@ Before running the app, make sure you ran: Mac OS and Xcode are required. -- Open `Examples/UIExplorer/UIExplorer.xcodeproj` in Xcode +- Open `RNTester/RNTester.xcodeproj` in Xcode - Hit the Run button See [Running on device](https://facebook.github.io/react-native/docs/running-on-device.html) if you want to use a physical device. @@ -26,12 +26,12 @@ You'll need to have all the [prerequisites](https://github.com/facebook/react-na Start an Android emulator ([Genymotion](https://www.genymotion.com) is recommended). cd react-native - ./gradlew :Examples:UIExplorer:android:app:installDebug + ./gradlew :RNTester:android:app:installDebug ./packager/packager.sh _Note: Building for the first time can take a while._ -Open the UIExplorer app in your emulator. +Open the RNTester app in your emulator. See [Running on Device](https://facebook.github.io/react-native/docs/running-on-device.html) in case you want to use a physical device. @@ -44,8 +44,8 @@ Install Buck from [here](https://buckbuild.com/setup/install.html). Run the following commands from the react-native folder: ./gradlew :ReactAndroid:packageReactNdkLibsForBuck - buck fetch uiexplorer - buck install -r uiexplorer + buck fetch rntester + buck install -r rntester ./packager/packager.sh _Note: The native libs are still built using gradle. Full build with buck is coming soon(tm)._ diff --git a/Examples/UIExplorer/UIExplorer-tvOS/Info.plist b/RNTester/RNTester-tvOS/Info.plist similarity index 100% rename from Examples/UIExplorer/UIExplorer-tvOS/Info.plist rename to RNTester/RNTester-tvOS/Info.plist diff --git a/Examples/UIExplorer/UIExplorer.xcodeproj/project.pbxproj b/RNTester/RNTester.xcodeproj/project.pbxproj similarity index 86% rename from Examples/UIExplorer/UIExplorer.xcodeproj/project.pbxproj rename to RNTester/RNTester.xcodeproj/project.pbxproj index e671e6e16..1b12544db 100644 --- a/Examples/UIExplorer/UIExplorer.xcodeproj/project.pbxproj +++ b/RNTester/RNTester.xcodeproj/project.pbxproj @@ -29,7 +29,7 @@ 13DB03481B5D2ED500C27245 /* RCTJSONTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 13DB03471B5D2ED500C27245 /* RCTJSONTests.m */; }; 13DF61B61B67A45000EDB188 /* RCTMethodArgumentTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 13DF61B51B67A45000EDB188 /* RCTMethodArgumentTests.m */; }; 13E501F11D07A84A005F35D8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 13E501A31D07A502005F35D8 /* libRCTAnimation.a */; }; - 143BC5A11B21E45C00462512 /* UIExplorerSnapshotTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 143BC5A01B21E45C00462512 /* UIExplorerSnapshotTests.m */; }; + 143BC5A11B21E45C00462512 /* RNTesterSnapshotTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 143BC5A01B21E45C00462512 /* RNTesterSnapshotTests.m */; }; 144D21241B2204C5006DB32B /* RCTImageUtilTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 144D21231B2204C5006DB32B /* RCTImageUtilTests.m */; }; 147CED4C1AB3532B00DA3E4C /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 147CED4B1AB34F8C00DA3E4C /* libRCTActionSheet.a */; }; 1497CFAC1B21F5E400C1F8F2 /* RCTAllocationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1497CFA41B21F5E400C1F8F2 /* RCTAllocationTests.m */; }; @@ -63,8 +63,8 @@ 27F441EC1BEBE5030039B79C /* FlexibleSizeExampleView.m in Sources */ = {isa = PBXBuildFile; fileRef = 27F441E81BEBE5030039B79C /* FlexibleSizeExampleView.m */; }; 2D4624FA1DA2EAC300C74D09 /* RCTLoggingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D299BAE1D33EBFA00FA1057 /* RCTLoggingTests.m */; }; 2D4624FB1DA2EAC300C74D09 /* RCTRootViewIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 27B885551BED29AF00008352 /* RCTRootViewIntegrationTests.m */; }; - 2D4624FC1DA2EAC300C74D09 /* UIExplorerIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB99D0B1BA0340600302749 /* UIExplorerIntegrationTests.m */; }; - 2D4624FD1DA2EAC300C74D09 /* UIExplorerSnapshotTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 143BC5A01B21E45C00462512 /* UIExplorerSnapshotTests.m */; }; + 2D4624FC1DA2EAC300C74D09 /* RNTesterIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB99D0B1BA0340600302749 /* RNTesterIntegrationTests.m */; }; + 2D4624FD1DA2EAC300C74D09 /* RNTesterSnapshotTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 143BC5A01B21E45C00462512 /* RNTesterSnapshotTests.m */; }; 2D4624FE1DA2EAC300C74D09 /* RCTUIManagerScenarioTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 83636F8E1B53F22C009F943E /* RCTUIManagerScenarioTests.m */; }; 2D4625351DA2EBBE00C74D09 /* libRCTTest-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD323CC1DA2DD8B000FE1B8 /* libRCTTest-tvOS.a */; }; 2D4BD8D21DA2E20D005AC8A8 /* RCTURLUtilsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B6C1A21C34225900D3FAF5 /* RCTURLUtilsTests.m */; }; @@ -86,7 +86,7 @@ 2D4BD8E31DA2E20D005AC8A8 /* RCTShadowViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 138D6A161B53CD440074A87E /* RCTShadowViewTests.m */; }; 2D4BD8E41DA2E20D005AC8A8 /* RCTUIManagerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1497CFAB1B21F5E400C1F8F2 /* RCTUIManagerTests.m */; }; 2D4BD8E51DA2E20D005AC8A8 /* RCTComponentPropsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 13BCE84E1C9C209600DD7AAD /* RCTComponentPropsTests.m */; }; - 2D4BD8E61DA2E20D005AC8A8 /* UIExplorerUnitTestsBundle.js in Resources */ = {isa = PBXBuildFile; fileRef = 3DD981D51D33C6FB007DC7BE /* UIExplorerUnitTestsBundle.js */; }; + 2D4BD8E61DA2E20D005AC8A8 /* RNTesterUnitTestsBundle.js in Resources */ = {isa = PBXBuildFile; fileRef = 3DD981D51D33C6FB007DC7BE /* RNTesterUnitTestsBundle.js */; }; 2D4BD8E71DA2E20D005AC8A8 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 14D6D7101B220EB3001FB087 /* libOCMock.a */; }; 2D8C2E321DA40403000EE098 /* RCTMultipartStreamReaderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 001BFCE31D838343008E587E /* RCTMultipartStreamReaderTests.m */; }; 2DD323DC1DA2DDBF000FE1B8 /* FlexibleSizeExampleView.m in Sources */ = {isa = PBXBuildFile; fileRef = 27F441E81BEBE5030039B79C /* FlexibleSizeExampleView.m */; }; @@ -111,17 +111,17 @@ 3D299BAF1D33EBFA00FA1057 /* RCTLoggingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3D299BAE1D33EBFA00FA1057 /* RCTLoggingTests.m */; }; 3D2AFAF51D646CF80089D1A3 /* legacy_image@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 3D2AFAF41D646CF80089D1A3 /* legacy_image@2x.png */; }; 3D302F221DF8285100D6DDAE /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD323BB1DA2DD8B000FE1B8 /* libRCTImage-tvOS.a */; }; - 3D56F9F11D6F6E9B00F53A06 /* UIExplorerBundle.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3D13F83E1D6F6AE000E69E0E /* UIExplorerBundle.bundle */; }; - 3DB99D0C1BA0340600302749 /* UIExplorerIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB99D0B1BA0340600302749 /* UIExplorerIntegrationTests.m */; }; - 3DD981D61D33C6FB007DC7BE /* UIExplorerUnitTestsBundle.js in Resources */ = {isa = PBXBuildFile; fileRef = 3DD981D51D33C6FB007DC7BE /* UIExplorerUnitTestsBundle.js */; }; + 3D56F9F11D6F6E9B00F53A06 /* RNTesterBundle.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 3D13F83E1D6F6AE000E69E0E /* RNTesterBundle.bundle */; }; + 3DB99D0C1BA0340600302749 /* RNTesterIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB99D0B1BA0340600302749 /* RNTesterIntegrationTests.m */; }; + 3DD981D61D33C6FB007DC7BE /* RNTesterUnitTestsBundle.js in Resources */ = {isa = PBXBuildFile; fileRef = 3DD981D51D33C6FB007DC7BE /* RNTesterUnitTestsBundle.js */; }; 68FF44381CF6111500720EFD /* RCTBundleURLProviderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 68FF44371CF6111500720EFD /* RCTBundleURLProviderTests.m */; }; 834C36EC1AF8DED70019C93C /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 834C36D21AF8DA610019C93C /* libRCTSettings.a */; }; 83636F8F1B53F22C009F943E /* RCTUIManagerScenarioTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 83636F8E1B53F22C009F943E /* RCTUIManagerScenarioTests.m */; }; 8385CEF51B873B5C00C6273E /* RCTImageLoaderTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8385CEF41B873B5C00C6273E /* RCTImageLoaderTests.m */; }; 8385CF041B87479200C6273E /* RCTImageLoaderHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 8385CF031B87479200C6273E /* RCTImageLoaderHelpers.m */; }; BC9C03401DC9F1D600B1C635 /* RCTDevMenuTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BC9C033F1DC9F1D600B1C635 /* RCTDevMenuTests.m */; }; - C654F0B31EB34A73000B7A9A /* UIExplorerTestModule.m in Sources */ = {isa = PBXBuildFile; fileRef = C654F0B21EB34A73000B7A9A /* UIExplorerTestModule.m */; }; - C654F17E1EB34D24000B7A9A /* UIExplorerTestModule.m in Sources */ = {isa = PBXBuildFile; fileRef = C654F0B21EB34A73000B7A9A /* UIExplorerTestModule.m */; }; + C654F0B31EB34A73000B7A9A /* RNTesterTestModule.m in Sources */ = {isa = PBXBuildFile; fileRef = C654F0B21EB34A73000B7A9A /* RNTesterTestModule.m */; }; + C654F17E1EB34D24000B7A9A /* RNTesterTestModule.m in Sources */ = {isa = PBXBuildFile; fileRef = C654F0B21EB34A73000B7A9A /* RNTesterTestModule.m */; }; D85B829E1AB6D5D7003F4FE2 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D85B829C1AB6D5CE003F4FE2 /* libRCTVibration.a */; }; /* End PBXBuildFile section */ @@ -187,7 +187,7 @@ containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 13B07F861A680F5B00A75B9A; - remoteInfo = UIExplorer; + remoteInfo = RNTester; }; 147CED4A1AB34F8C00DA3E4C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -215,14 +215,14 @@ containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 2DD3238F1DA2DD8A000FE1B8; - remoteInfo = "UIExplorer-tvOS"; + remoteInfo = "RNTester-tvOS"; }; 2DD323A61DA2DD8B000FE1B8 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 2DD3238F1DA2DD8A000FE1B8; - remoteInfo = "UIExplorer-tvOS"; + remoteInfo = "RNTester-tvOS"; }; 2DD323B41DA2DD8B000FE1B8 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -334,7 +334,7 @@ containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 3D13F83D1D6F6AE000E69E0E; - remoteInfo = UIExplorerBundle; + remoteInfo = RNTesterBundle; }; 3D3C08801DE3424E00C268FA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -389,36 +389,36 @@ /* Begin PBXFileReference section */ 001BFCE31D838343008E587E /* RCTMultipartStreamReaderTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTMultipartStreamReaderTests.m; sourceTree = ""; }; - 004D289E1AAF61C70097A701 /* UIExplorerUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UIExplorerUnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 004D289E1AAF61C70097A701 /* RNTesterUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNTesterUnitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 1300627E1B59179B0043FE5A /* RCTGzipTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTGzipTests.m; sourceTree = ""; }; 13129DD31C85F87C007D611C /* RCTModuleInitNotificationRaceTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModuleInitNotificationRaceTests.m; sourceTree = ""; }; - 13417FE31AA91428003F314A /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../../Libraries/Image/RCTImage.xcodeproj; sourceTree = ""; }; - 13417FEA1AA914B8003F314A /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../../Libraries/Text/RCTText.xcodeproj; sourceTree = ""; }; - 134180261AA91779003F314A /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../../Libraries/Network/RCTNetwork.xcodeproj; sourceTree = ""; }; - 134454551AAFCAAE003F0779 /* RCTAdSupport.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAdSupport.xcodeproj; path = ../../Libraries/AdSupport/RCTAdSupport.xcodeproj; sourceTree = ""; }; - 134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = ../../Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = ""; }; + 13417FE31AA91428003F314A /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../Libraries/Image/RCTImage.xcodeproj; sourceTree = ""; }; + 13417FEA1AA914B8003F314A /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../Libraries/Text/RCTText.xcodeproj; sourceTree = ""; }; + 134180261AA91779003F314A /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../Libraries/Network/RCTNetwork.xcodeproj; sourceTree = ""; }; + 134454551AAFCAAE003F0779 /* RCTAdSupport.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAdSupport.xcodeproj; path = ../Libraries/AdSupport/RCTAdSupport.xcodeproj; sourceTree = ""; }; + 134A8A201AACED6A00945AAE /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = ../Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = ""; }; 134CB9291C85A38800265FA6 /* RCTModuleInitTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModuleInitTests.m; sourceTree = ""; }; 138D6A161B53CD440074A87E /* RCTShadowViewTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTShadowViewTests.m; sourceTree = ""; }; - 138DEE021B9EDDDB007F4EA5 /* RCTCameraRoll.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTCameraRoll.xcodeproj; path = ../../Libraries/CameraRoll/RCTCameraRoll.xcodeproj; sourceTree = ""; }; + 138DEE021B9EDDDB007F4EA5 /* RCTCameraRoll.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTCameraRoll.xcodeproj; path = ../Libraries/CameraRoll/RCTCameraRoll.xcodeproj; sourceTree = ""; }; 1393D0371B68CD1300E1B601 /* RCTModuleMethodTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTModuleMethodTests.m; sourceTree = ""; }; - 139FDECA1B0651EA00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = ../../Libraries/WebSocket/RCTWebSocket.xcodeproj; sourceTree = ""; }; - 13B07F961A680F5B00A75B9A /* UIExplorer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UIExplorer.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = UIExplorer/AppDelegate.h; sourceTree = ""; }; - 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = UIExplorer/AppDelegate.m; sourceTree = ""; }; + 139FDECA1B0651EA00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = ../Libraries/WebSocket/RCTWebSocket.xcodeproj; sourceTree = ""; }; + 13B07F961A680F5B00A75B9A /* RNTester.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RNTester.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RNTester/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = RNTester/AppDelegate.m; sourceTree = ""; }; 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = UIExplorer/Images.xcassets; sourceTree = ""; }; - 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = UIExplorer/Info.plist; sourceTree = ""; }; - 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = UIExplorer/main.m; sourceTree = ""; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNTester/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNTester/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNTester/main.m; sourceTree = ""; }; 13B6C1A21C34225900D3FAF5 /* RCTURLUtilsTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTURLUtilsTests.m; sourceTree = ""; }; 13BCE84E1C9C209600DD7AAD /* RCTComponentPropsTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTComponentPropsTests.m; sourceTree = ""; }; - 13CC9D481AEED2B90020D1C2 /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = ../../Libraries/Settings/RCTSettings.xcodeproj; sourceTree = ""; }; + 13CC9D481AEED2B90020D1C2 /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = ../Libraries/Settings/RCTSettings.xcodeproj; sourceTree = ""; }; 13DB03471B5D2ED500C27245 /* RCTJSONTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJSONTests.m; sourceTree = ""; }; 13DF61B51B67A45000EDB188 /* RCTMethodArgumentTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTMethodArgumentTests.m; sourceTree = ""; }; - 13E5019C1D07A502005F35D8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = ../../Libraries/NativeAnimation/RCTAnimation.xcodeproj; sourceTree = ""; }; + 13E5019C1D07A502005F35D8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = ../Libraries/NativeAnimation/RCTAnimation.xcodeproj; sourceTree = ""; }; 143BC57E1B21E18100462512 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 143BC5951B21E3E100462512 /* UIExplorerIntegrationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UIExplorerIntegrationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 143BC5951B21E3E100462512 /* RNTesterIntegrationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNTesterIntegrationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 143BC5981B21E3E100462512 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 143BC5A01B21E45C00462512 /* UIExplorerSnapshotTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIExplorerSnapshotTests.m; sourceTree = ""; }; + 143BC5A01B21E45C00462512 /* RNTesterSnapshotTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNTesterSnapshotTests.m; sourceTree = ""; }; 144D21231B2204C5006DB32B /* RCTImageUtilTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTImageUtilTests.m; sourceTree = ""; }; 1497CFA41B21F5E400C1F8F2 /* RCTAllocationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAllocationTests.m; sourceTree = ""; }; 1497CFA51B21F5E400C1F8F2 /* RCTBridgeTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTBridgeTests.m; sourceTree = ""; }; @@ -426,7 +426,7 @@ 1497CFA81B21F5E400C1F8F2 /* RCTFontTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTFontTests.m; sourceTree = ""; }; 1497CFA91B21F5E400C1F8F2 /* RCTEventDispatcherTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTEventDispatcherTests.m; sourceTree = ""; }; 1497CFAB1B21F5E400C1F8F2 /* RCTUIManagerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUIManagerTests.m; sourceTree = ""; }; - 14AADEFF1AC3DB95002390C9 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = ../../React/React.xcodeproj; sourceTree = ""; }; + 14AADEFF1AC3DB95002390C9 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = ../React/React.xcodeproj; sourceTree = ""; }; 14D6D7021B220AE3001FB087 /* NSNotificationCenter+OCMAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSNotificationCenter+OCMAdditions.h"; sourceTree = ""; }; 14D6D7031B220AE3001FB087 /* OCMArg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMArg.h; sourceTree = ""; }; 14D6D7041B220AE3001FB087 /* OCMConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMConstraint.h; sourceTree = ""; }; @@ -437,39 +437,39 @@ 14D6D7091B220AE3001FB087 /* OCMRecorder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMRecorder.h; sourceTree = ""; }; 14D6D70A1B220AE3001FB087 /* OCMStubRecorder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCMStubRecorder.h; sourceTree = ""; }; 14D6D7101B220EB3001FB087 /* libOCMock.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libOCMock.a; sourceTree = ""; }; - 14DC67E71AB71876001358AB /* RCTPushNotification.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTPushNotification.xcodeproj; path = ../../Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj; sourceTree = ""; }; - 14E0EEC81AB118F7000DECC3 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = ../../Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj; sourceTree = ""; }; + 14DC67E71AB71876001358AB /* RCTPushNotification.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTPushNotification.xcodeproj; path = ../Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj; sourceTree = ""; }; + 14E0EEC81AB118F7000DECC3 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = ../Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj; sourceTree = ""; }; 192F69B51E82409A008692C7 /* RCTAnimationUtilsTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTAnimationUtilsTests.m; sourceTree = ""; }; 192F69B61E82409A008692C7 /* RCTConvert_YGValueTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTConvert_YGValueTests.m; sourceTree = ""; }; 192F69B71E82409A008692C7 /* RCTNativeAnimatedNodesManagerTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTNativeAnimatedNodesManagerTests.m; sourceTree = ""; }; - 272E6B3B1BEA849E001FCF37 /* UpdatePropertiesExampleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UpdatePropertiesExampleView.h; path = UIExplorer/NativeExampleViews/UpdatePropertiesExampleView.h; sourceTree = ""; }; - 272E6B3C1BEA849E001FCF37 /* UpdatePropertiesExampleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = UpdatePropertiesExampleView.m; path = UIExplorer/NativeExampleViews/UpdatePropertiesExampleView.m; sourceTree = ""; }; + 272E6B3B1BEA849E001FCF37 /* UpdatePropertiesExampleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UpdatePropertiesExampleView.h; path = RNTester/NativeExampleViews/UpdatePropertiesExampleView.h; sourceTree = ""; }; + 272E6B3C1BEA849E001FCF37 /* UpdatePropertiesExampleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = UpdatePropertiesExampleView.m; path = RNTester/NativeExampleViews/UpdatePropertiesExampleView.m; sourceTree = ""; }; 27B885551BED29AF00008352 /* RCTRootViewIntegrationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTRootViewIntegrationTests.m; sourceTree = ""; }; - 27F441E81BEBE5030039B79C /* FlexibleSizeExampleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FlexibleSizeExampleView.m; path = UIExplorer/NativeExampleViews/FlexibleSizeExampleView.m; sourceTree = ""; }; - 27F441EA1BEBE5030039B79C /* FlexibleSizeExampleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FlexibleSizeExampleView.h; path = UIExplorer/NativeExampleViews/FlexibleSizeExampleView.h; sourceTree = ""; }; - 2D4624E01DA2EA6900C74D09 /* UIExplorer-tvOSIntegrationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UIExplorer-tvOSIntegrationTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 2DD323901DA2DD8A000FE1B8 /* UIExplorer-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "UIExplorer-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 27F441E81BEBE5030039B79C /* FlexibleSizeExampleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FlexibleSizeExampleView.m; path = RNTester/NativeExampleViews/FlexibleSizeExampleView.m; sourceTree = ""; }; + 27F441EA1BEBE5030039B79C /* FlexibleSizeExampleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FlexibleSizeExampleView.h; path = RNTester/NativeExampleViews/FlexibleSizeExampleView.h; sourceTree = ""; }; + 2D4624E01DA2EA6900C74D09 /* RNTester-tvOSIntegrationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "RNTester-tvOSIntegrationTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 2DD323901DA2DD8A000FE1B8 /* RNTester-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RNTester-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2DD323A01DA2DD8B000FE1B8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 2DD323A51DA2DD8B000FE1B8 /* UIExplorer-tvOSUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UIExplorer-tvOSUnitTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 357858F81B28D2C400341EDB /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = ../../Libraries/LinkingIOS/RCTLinking.xcodeproj; sourceTree = ""; }; + 2DD323A51DA2DD8B000FE1B8 /* RNTester-tvOSUnitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "RNTester-tvOSUnitTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 357858F81B28D2C400341EDB /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = ../Libraries/LinkingIOS/RCTLinking.xcodeproj; sourceTree = ""; }; 39AA31A31DC1DFDC000F7EBB /* RCTUnicodeDecodeTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUnicodeDecodeTests.m; sourceTree = ""; }; - 3D13F83E1D6F6AE000E69E0E /* UIExplorerBundle.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UIExplorerBundle.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; + 3D13F83E1D6F6AE000E69E0E /* RNTesterBundle.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNTesterBundle.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 3D13F8401D6F6AE000E69E0E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = ../Info.plist; sourceTree = ""; }; 3D13F8441D6F6AF200E69E0E /* ImageInBundle.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ImageInBundle.png; sourceTree = ""; }; 3D13F8451D6F6AF200E69E0E /* OtherImages.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = OtherImages.xcassets; sourceTree = ""; }; 3D299BAE1D33EBFA00FA1057 /* RCTLoggingTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTLoggingTests.m; sourceTree = ""; }; - 3D2AFAF41D646CF80089D1A3 /* legacy_image@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "legacy_image@2x.png"; path = "UIExplorer/legacy_image@2x.png"; sourceTree = ""; }; - 3DB99D0B1BA0340600302749 /* UIExplorerIntegrationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIExplorerIntegrationTests.m; sourceTree = ""; }; - 3DD981D51D33C6FB007DC7BE /* UIExplorerUnitTestsBundle.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = UIExplorerUnitTestsBundle.js; sourceTree = ""; }; - 58005BE41ABA80530062E044 /* RCTTest.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTTest.xcodeproj; path = ../../Libraries/RCTTest/RCTTest.xcodeproj; sourceTree = ""; }; + 3D2AFAF41D646CF80089D1A3 /* legacy_image@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "legacy_image@2x.png"; path = "RNTester/legacy_image@2x.png"; sourceTree = ""; }; + 3DB99D0B1BA0340600302749 /* RNTesterIntegrationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNTesterIntegrationTests.m; sourceTree = ""; }; + 3DD981D51D33C6FB007DC7BE /* RNTesterUnitTestsBundle.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = RNTesterUnitTestsBundle.js; sourceTree = ""; }; + 58005BE41ABA80530062E044 /* RCTTest.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTTest.xcodeproj; path = ../Libraries/RCTTest/RCTTest.xcodeproj; sourceTree = ""; }; 68FF44371CF6111500720EFD /* RCTBundleURLProviderTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTBundleURLProviderTests.m; sourceTree = ""; }; 83636F8E1B53F22C009F943E /* RCTUIManagerScenarioTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTUIManagerScenarioTests.m; sourceTree = ""; }; 8385CEF41B873B5C00C6273E /* RCTImageLoaderTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTImageLoaderTests.m; sourceTree = ""; }; 8385CF031B87479200C6273E /* RCTImageLoaderHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTImageLoaderHelpers.m; sourceTree = ""; }; 8385CF051B8747A000C6273E /* RCTImageLoaderHelpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTImageLoaderHelpers.h; sourceTree = ""; }; BC9C033F1DC9F1D600B1C635 /* RCTDevMenuTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTDevMenuTests.m; sourceTree = ""; }; - C654F0B21EB34A73000B7A9A /* UIExplorerTestModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UIExplorerTestModule.m; sourceTree = ""; }; - D85B82911AB6D5CE003F4FE2 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = ../../Libraries/Vibration/RCTVibration.xcodeproj; sourceTree = ""; }; + C654F0B21EB34A73000B7A9A /* RNTesterTestModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNTesterTestModule.m; sourceTree = ""; }; + D85B82911AB6D5CE003F4FE2 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = ../Libraries/Vibration/RCTVibration.xcodeproj; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -656,7 +656,7 @@ name = Products; sourceTree = ""; }; - 13B07FAE1A68108700A75B9A /* UIExplorer */ = { + 13B07FAE1A68108700A75B9A /* RNTester */ = { isa = PBXGroup; children = ( 272E6B3A1BEA846C001FCF37 /* NativeExampleViews */, @@ -667,7 +667,7 @@ 13B07FB71A68108700A75B9A /* main.m */, 1323F18D1C04ABAC0091BED0 /* Supporting Files */, ); - name = UIExplorer; + name = RNTester; sourceTree = ""; }; 13E5019D1D07A502005F35D8 /* Products */ = { @@ -679,7 +679,7 @@ name = Products; sourceTree = ""; }; - 143BC57C1B21E18100462512 /* UIExplorerUnitTests */ = { + 143BC57C1B21E18100462512 /* RNTesterUnitTests */ = { isa = PBXGroup; children = ( 192F69B51E82409A008692C7 /* RCTAnimationUtilsTests.m */, @@ -709,25 +709,25 @@ 13BCE84E1C9C209600DD7AAD /* RCTComponentPropsTests.m */, 39AA31A31DC1DFDC000F7EBB /* RCTUnicodeDecodeTests.m */, 143BC57E1B21E18100462512 /* Info.plist */, - 3DD981D51D33C6FB007DC7BE /* UIExplorerUnitTestsBundle.js */, + 3DD981D51D33C6FB007DC7BE /* RNTesterUnitTestsBundle.js */, 14D6D7101B220EB3001FB087 /* libOCMock.a */, 14D6D7011B220AE3001FB087 /* OCMock */, ); - path = UIExplorerUnitTests; + path = RNTesterUnitTests; sourceTree = ""; }; - 143BC5961B21E3E100462512 /* UIExplorerIntegrationTests */ = { + 143BC5961B21E3E100462512 /* RNTesterIntegrationTests */ = { isa = PBXGroup; children = ( 3D299BAE1D33EBFA00FA1057 /* RCTLoggingTests.m */, 27B885551BED29AF00008352 /* RCTRootViewIntegrationTests.m */, - 3DB99D0B1BA0340600302749 /* UIExplorerIntegrationTests.m */, - 143BC5A01B21E45C00462512 /* UIExplorerSnapshotTests.m */, - C654F0B21EB34A73000B7A9A /* UIExplorerTestModule.m */, + 3DB99D0B1BA0340600302749 /* RNTesterIntegrationTests.m */, + 143BC5A01B21E45C00462512 /* RNTesterSnapshotTests.m */, + C654F0B21EB34A73000B7A9A /* RNTesterTestModule.m */, 83636F8E1B53F22C009F943E /* RCTUIManagerScenarioTests.m */, 143BC5971B21E3E100462512 /* Supporting Files */, ); - path = UIExplorerIntegrationTests; + path = RNTesterIntegrationTests; sourceTree = ""; }; 143BC5971B21E3E100462512 /* Supporting Files */ = { @@ -806,12 +806,12 @@ name = NativeExampleViews; sourceTree = ""; }; - 2DD323911DA2DD8B000FE1B8 /* UIExplorer-tvOS */ = { + 2DD323911DA2DD8B000FE1B8 /* RNTester-tvOS */ = { isa = PBXGroup; children = ( 2DD323A01DA2DD8B000FE1B8 /* Info.plist */, ); - path = "UIExplorer-tvOS"; + path = "RNTester-tvOS"; sourceTree = ""; }; 357858F91B28D2C400341EDB /* Products */ = { @@ -823,15 +823,15 @@ name = Products; sourceTree = ""; }; - 3D13F83F1D6F6AE000E69E0E /* UIExplorerBundle */ = { + 3D13F83F1D6F6AE000E69E0E /* RNTesterBundle */ = { isa = PBXGroup; children = ( 3D13F8401D6F6AE000E69E0E /* Info.plist */, 3D13F8441D6F6AF200E69E0E /* ImageInBundle.png */, 3D13F8451D6F6AF200E69E0E /* OtherImages.xcassets */, ); - name = UIExplorerBundle; - path = UIExplorer/UIExplorerBundle; + name = RNTesterBundle; + path = RNTester/RNTesterBundle; sourceTree = ""; }; 58005BE51ABA80530062E044 /* Products */ = { @@ -855,13 +855,13 @@ 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( - 13B07FAE1A68108700A75B9A /* UIExplorer */, + 13B07FAE1A68108700A75B9A /* RNTester */, 1316A21D1AA397F400C0188E /* Libraries */, - 143BC57C1B21E18100462512 /* UIExplorerUnitTests */, - 143BC5961B21E3E100462512 /* UIExplorerIntegrationTests */, - 3D13F83F1D6F6AE000E69E0E /* UIExplorerBundle */, + 143BC57C1B21E18100462512 /* RNTesterUnitTests */, + 143BC5961B21E3E100462512 /* RNTesterIntegrationTests */, + 3D13F83F1D6F6AE000E69E0E /* RNTesterBundle */, 14D6D6EA1B2205C0001FB087 /* OCMock */, - 2DD323911DA2DD8B000FE1B8 /* UIExplorer-tvOS */, + 2DD323911DA2DD8B000FE1B8 /* RNTester-tvOS */, 83CBBA001A601CBA00E9B192 /* Products */, ); indentWidth = 2; @@ -871,13 +871,13 @@ 83CBBA001A601CBA00E9B192 /* Products */ = { isa = PBXGroup; children = ( - 13B07F961A680F5B00A75B9A /* UIExplorer.app */, - 004D289E1AAF61C70097A701 /* UIExplorerUnitTests.xctest */, - 143BC5951B21E3E100462512 /* UIExplorerIntegrationTests.xctest */, - 3D13F83E1D6F6AE000E69E0E /* UIExplorerBundle.bundle */, - 2DD323901DA2DD8A000FE1B8 /* UIExplorer-tvOS.app */, - 2DD323A51DA2DD8B000FE1B8 /* UIExplorer-tvOSUnitTests.xctest */, - 2D4624E01DA2EA6900C74D09 /* UIExplorer-tvOSIntegrationTests.xctest */, + 13B07F961A680F5B00A75B9A /* RNTester.app */, + 004D289E1AAF61C70097A701 /* RNTesterUnitTests.xctest */, + 143BC5951B21E3E100462512 /* RNTesterIntegrationTests.xctest */, + 3D13F83E1D6F6AE000E69E0E /* RNTesterBundle.bundle */, + 2DD323901DA2DD8A000FE1B8 /* RNTester-tvOS.app */, + 2DD323A51DA2DD8B000FE1B8 /* RNTester-tvOSUnitTests.xctest */, + 2D4624E01DA2EA6900C74D09 /* RNTester-tvOSIntegrationTests.xctest */, ); name = Products; sourceTree = ""; @@ -893,9 +893,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 004D289D1AAF61C70097A701 /* UIExplorerUnitTests */ = { + 004D289D1AAF61C70097A701 /* RNTesterUnitTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 004D28AD1AAF61C70097A701 /* Build configuration list for PBXNativeTarget "UIExplorerUnitTests" */; + buildConfigurationList = 004D28AD1AAF61C70097A701 /* Build configuration list for PBXNativeTarget "RNTesterUnitTests" */; buildPhases = ( 004D289A1AAF61C70097A701 /* Sources */, 004D289B1AAF61C70097A701 /* Frameworks */, @@ -905,14 +905,14 @@ ); dependencies = ( ); - name = UIExplorerUnitTests; - productName = UIExplorerTests; - productReference = 004D289E1AAF61C70097A701 /* UIExplorerUnitTests.xctest */; + name = RNTesterUnitTests; + productName = RNTesterTests; + productReference = 004D289E1AAF61C70097A701 /* RNTesterUnitTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; - 13B07F861A680F5B00A75B9A /* UIExplorer */ = { + 13B07F861A680F5B00A75B9A /* RNTester */ = { isa = PBXNativeTarget; - buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "UIExplorer" */; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNTester" */; buildPhases = ( 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, @@ -924,14 +924,14 @@ dependencies = ( 3D13F84C1D6F6B5F00E69E0E /* PBXTargetDependency */, ); - name = UIExplorer; + name = RNTester; productName = "Hello World"; - productReference = 13B07F961A680F5B00A75B9A /* UIExplorer.app */; + productReference = 13B07F961A680F5B00A75B9A /* RNTester.app */; productType = "com.apple.product-type.application"; }; - 143BC5941B21E3E100462512 /* UIExplorerIntegrationTests */ = { + 143BC5941B21E3E100462512 /* RNTesterIntegrationTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 143BC59D1B21E3E100462512 /* Build configuration list for PBXNativeTarget "UIExplorerIntegrationTests" */; + buildConfigurationList = 143BC59D1B21E3E100462512 /* Build configuration list for PBXNativeTarget "RNTesterIntegrationTests" */; buildPhases = ( 143BC5911B21E3E100462512 /* Sources */, 143BC5921B21E3E100462512 /* Frameworks */, @@ -942,14 +942,14 @@ dependencies = ( 143BC59C1B21E3E100462512 /* PBXTargetDependency */, ); - name = UIExplorerIntegrationTests; - productName = UIExplorerIntegrationTests; - productReference = 143BC5951B21E3E100462512 /* UIExplorerIntegrationTests.xctest */; + name = RNTesterIntegrationTests; + productName = RNTesterIntegrationTests; + productReference = 143BC5951B21E3E100462512 /* RNTesterIntegrationTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; - 2D4624C11DA2EA6900C74D09 /* UIExplorer-tvOSIntegrationTests */ = { + 2D4624C11DA2EA6900C74D09 /* RNTester-tvOSIntegrationTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 2D4624DD1DA2EA6900C74D09 /* Build configuration list for PBXNativeTarget "UIExplorer-tvOSIntegrationTests" */; + buildConfigurationList = 2D4624DD1DA2EA6900C74D09 /* Build configuration list for PBXNativeTarget "RNTester-tvOSIntegrationTests" */; buildPhases = ( 2D4624C41DA2EA6900C74D09 /* Sources */, 2D4624D91DA2EA6900C74D09 /* Frameworks */, @@ -960,14 +960,14 @@ dependencies = ( 2D4624C21DA2EA6900C74D09 /* PBXTargetDependency */, ); - name = "UIExplorer-tvOSIntegrationTests"; - productName = "UIExplorer-tvOSUnitTests"; - productReference = 2D4624E01DA2EA6900C74D09 /* UIExplorer-tvOSIntegrationTests.xctest */; + name = "RNTester-tvOSIntegrationTests"; + productName = "RNTester-tvOSUnitTests"; + productReference = 2D4624E01DA2EA6900C74D09 /* RNTester-tvOSIntegrationTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; - 2DD3238F1DA2DD8A000FE1B8 /* UIExplorer-tvOS */ = { + 2DD3238F1DA2DD8A000FE1B8 /* RNTester-tvOS */ = { isa = PBXNativeTarget; - buildConfigurationList = 2DD323DA1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "UIExplorer-tvOS" */; + buildConfigurationList = 2DD323DA1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "RNTester-tvOS" */; buildPhases = ( 2DD3238C1DA2DD8A000FE1B8 /* Sources */, 2DD3238D1DA2DD8A000FE1B8 /* Frameworks */, @@ -978,14 +978,14 @@ ); dependencies = ( ); - name = "UIExplorer-tvOS"; - productName = "UIExplorer-tvOS"; - productReference = 2DD323901DA2DD8A000FE1B8 /* UIExplorer-tvOS.app */; + name = "RNTester-tvOS"; + productName = "RNTester-tvOS"; + productReference = 2DD323901DA2DD8A000FE1B8 /* RNTester-tvOS.app */; productType = "com.apple.product-type.application"; }; - 2DD323A41DA2DD8B000FE1B8 /* UIExplorer-tvOSUnitTests */ = { + 2DD323A41DA2DD8B000FE1B8 /* RNTester-tvOSUnitTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 2DD323DB1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "UIExplorer-tvOSUnitTests" */; + buildConfigurationList = 2DD323DB1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "RNTester-tvOSUnitTests" */; buildPhases = ( 2DD323A11DA2DD8B000FE1B8 /* Sources */, 2DD323A21DA2DD8B000FE1B8 /* Frameworks */, @@ -996,14 +996,14 @@ dependencies = ( 2DD323A71DA2DD8B000FE1B8 /* PBXTargetDependency */, ); - name = "UIExplorer-tvOSUnitTests"; - productName = "UIExplorer-tvOSUnitTests"; - productReference = 2DD323A51DA2DD8B000FE1B8 /* UIExplorer-tvOSUnitTests.xctest */; + name = "RNTester-tvOSUnitTests"; + productName = "RNTester-tvOSUnitTests"; + productReference = 2DD323A51DA2DD8B000FE1B8 /* RNTester-tvOSUnitTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; - 3D13F83D1D6F6AE000E69E0E /* UIExplorerBundle */ = { + 3D13F83D1D6F6AE000E69E0E /* RNTesterBundle */ = { isa = PBXNativeTarget; - buildConfigurationList = 3D13F8411D6F6AE000E69E0E /* Build configuration list for PBXNativeTarget "UIExplorerBundle" */; + buildConfigurationList = 3D13F8411D6F6AE000E69E0E /* Build configuration list for PBXNativeTarget "RNTesterBundle" */; buildPhases = ( 3D13F83A1D6F6AE000E69E0E /* Sources */, 3D13F83B1D6F6AE000E69E0E /* Frameworks */, @@ -1013,9 +1013,9 @@ ); dependencies = ( ); - name = UIExplorerBundle; - productName = UIExplorerBundle; - productReference = 3D13F83E1D6F6AE000E69E0E /* UIExplorerBundle.bundle */; + name = RNTesterBundle; + productName = RNTesterBundle; + productReference = 3D13F83E1D6F6AE000E69E0E /* RNTesterBundle.bundle */; productType = "com.apple.product-type.bundle"; }; /* End PBXNativeTarget section */ @@ -1048,7 +1048,7 @@ }; }; }; - buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "UIExplorer" */; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNTester" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -1123,13 +1123,13 @@ ); projectRoot = ""; targets = ( - 13B07F861A680F5B00A75B9A /* UIExplorer */, - 004D289D1AAF61C70097A701 /* UIExplorerUnitTests */, - 143BC5941B21E3E100462512 /* UIExplorerIntegrationTests */, - 3D13F83D1D6F6AE000E69E0E /* UIExplorerBundle */, - 2DD3238F1DA2DD8A000FE1B8 /* UIExplorer-tvOS */, - 2DD323A41DA2DD8B000FE1B8 /* UIExplorer-tvOSUnitTests */, - 2D4624C11DA2EA6900C74D09 /* UIExplorer-tvOSIntegrationTests */, + 13B07F861A680F5B00A75B9A /* RNTester */, + 004D289D1AAF61C70097A701 /* RNTesterUnitTests */, + 143BC5941B21E3E100462512 /* RNTesterIntegrationTests */, + 3D13F83D1D6F6AE000E69E0E /* RNTesterBundle */, + 2DD3238F1DA2DD8A000FE1B8 /* RNTester-tvOS */, + 2DD323A41DA2DD8B000FE1B8 /* RNTester-tvOSUnitTests */, + 2D4624C11DA2EA6900C74D09 /* RNTester-tvOSIntegrationTests */, ); }; /* End PBXProject section */ @@ -1373,7 +1373,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 3DD981D61D33C6FB007DC7BE /* UIExplorerUnitTestsBundle.js in Resources */, + 3DD981D61D33C6FB007DC7BE /* RNTesterUnitTestsBundle.js in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1382,7 +1382,7 @@ buildActionMask = 2147483647; files = ( 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, - 3D56F9F11D6F6E9B00F53A06 /* UIExplorerBundle.bundle in Resources */, + 3D56F9F11D6F6E9B00F53A06 /* RNTesterBundle.bundle in Resources */, 3D2AFAF51D646CF80089D1A3 /* legacy_image@2x.png in Resources */, 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, ); @@ -1416,7 +1416,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 2D4BD8E61DA2E20D005AC8A8 /* UIExplorerUnitTestsBundle.js in Resources */, + 2D4BD8E61DA2E20D005AC8A8 /* RNTesterUnitTestsBundle.js in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1443,7 +1443,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "export NODE_BINARY=node\n$SRCROOT/../../packager/react-native-xcode.sh Examples/UIExplorer/js/UIExplorerApp.ios.js"; + shellScript = "export NODE_BINARY=node\n$SRCROOT/../packager/react-native-xcode.sh RNTester/js/RNTesterApp.ios.js"; }; 68CD48B71D2BCB2C007E06A9 /* Run Script */ = { isa = PBXShellScriptBuildPhase; @@ -1457,7 +1457,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "export NODE_BINARY=node\n$SRCROOT/../../packager/react-native-xcode.sh Examples/UIExplorer/js/UIExplorerApp.ios.js"; + shellScript = "export NODE_BINARY=node\n$SRCROOT/../packager/react-native-xcode.sh RNTester/js/RNTesterApp.ios.js"; }; /* End PBXShellScriptBuildPhase section */ @@ -1509,11 +1509,11 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - C654F0B31EB34A73000B7A9A /* UIExplorerTestModule.m in Sources */, - 3DB99D0C1BA0340600302749 /* UIExplorerIntegrationTests.m in Sources */, + C654F0B31EB34A73000B7A9A /* RNTesterTestModule.m in Sources */, + 3DB99D0C1BA0340600302749 /* RNTesterIntegrationTests.m in Sources */, 83636F8F1B53F22C009F943E /* RCTUIManagerScenarioTests.m in Sources */, 3D299BAF1D33EBFA00FA1057 /* RCTLoggingTests.m in Sources */, - 143BC5A11B21E45C00462512 /* UIExplorerSnapshotTests.m in Sources */, + 143BC5A11B21E45C00462512 /* RNTesterSnapshotTests.m in Sources */, 27B885561BED29AF00008352 /* RCTRootViewIntegrationTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1522,11 +1522,11 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - C654F17E1EB34D24000B7A9A /* UIExplorerTestModule.m in Sources */, - 2D4624FC1DA2EAC300C74D09 /* UIExplorerIntegrationTests.m in Sources */, + C654F17E1EB34D24000B7A9A /* RNTesterTestModule.m in Sources */, + 2D4624FC1DA2EAC300C74D09 /* RNTesterIntegrationTests.m in Sources */, 2D4624FA1DA2EAC300C74D09 /* RCTLoggingTests.m in Sources */, 2D4624FE1DA2EAC300C74D09 /* RCTUIManagerScenarioTests.m in Sources */, - 2D4624FD1DA2EAC300C74D09 /* UIExplorerSnapshotTests.m in Sources */, + 2D4624FD1DA2EAC300C74D09 /* RNTesterSnapshotTests.m in Sources */, 2D4624FB1DA2EAC300C74D09 /* RCTRootViewIntegrationTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -1581,22 +1581,22 @@ /* Begin PBXTargetDependency section */ 143BC59C1B21E3E100462512 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 13B07F861A680F5B00A75B9A /* UIExplorer */; + target = 13B07F861A680F5B00A75B9A /* RNTester */; targetProxy = 143BC59B1B21E3E100462512 /* PBXContainerItemProxy */; }; 2D4624C21DA2EA6900C74D09 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 2DD3238F1DA2DD8A000FE1B8 /* UIExplorer-tvOS */; + target = 2DD3238F1DA2DD8A000FE1B8 /* RNTester-tvOS */; targetProxy = 2D4624C31DA2EA6900C74D09 /* PBXContainerItemProxy */; }; 2DD323A71DA2DD8B000FE1B8 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 2DD3238F1DA2DD8A000FE1B8 /* UIExplorer-tvOS */; + target = 2DD3238F1DA2DD8A000FE1B8 /* RNTester-tvOS */; targetProxy = 2DD323A61DA2DD8B000FE1B8 /* PBXContainerItemProxy */; }; 3D13F84C1D6F6B5F00E69E0E /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 3D13F83D1D6F6AE000E69E0E /* UIExplorerBundle */; + target = 3D13F83D1D6F6AE000E69E0E /* RNTesterBundle */; targetProxy = 3D13F84B1D6F6B5F00E69E0E /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -1608,7 +1608,7 @@ 13B07FB21A68108700A75B9A /* Base */, ); name = LaunchScreen.xib; - path = UIExplorer; + path = RNTester; sourceTree = ""; }; /* End PBXVariantGroup section */ @@ -1620,14 +1620,14 @@ GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)"; HEADER_SEARCH_PATHS = ( "$(inherited)", - "$(SRCROOT)/UIExplorerUnitTests", + "$(SRCROOT)/RNTesterUnitTests", ); - INFOPLIST_FILE = UIExplorerUnitTests/Info.plist; + INFOPLIST_FILE = RNTesterUnitTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/UIExplorerUnitTests", + "$(PROJECT_DIR)/RNTesterUnitTests", ); PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1639,14 +1639,14 @@ buildSettings = { HEADER_SEARCH_PATHS = ( "$(inherited)", - "$(SRCROOT)/UIExplorerUnitTests", + "$(SRCROOT)/RNTesterUnitTests", ); - INFOPLIST_FILE = UIExplorerUnitTests/Info.plist; + INFOPLIST_FILE = RNTesterUnitTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/UIExplorerUnitTests", + "$(PROJECT_DIR)/RNTesterUnitTests", ); PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1657,10 +1657,10 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "$(SRCROOT)/UIExplorer/Info.plist"; + INFOPLIST_FILE = "$(SRCROOT)/RNTester/Info.plist"; LIBRARY_SEARCH_PATHS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = com.facebook.react.uiapp; - PRODUCT_NAME = UIExplorer; + PRODUCT_NAME = RNTester; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -1670,10 +1670,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEVELOPMENT_TEAM = V9WTTPBFK9; - INFOPLIST_FILE = "$(SRCROOT)/UIExplorer/Info.plist"; + INFOPLIST_FILE = "$(SRCROOT)/RNTester/Info.plist"; LIBRARY_SEARCH_PATHS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = com.facebook.react.uiapp; - PRODUCT_NAME = UIExplorer; + PRODUCT_NAME = RNTester; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; @@ -1688,12 +1688,12 @@ "$(inherited)", "FB_REFERENCE_IMAGE_DIR=\"\\\"$(SOURCE_ROOT)/$(PROJECT_NAME)IntegrationTests/ReferenceImages\\\"\"", ); - INFOPLIST_FILE = UIExplorerIntegrationTests/Info.plist; + INFOPLIST_FILE = RNTesterIntegrationTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.React.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIExplorer.app/UIExplorer"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTester.app/RNTester"; }; name = Debug; }; @@ -1704,12 +1704,12 @@ COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = UIExplorerIntegrationTests/Info.plist; + INFOPLIST_FILE = RNTesterIntegrationTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.React.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIExplorer.app/UIExplorer"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTester.app/RNTester"; }; name = Release; }; @@ -1726,16 +1726,16 @@ "$(inherited)", "FB_REFERENCE_IMAGE_DIR=\"\\\"$(SOURCE_ROOT)/$(PROJECT_NAME)IntegrationTests/ReferenceImages\\\"\"", ); - INFOPLIST_FILE = UIExplorerIntegrationTests/Info.plist; + INFOPLIST_FILE = RNTesterIntegrationTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/UIExplorerUnitTests", + "$(PROJECT_DIR)/RNTesterUnitTests", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UIExplorer-tvOSIntegrationTests"; + PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNTester-tvOSIntegrationTests"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIExplorer-tvOS.app/UIExplorer-tvOS"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTester-tvOS.app/RNTester-tvOS"; TVOS_DEPLOYMENT_TARGET = 9.2; }; name = Debug; @@ -1750,16 +1750,16 @@ COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = UIExplorerIntegrationTests/Info.plist; + INFOPLIST_FILE = RNTesterIntegrationTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/UIExplorerUnitTests", + "$(PROJECT_DIR)/RNTesterUnitTests", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UIExplorer-tvOSIntegrationTests"; + PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNTester-tvOSIntegrationTests"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIExplorer-tvOS.app/UIExplorer-tvOS"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTester-tvOS.app/RNTester-tvOS"; TVOS_DEPLOYMENT_TARGET = 9.2; }; name = Release; @@ -1773,9 +1773,9 @@ CLANG_WARN_SUSPICIOUS_MOVES = YES; DEBUG_INFORMATION_FORMAT = dwarf; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "UIExplorer-tvOS/Info.plist"; + INFOPLIST_FILE = "RNTester-tvOS/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UIExplorer-tvOS"; + PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNTester-tvOS"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; TARGETED_DEVICE_FAMILY = 3; @@ -1793,9 +1793,9 @@ COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = "UIExplorer-tvOS/Info.plist"; + INFOPLIST_FILE = "RNTester-tvOS/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UIExplorer-tvOS"; + PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNTester-tvOS"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; TARGETED_DEVICE_FAMILY = 3; @@ -1814,18 +1814,18 @@ GCC_NO_COMMON_BLOCKS = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", - "$(SRCROOT)/UIExplorerUnitTests/**", + "$(SRCROOT)/RNTesterUnitTests/**", ); - INFOPLIST_FILE = UIExplorerUnitTests/Info.plist; + INFOPLIST_FILE = RNTesterUnitTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/UIExplorerUnitTests", + "$(PROJECT_DIR)/RNTesterUnitTests", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UIExplorer-tvOSUnitTests"; + PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNTester-tvOSUnitTests"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIExplorer-tvOS.app/UIExplorer-tvOS"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTester-tvOS.app/RNTester-tvOS"; TVOS_DEPLOYMENT_TARGET = 9.2; }; name = Debug; @@ -1842,18 +1842,18 @@ GCC_NO_COMMON_BLOCKS = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", - "$(SRCROOT)/UIExplorerUnitTests/**", + "$(SRCROOT)/RNTesterUnitTests/**", ); - INFOPLIST_FILE = UIExplorerUnitTests/Info.plist; + INFOPLIST_FILE = RNTesterUnitTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", - "$(PROJECT_DIR)/UIExplorerUnitTests", + "$(PROJECT_DIR)/RNTesterUnitTests", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.UIExplorer-tvOSUnitTests"; + PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.RNTester-tvOSUnitTests"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/UIExplorer-tvOS.app/UIExplorer-tvOS"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RNTester-tvOS.app/RNTester-tvOS"; TVOS_DEPLOYMENT_TARGET = 9.2; }; name = Release; @@ -1864,8 +1864,8 @@ CLANG_ANALYZER_NONNULL = YES; COMBINE_HIDPI_IMAGES = YES; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = UIExplorer/UIExplorerBundle/Info.plist; - PRODUCT_BUNDLE_IDENTIFIER = com.facebook.UIExplorerBundle; + INFOPLIST_FILE = RNTester/RNTesterBundle/Info.plist; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.RNTesterBundle; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; WRAPPER_EXTENSION = bundle; @@ -1878,8 +1878,8 @@ CLANG_ANALYZER_NONNULL = YES; COMBINE_HIDPI_IMAGES = YES; GCC_NO_COMMON_BLOCKS = YES; - INFOPLIST_FILE = UIExplorer/UIExplorerBundle/Info.plist; - PRODUCT_BUNDLE_IDENTIFIER = com.facebook.UIExplorerBundle; + INFOPLIST_FILE = RNTester/RNTesterBundle/Info.plist; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.RNTesterBundle; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; WRAPPER_EXTENSION = bundle; @@ -2018,7 +2018,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 004D28AD1AAF61C70097A701 /* Build configuration list for PBXNativeTarget "UIExplorerUnitTests" */ = { + 004D28AD1AAF61C70097A701 /* Build configuration list for PBXNativeTarget "RNTesterUnitTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 004D28A61AAF61C70097A701 /* Debug */, @@ -2027,7 +2027,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "UIExplorer" */ = { + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RNTester" */ = { isa = XCConfigurationList; buildConfigurations = ( 13B07F941A680F5B00A75B9A /* Debug */, @@ -2036,7 +2036,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 143BC59D1B21E3E100462512 /* Build configuration list for PBXNativeTarget "UIExplorerIntegrationTests" */ = { + 143BC59D1B21E3E100462512 /* Build configuration list for PBXNativeTarget "RNTesterIntegrationTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 143BC59E1B21E3E100462512 /* Debug */, @@ -2045,7 +2045,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2D4624DD1DA2EA6900C74D09 /* Build configuration list for PBXNativeTarget "UIExplorer-tvOSIntegrationTests" */ = { + 2D4624DD1DA2EA6900C74D09 /* Build configuration list for PBXNativeTarget "RNTester-tvOSIntegrationTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 2D4624DE1DA2EA6900C74D09 /* Debug */, @@ -2054,7 +2054,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2DD323DA1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "UIExplorer-tvOS" */ = { + 2DD323DA1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "RNTester-tvOS" */ = { isa = XCConfigurationList; buildConfigurations = ( 2DD323AC1DA2DD8B000FE1B8 /* Debug */, @@ -2063,7 +2063,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2DD323DB1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "UIExplorer-tvOSUnitTests" */ = { + 2DD323DB1DA2DD8B000FE1B8 /* Build configuration list for PBXNativeTarget "RNTester-tvOSUnitTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 2DD323AE1DA2DD8B000FE1B8 /* Debug */, @@ -2072,7 +2072,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 3D13F8411D6F6AE000E69E0E /* Build configuration list for PBXNativeTarget "UIExplorerBundle" */ = { + 3D13F8411D6F6AE000E69E0E /* Build configuration list for PBXNativeTarget "RNTesterBundle" */ = { isa = XCConfigurationList; buildConfigurations = ( 3D13F8421D6F6AE000E69E0E /* Debug */, @@ -2081,7 +2081,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "UIExplorer" */ = { + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RNTester" */ = { isa = XCConfigurationList; buildConfigurations = ( 83CBBA201A601CBA00E9B192 /* Debug */, diff --git a/Examples/UIExplorer/UIExplorer.xcodeproj/xcshareddata/xcschemes/UIExplorer-tvOS.xcscheme b/RNTester/RNTester.xcodeproj/xcshareddata/xcschemes/RNTester-tvOS.xcscheme similarity index 77% rename from Examples/UIExplorer/UIExplorer.xcodeproj/xcshareddata/xcschemes/UIExplorer-tvOS.xcscheme rename to RNTester/RNTester.xcodeproj/xcshareddata/xcschemes/RNTester-tvOS.xcscheme index 5cb85ce16..95e17856e 100644 --- a/Examples/UIExplorer/UIExplorer.xcodeproj/xcshareddata/xcschemes/UIExplorer-tvOS.xcscheme +++ b/RNTester/RNTester.xcodeproj/xcshareddata/xcschemes/RNTester-tvOS.xcscheme @@ -17,7 +17,7 @@ BlueprintIdentifier = "2D2A28121D9B038B00D4039D" BuildableName = "libReact.a" BlueprintName = "React-tvOS" - ReferencedContainer = "container:../../React/React.xcodeproj"> + ReferencedContainer = "container:../React/React.xcodeproj"> + BuildableName = "RNTester-tvOS.app" + BlueprintName = "RNTester-tvOS" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -47,9 +47,9 @@ + BuildableName = "RNTester-tvOSUnitTests.xctest" + BlueprintName = "RNTester-tvOSUnitTests" + ReferencedContainer = "container:RNTester.xcodeproj"> + BuildableName = "RNTester-tvOSIntegrationTests.xctest" + BlueprintName = "RNTester-tvOSIntegrationTests" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -67,9 +67,9 @@ + BuildableName = "RNTester-tvOS.app" + BlueprintName = "RNTester-tvOS" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -90,9 +90,9 @@ + BuildableName = "RNTester-tvOS.app" + BlueprintName = "RNTester-tvOS" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -116,9 +116,9 @@ + BuildableName = "RNTester-tvOS.app" + BlueprintName = "RNTester-tvOS" + ReferencedContainer = "container:RNTester.xcodeproj"> diff --git a/Examples/UIExplorer/UIExplorer.xcodeproj/xcshareddata/xcschemes/UIExplorer.xcscheme b/RNTester/RNTester.xcodeproj/xcshareddata/xcschemes/RNTester.xcscheme similarity index 75% rename from Examples/UIExplorer/UIExplorer.xcodeproj/xcshareddata/xcschemes/UIExplorer.xcscheme rename to RNTester/RNTester.xcodeproj/xcshareddata/xcschemes/RNTester.xcscheme index 88813411b..93f81fdc1 100644 --- a/Examples/UIExplorer/UIExplorer.xcodeproj/xcshareddata/xcschemes/UIExplorer.xcscheme +++ b/RNTester/RNTester.xcodeproj/xcshareddata/xcschemes/RNTester.xcscheme @@ -17,7 +17,7 @@ BlueprintIdentifier = "83CBBA2D1A601D0E00E9B192" BuildableName = "libReact.a" BlueprintName = "React" - ReferencedContainer = "container:../../React/React.xcodeproj"> + ReferencedContainer = "container:../React/React.xcodeproj"> + BuildableName = "RNTesterBundle.bundle" + BlueprintName = "RNTesterBundle" + ReferencedContainer = "container:RNTester.xcodeproj"> + BuildableName = "RNTester.app" + BlueprintName = "RNTester" + ReferencedContainer = "container:RNTester.xcodeproj"> + BuildableName = "RNTesterUnitTests.xctest" + BlueprintName = "RNTesterUnitTests" + ReferencedContainer = "container:RNTester.xcodeproj"> + BuildableName = "RNTesterIntegrationTests.xctest" + BlueprintName = "RNTesterIntegrationTests" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -89,9 +89,9 @@ + BuildableName = "RNTesterUnitTests.xctest" + BlueprintName = "RNTesterUnitTests" + ReferencedContainer = "container:RNTester.xcodeproj"> + BuildableName = "RNTesterIntegrationTests.xctest" + BlueprintName = "RNTesterIntegrationTests" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -109,9 +109,9 @@ + BuildableName = "RNTester.app" + BlueprintName = "RNTester" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -132,9 +132,9 @@ + BuildableName = "RNTester.app" + BlueprintName = "RNTester" + ReferencedContainer = "container:RNTester.xcodeproj"> @@ -158,9 +158,9 @@ + BuildableName = "RNTester.app" + BlueprintName = "RNTester" + ReferencedContainer = "container:RNTester.xcodeproj"> diff --git a/RNTester/RNTester/AppDelegate.h b/RNTester/RNTester/AppDelegate.h new file mode 100644 index 000000000..64cd15e5a --- /dev/null +++ b/RNTester/RNTester/AppDelegate.h @@ -0,0 +1,20 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + +#import + +@class RCTBridge; + +@interface AppDelegate : UIResponder + +@property (nonatomic, strong) UIWindow *window; +@property (nonatomic, readonly) RCTBridge *bridge; + +@end diff --git a/Examples/UIExplorer/UIExplorer/AppDelegate.m b/RNTester/RNTester/AppDelegate.m similarity index 82% rename from Examples/UIExplorer/UIExplorer/AppDelegate.m rename to RNTester/RNTester/AppDelegate.m index 74eb5042a..b09747b5a 100644 --- a/Examples/UIExplorer/UIExplorer/AppDelegate.m +++ b/RNTester/RNTester/AppDelegate.m @@ -1,15 +1,11 @@ /** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. * - * Facebook reserves all rights not expressly granted. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import "AppDelegate.h" @@ -39,11 +35,11 @@ NSDictionary *initProps = nil; NSString *_routeUri = [[NSUserDefaults standardUserDefaults] stringForKey:@"route"]; if (_routeUri) { - initProps = @{@"exampleFromAppetizeParams": [NSString stringWithFormat:@"rnuiexplorer://example/%@Example", _routeUri]}; + initProps = @{@"exampleFromAppetizeParams": [NSString stringWithFormat:@"rntester://example/%@Example", _routeUri]}; } RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:_bridge - moduleName:@"UIExplorerApp" + moduleName:@"RNTesterApp" initialProperties:initProps]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; @@ -56,7 +52,7 @@ - (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge { - return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"Examples/UIExplorer/js/UIExplorerApp.ios" + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"RNTester/js/RNTesterApp.ios" fallbackResource:nil]; } diff --git a/Examples/UIExplorer/UIExplorer/Base.lproj/LaunchScreen.xib b/RNTester/RNTester/Base.lproj/LaunchScreen.xib similarity index 93% rename from Examples/UIExplorer/UIExplorer/Base.lproj/LaunchScreen.xib rename to RNTester/RNTester/Base.lproj/LaunchScreen.xib index 0556e6641..d8d6ba0a6 100644 --- a/Examples/UIExplorer/UIExplorer/Base.lproj/LaunchScreen.xib +++ b/RNTester/RNTester/Base.lproj/LaunchScreen.xib @@ -19,7 +19,7 @@ - - + - + Click me @@ -150,15 +138,15 @@ class AccessibilityAndroidExample extends React.Component { Clicked {this.state.count} times - + - + The screen reader is {this.state.screenReaderEnabled ? 'enabled' : 'disabled'}. - + - + - + - + ); } } diff --git a/Examples/UIExplorer/js/AccessibilityIOSExample.js b/RNTester/js/AccessibilityIOSExample.js similarity index 79% rename from Examples/UIExplorer/js/AccessibilityIOSExample.js rename to RNTester/js/AccessibilityIOSExample.js index b36a31238..e21772dcf 100644 --- a/Examples/UIExplorer/js/AccessibilityIOSExample.js +++ b/RNTester/js/AccessibilityIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule AccessibilityIOSExample */ diff --git a/Examples/UIExplorer/js/ActionSheetIOSExample.js b/RNTester/js/ActionSheetIOSExample.js similarity index 87% rename from Examples/UIExplorer/js/ActionSheetIOSExample.js rename to RNTester/js/ActionSheetIOSExample.js index fe6084acd..c89478668 100644 --- a/Examples/UIExplorer/js/ActionSheetIOSExample.js +++ b/RNTester/js/ActionSheetIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ActionSheetIOSExample */ diff --git a/Examples/UIExplorer/js/ActivityIndicatorExample.js b/RNTester/js/ActivityIndicatorExample.js similarity index 85% rename from Examples/UIExplorer/js/ActivityIndicatorExample.js rename to RNTester/js/ActivityIndicatorExample.js index 2d2c2bb5c..6868795cc 100644 --- a/Examples/UIExplorer/js/ActivityIndicatorExample.js +++ b/RNTester/js/ActivityIndicatorExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ActivityIndicatorExample */ diff --git a/Examples/UIExplorer/js/AdSupportIOSExample.js b/RNTester/js/AdSupportIOSExample.js similarity index 75% rename from Examples/UIExplorer/js/AdSupportIOSExample.js rename to RNTester/js/AdSupportIOSExample.js index 5410b3d41..4c20f1e91 100644 --- a/Examples/UIExplorer/js/AdSupportIOSExample.js +++ b/RNTester/js/AdSupportIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule AdSupportIOSExample */ diff --git a/Examples/UIExplorer/js/AlertExample.js b/RNTester/js/AlertExample.js similarity index 83% rename from Examples/UIExplorer/js/AlertExample.js rename to RNTester/js/AlertExample.js index 92a0668e5..0e343453f 100644 --- a/Examples/UIExplorer/js/AlertExample.js +++ b/RNTester/js/AlertExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @providesModule AlertExample */ @@ -33,7 +21,7 @@ var { View, } = ReactNative; -var UIExplorerBlock = require('./UIExplorerBlock'); +var RNTesterBlock = require('./RNTesterBlock'); // corporate ipsum > lorem ipsum var alertMessage = 'Credibly reintermediate next-generation potentialities after goal-oriented ' + @@ -135,9 +123,9 @@ class AlertExample extends React.Component { render() { return ( - + - + ); } } diff --git a/Examples/UIExplorer/js/AlertIOSExample.js b/RNTester/js/AlertIOSExample.js similarity index 87% rename from Examples/UIExplorer/js/AlertIOSExample.js rename to RNTester/js/AlertIOSExample.js index 023e2acf0..e3d737556 100644 --- a/Examples/UIExplorer/js/AlertIOSExample.js +++ b/RNTester/js/AlertIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule AlertIOSExample */ diff --git a/Examples/UIExplorer/js/AnimatedExample.js b/RNTester/js/AnimatedExample.js similarity index 87% rename from Examples/UIExplorer/js/AnimatedExample.js rename to RNTester/js/AnimatedExample.js index 0eec072d8..a8fd96c5e 100644 --- a/Examples/UIExplorer/js/AnimatedExample.js +++ b/RNTester/js/AnimatedExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule AnimatedExample */ @@ -32,7 +20,7 @@ var { Text, View, } = ReactNative; -var UIExplorerButton = require('./UIExplorerButton'); +var RNTesterButton = require('./RNTesterButton'); exports.framework = 'React'; exports.title = 'Animated - Examples'; @@ -88,14 +76,14 @@ exports.examples = [ render() { return ( - { + { this.setState((state) => ( {show: !state.show} )); }}> Press to {this.state.show ? 'Hide' : 'Show'} - + {this.state.show && FadeInView @@ -119,7 +107,7 @@ exports.examples = [ this.anim = this.anim || new Animated.Value(0); return ( - { + { Animated.spring(this.anim, { toValue: 0, // Returns to the start velocity: 3, // Velocity makes it move @@ -127,7 +115,7 @@ exports.examples = [ friction: 1, // Oscillate a lot }).start(); }}> Press to Fling it! - + - { + { var timing = Animated.timing; Animated.sequence([ // One after the other timing(this.anims[0], { @@ -204,7 +192,7 @@ exports.examples = [ ), ]).start(); }}> Press to Animate - + {['Composite', 'Easing', 'Animations!'].map( (text, ii) => ( - + + {this.state.simpleText} - - + + {this.state.spinnerText} - - + + {this.state.calendarText} - - + + {this.state.defaultText} - - + + {this.state.presetText} - - + + {this.state.minText} - - + + {this.state.maxText} - - + + {this.state.allText} - - + + ); } } diff --git a/Examples/UIExplorer/js/DatePickerIOSExample.js b/RNTester/js/DatePickerIOSExample.js similarity index 85% rename from Examples/UIExplorer/js/DatePickerIOSExample.js rename to RNTester/js/DatePickerIOSExample.js index edd9dab1b..97f1b9ac8 100644 --- a/Examples/UIExplorer/js/DatePickerIOSExample.js +++ b/RNTester/js/DatePickerIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule DatePickerIOSExample */ diff --git a/RNTester/js/ExampleTypes.js b/RNTester/js/ExampleTypes.js new file mode 100644 index 000000000..760b2396a --- /dev/null +++ b/RNTester/js/ExampleTypes.js @@ -0,0 +1,27 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule ExampleTypes + * @flow + */ +'use strict'; + +import type React from 'react'; + +export type Example = { + title: string, + render: () => ?React.Element, + description?: string, + platform?: string, +}; + +export type ExampleModule = { + title: string, + description: string, + examples: Array, +}; diff --git a/Examples/UIExplorer/js/FlatListExample.js b/RNTester/js/FlatListExample.js similarity index 88% rename from Examples/UIExplorer/js/FlatListExample.js rename to RNTester/js/FlatListExample.js index c4d67cb1f..78782bd19 100644 --- a/Examples/UIExplorer/js/FlatListExample.js +++ b/RNTester/js/FlatListExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule FlatListExample */ @@ -32,7 +20,7 @@ const { View, } = ReactNative; -const UIExplorerPage = require('./UIExplorerPage'); +const RNTesterPage = require('./RNTesterPage'); const infoLog = require('infoLog'); @@ -101,7 +89,7 @@ class FlatListExample extends React.PureComponent { ); const filteredData = this.state.data.filter(filter); return ( - @@ -157,7 +145,7 @@ class FlatListExample extends React.PureComponent { viewabilityConfig={VIEWABILITY_CONFIG} /> - + ); } _captureRef = (ref) => { this._listRef = ref; }; diff --git a/Examples/UIExplorer/js/GeolocationExample.js b/RNTester/js/GeolocationExample.js similarity index 73% rename from Examples/UIExplorer/js/GeolocationExample.js rename to RNTester/js/GeolocationExample.js index e8ab9bab4..c60eab3cf 100644 --- a/Examples/UIExplorer/js/GeolocationExample.js +++ b/RNTester/js/GeolocationExample.js @@ -1,27 +1,14 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule GeolocationExample */ -/* eslint no-console: 0 */ 'use strict'; diff --git a/Examples/UIExplorer/js/ImageCapInsetsExample.js b/RNTester/js/ImageCapInsetsExample.js similarity index 74% rename from Examples/UIExplorer/js/ImageCapInsetsExample.js rename to RNTester/js/ImageCapInsetsExample.js index 513a521ee..7861d63a8 100644 --- a/Examples/UIExplorer/js/ImageCapInsetsExample.js +++ b/RNTester/js/ImageCapInsetsExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @providesModule ImageCapInsetsExample * @flow */ diff --git a/RNTester/js/ImageEditingExample.js b/RNTester/js/ImageEditingExample.js new file mode 100644 index 000000000..f59e5891a --- /dev/null +++ b/RNTester/js/ImageEditingExample.js @@ -0,0 +1,11 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @flow + * @providesModule ImageEditingExample + */ diff --git a/Examples/UIExplorer/js/ImageExample.js b/RNTester/js/ImageExample.js similarity index 96% rename from Examples/UIExplorer/js/ImageExample.js rename to RNTester/js/ImageExample.js index 1f824c774..580b98875 100644 --- a/Examples/UIExplorer/js/ImageExample.js +++ b/RNTester/js/ImageExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ImageExample */ @@ -657,7 +645,7 @@ exports.examples = [ - + + {this.renderExample()} - - + + ); } } diff --git a/Examples/UIExplorer/js/LayoutAnimationExample.js b/RNTester/js/LayoutAnimationExample.js similarity index 83% rename from Examples/UIExplorer/js/LayoutAnimationExample.js rename to RNTester/js/LayoutAnimationExample.js index e175bbdee..fdd2c0f1c 100644 --- a/Examples/UIExplorer/js/LayoutAnimationExample.js +++ b/RNTester/js/LayoutAnimationExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule LayoutAnimationExample */ diff --git a/Examples/UIExplorer/js/LayoutEventsExample.js b/RNTester/js/LayoutEventsExample.js similarity index 86% rename from Examples/UIExplorer/js/LayoutEventsExample.js rename to RNTester/js/LayoutEventsExample.js index 322e32f9a..e2b868df1 100644 --- a/Examples/UIExplorer/js/LayoutEventsExample.js +++ b/RNTester/js/LayoutEventsExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule LayoutEventsExample */ diff --git a/Examples/UIExplorer/js/LayoutExample.js b/RNTester/js/LayoutExample.js similarity index 81% rename from Examples/UIExplorer/js/LayoutExample.js rename to RNTester/js/LayoutExample.js index 9548ab9b1..6fc96757e 100644 --- a/Examples/UIExplorer/js/LayoutExample.js +++ b/RNTester/js/LayoutExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule LayoutExample */ @@ -31,8 +19,8 @@ var { View, } = ReactNative; -var UIExplorerBlock = require('./UIExplorerBlock'); -var UIExplorerPage = require('./UIExplorerPage'); +var RNTesterBlock = require('./RNTesterBlock'); +var RNTesterPage = require('./RNTesterPage'); class Circle extends React.Component { render() { @@ -84,8 +72,8 @@ class LayoutExample extends React.Component { ]; return ( - - + + row {fiveColoredCircles} @@ -105,9 +93,9 @@ class LayoutExample extends React.Component { {'top: 15, left: 160'} - + - + flex-start {fiveColoredCircles} @@ -128,8 +116,8 @@ class LayoutExample extends React.Component { {fiveColoredCircles} - - + + flex-start @@ -157,13 +145,13 @@ class LayoutExample extends React.Component { - - + + {'oooooooooooooooo'.split('').map((char, i) => )} - - + + ); } } diff --git a/Examples/UIExplorer/js/LinkingExample.js b/RNTester/js/LinkingExample.js similarity index 70% rename from Examples/UIExplorer/js/LinkingExample.js rename to RNTester/js/LinkingExample.js index 0bda4bb35..7da8f99fc 100644 --- a/Examples/UIExplorer/js/LinkingExample.js +++ b/RNTester/js/LinkingExample.js @@ -1,22 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * @providesModule LinkingExample */ 'use strict'; @@ -31,7 +20,7 @@ var { TouchableOpacity, View, } = ReactNative; -var UIExplorerBlock = require('./UIExplorerBlock'); +var RNTesterBlock = require('./RNTesterBlock'); class OpenURLButton extends React.Component { static propTypes = { @@ -66,14 +55,14 @@ class IntentAndroidExample extends React.Component { render() { return ( - + - + ); } } diff --git a/Examples/UIExplorer/js/ListExampleShared.js b/RNTester/js/ListExampleShared.js similarity index 92% rename from Examples/UIExplorer/js/ListExampleShared.js rename to RNTester/js/ListExampleShared.js index 825b73642..63a720262 100644 --- a/Examples/UIExplorer/js/ListExampleShared.js +++ b/RNTester/js/ListExampleShared.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ListExampleShared */ diff --git a/Examples/UIExplorer/js/ListViewExample.js b/RNTester/js/ListViewExample.js similarity index 84% rename from Examples/UIExplorer/js/ListViewExample.js rename to RNTester/js/ListViewExample.js index ae2d18179..be70270b7 100644 --- a/Examples/UIExplorer/js/ListViewExample.js +++ b/RNTester/js/ListViewExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ListViewExample */ @@ -34,7 +22,7 @@ var { View, } = ReactNative; -var UIExplorerPage = require('./UIExplorerPage'); +var RNTesterPage = require('./RNTesterPage'); var ListViewSimpleExample = React.createClass({ statics: { @@ -57,7 +45,7 @@ var ListViewSimpleExample = React.createClass({ render: function() { return ( - '} noSpacer={true} noScroll={true}> @@ -66,7 +54,7 @@ var ListViewSimpleExample = React.createClass({ renderRow={this._renderRow} renderSeparator={this._renderSeparator} /> - + ); }, diff --git a/Examples/UIExplorer/js/ListViewGridLayoutExample.js b/RNTester/js/ListViewGridLayoutExample.js similarity index 84% rename from Examples/UIExplorer/js/ListViewGridLayoutExample.js rename to RNTester/js/ListViewGridLayoutExample.js index 988ef34d4..635743c3f 100644 --- a/Examples/UIExplorer/js/ListViewGridLayoutExample.js +++ b/RNTester/js/ListViewGridLayoutExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ListViewGridLayoutExample */ diff --git a/Examples/UIExplorer/js/ListViewPagingExample.js b/RNTester/js/ListViewPagingExample.js similarity index 91% rename from Examples/UIExplorer/js/ListViewPagingExample.js rename to RNTester/js/ListViewPagingExample.js index f140f2994..bf593affc 100644 --- a/Examples/UIExplorer/js/ListViewPagingExample.js +++ b/RNTester/js/ListViewPagingExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @providesModule ListViewPagingExample * @flow */ diff --git a/Examples/UIExplorer/js/ModalExample.js b/RNTester/js/ModalExample.js similarity index 89% rename from Examples/UIExplorer/js/ModalExample.js rename to RNTester/js/ModalExample.js index d2a301201..f11b41da9 100644 --- a/Examples/UIExplorer/js/ModalExample.js +++ b/RNTester/js/ModalExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ModalExample */ diff --git a/Examples/UIExplorer/js/MultiColumnExample.js b/RNTester/js/MultiColumnExample.js similarity index 85% rename from Examples/UIExplorer/js/MultiColumnExample.js rename to RNTester/js/MultiColumnExample.js index 876110cbf..0315ead79 100644 --- a/Examples/UIExplorer/js/MultiColumnExample.js +++ b/RNTester/js/MultiColumnExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule MultiColumnExample */ @@ -32,7 +20,7 @@ const { View, } = ReactNative; -const UIExplorerPage = require('./UIExplorerPage'); +const RNTesterPage = require('./RNTesterPage'); const infoLog = require('infoLog'); @@ -71,7 +59,7 @@ class MultiColumnExample extends React.PureComponent { const filter = (item) => (filterRegex.test(item.text) || filterRegex.test(item.title)); const filteredData = this.state.data.filter(filter); return ( - - MultiColumn'} noSpacer={true} noScroll={true}> @@ -110,7 +98,7 @@ class MultiColumnExample extends React.PureComponent { onViewableItemsChanged={this._onViewableItemsChanged} legacyImplementation={false} /> - + ); } _getItemLayout(data: any, index: number): {length: number, offset: number, index: number} { diff --git a/Examples/UIExplorer/js/NativeAnimationsExample.js b/RNTester/js/NativeAnimationsExample.js similarity index 93% rename from Examples/UIExplorer/js/NativeAnimationsExample.js rename to RNTester/js/NativeAnimationsExample.js index d9550530e..29f3987de 100644 --- a/Examples/UIExplorer/js/NativeAnimationsExample.js +++ b/RNTester/js/NativeAnimationsExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule NativeAnimationsExample */ @@ -126,14 +114,14 @@ class ValueListenerExample extends React.Component { } } -const UIExplorerSettingSwitchRow = require('UIExplorerSettingSwitchRow'); +const RNTesterSettingSwitchRow = require('RNTesterSettingSwitchRow'); class InternalSettings extends React.Component { _stallInterval: ?number; state: {busyTime: number | string, filteredStall: number}; render() { return ( - { @@ -147,7 +135,7 @@ class InternalSettings extends React.Component { clearInterval(this._stallInterval || 0); }} /> - { diff --git a/Examples/UIExplorer/js/NavigatorIOSColorsExample.js b/RNTester/js/NavigatorIOSColorsExample.js similarity index 73% rename from Examples/UIExplorer/js/NavigatorIOSColorsExample.js rename to RNTester/js/NavigatorIOSColorsExample.js index 18ef3010d..fd345c4af 100644 --- a/Examples/UIExplorer/js/NavigatorIOSColorsExample.js +++ b/RNTester/js/NavigatorIOSColorsExample.js @@ -1,22 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * @providesModule NavigatorIOSColorsExample */ 'use strict'; diff --git a/Examples/UIExplorer/js/NavigatorIOSExample.js b/RNTester/js/NavigatorIOSExample.js similarity index 92% rename from Examples/UIExplorer/js/NavigatorIOSExample.js rename to RNTester/js/NavigatorIOSExample.js index 71cbb1ee9..8d7582679 100644 --- a/Examples/UIExplorer/js/NavigatorIOSExample.js +++ b/RNTester/js/NavigatorIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule NavigatorIOSExample */ diff --git a/Examples/UIExplorer/js/NetInfoExample.js b/RNTester/js/NetInfoExample.js similarity index 86% rename from Examples/UIExplorer/js/NetInfoExample.js rename to RNTester/js/NetInfoExample.js index 6c4542a19..0d5d88925 100644 --- a/Examples/UIExplorer/js/NetInfoExample.js +++ b/RNTester/js/NetInfoExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule NetInfoExample */ diff --git a/Examples/UIExplorer/js/OrientationChangeExample.js b/RNTester/js/OrientationChangeExample.js similarity index 70% rename from Examples/UIExplorer/js/OrientationChangeExample.js rename to RNTester/js/OrientationChangeExample.js index 1bcb767c7..f0c9f33a0 100644 --- a/Examples/UIExplorer/js/OrientationChangeExample.js +++ b/RNTester/js/OrientationChangeExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @providesModule OrientationChangeExample * @flow */ diff --git a/Examples/UIExplorer/js/PanResponderExample.js b/RNTester/js/PanResponderExample.js similarity index 83% rename from Examples/UIExplorer/js/PanResponderExample.js rename to RNTester/js/PanResponderExample.js index 474cabc37..70cb5e696 100644 --- a/Examples/UIExplorer/js/PanResponderExample.js +++ b/RNTester/js/PanResponderExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow weak * @providesModule PanResponderExample */ diff --git a/Examples/UIExplorer/js/PermissionsExampleAndroid.android.js b/RNTester/js/PermissionsExampleAndroid.android.js similarity index 83% rename from Examples/UIExplorer/js/PermissionsExampleAndroid.android.js rename to RNTester/js/PermissionsExampleAndroid.android.js index 8a5bc5288..8106ed4c8 100644 --- a/Examples/UIExplorer/js/PermissionsExampleAndroid.android.js +++ b/RNTester/js/PermissionsExampleAndroid.android.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @providesModule PermissionsExampleAndroid * @flow */ diff --git a/Examples/UIExplorer/js/PickerExample.js b/RNTester/js/PickerExample.js similarity index 73% rename from Examples/UIExplorer/js/PickerExample.js rename to RNTester/js/PickerExample.js index c5bf30103..f9a6d1323 100644 --- a/Examples/UIExplorer/js/PickerExample.js +++ b/RNTester/js/PickerExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule PickerExample */ @@ -26,8 +14,8 @@ const React = require('react'); const ReactNative = require('react-native'); const StyleSheet = require('StyleSheet'); -const UIExplorerBlock = require('UIExplorerBlock'); -const UIExplorerPage = require('UIExplorerPage'); +const RNTesterBlock = require('RNTesterBlock'); +const RNTesterPage = require('RNTesterPage'); const { Picker, @@ -50,8 +38,8 @@ class PickerExample extends React.Component { render() { return ( - - + + - - + + - - + + - - + + - - + + @@ -94,8 +82,8 @@ class PickerExample extends React.Component { Cannot change the value of this picker because it doesn't update selectedValue. - - + + - - + + ); } diff --git a/Examples/UIExplorer/js/PickerIOSExample.js b/RNTester/js/PickerIOSExample.js similarity index 85% rename from Examples/UIExplorer/js/PickerIOSExample.js rename to RNTester/js/PickerIOSExample.js index 63716a19d..da4addd29 100644 --- a/Examples/UIExplorer/js/PickerIOSExample.js +++ b/RNTester/js/PickerIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule PickerIOSExample */ diff --git a/Examples/UIExplorer/js/PointerEventsExample.js b/RNTester/js/PointerEventsExample.js similarity index 90% rename from Examples/UIExplorer/js/PointerEventsExample.js rename to RNTester/js/PointerEventsExample.js index c98bb7b96..6ddfc966a 100644 --- a/Examples/UIExplorer/js/PointerEventsExample.js +++ b/RNTester/js/PointerEventsExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule PointerEventsExample */ diff --git a/Examples/UIExplorer/js/ProgressBarAndroidExample.android.js b/RNTester/js/ProgressBarAndroidExample.android.js similarity index 54% rename from Examples/UIExplorer/js/ProgressBarAndroidExample.android.js rename to RNTester/js/ProgressBarAndroidExample.android.js index 82e8c0e65..1ea184483 100644 --- a/Examples/UIExplorer/js/ProgressBarAndroidExample.android.js +++ b/RNTester/js/ProgressBarAndroidExample.android.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ProgressBarAndroidExample */ @@ -25,8 +13,8 @@ var ProgressBar = require('ProgressBarAndroid'); var React = require('React'); -var UIExplorerBlock = require('UIExplorerBlock'); -var UIExplorerPage = require('UIExplorerPage'); +var RNTesterBlock = require('RNTesterBlock'); +var RNTesterPage = require('RNTesterPage'); var TimerMixin = require('react-timer-mixin'); @@ -59,23 +47,23 @@ class ProgressBarAndroidExample extends React.Component { render() { return ( - - + + - + - + - + - + - + - + - - + + ); } } diff --git a/Examples/UIExplorer/js/ProgressViewIOSExample.js b/RNTester/js/ProgressViewIOSExample.js similarity index 75% rename from Examples/UIExplorer/js/ProgressViewIOSExample.js rename to RNTester/js/ProgressViewIOSExample.js index b97d7fcf5..cca3c5ad1 100644 --- a/Examples/UIExplorer/js/ProgressViewIOSExample.js +++ b/RNTester/js/ProgressViewIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ProgressViewIOSExample */ diff --git a/Examples/UIExplorer/js/PushNotificationIOSExample.js b/RNTester/js/PushNotificationIOSExample.js similarity index 88% rename from Examples/UIExplorer/js/PushNotificationIOSExample.js rename to RNTester/js/PushNotificationIOSExample.js index 150675d19..a2f2ec175 100644 --- a/Examples/UIExplorer/js/PushNotificationIOSExample.js +++ b/RNTester/js/PushNotificationIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule PushNotificationIOSExample */ diff --git a/Examples/UIExplorer/js/RCTRootViewIOSExample.js b/RNTester/js/RCTRootViewIOSExample.js similarity index 75% rename from Examples/UIExplorer/js/RCTRootViewIOSExample.js rename to RNTester/js/RCTRootViewIOSExample.js index ef83eb819..d1ccf5cfe 100644 --- a/Examples/UIExplorer/js/RCTRootViewIOSExample.js +++ b/RNTester/js/RCTRootViewIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule RCTRootViewIOSExample */ @@ -45,7 +33,7 @@ class AppPropertiesUpdateExample extends React.Component { - Error: This demo is accessible only from UIExplorer app + Error: This demo is accessible only from RNTester app @@ -64,7 +52,7 @@ class RootViewSizeFlexibilityExample extends React.Component { - Error: This demo is accessible only from UIExplorer app + Error: This demo is accessible only from RNTester app diff --git a/RNTester/js/RNTesterActions.js b/RNTester/js/RNTesterActions.js new file mode 100644 index 000000000..ad203842b --- /dev/null +++ b/RNTester/js/RNTesterActions.js @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @flow + * @providesModule RNTesterActions + */ +'use strict'; + +export type RNTesterBackAction = { + type: 'RNTesterBackAction', +}; + +export type RNTesterListAction = { + type: 'RNTesterListAction', +}; + +export type RNTesterExampleAction = { + type: 'RNTesterExampleAction', + openExample: string, +}; + +export type RNTesterAction = ( + RNTesterBackAction | + RNTesterListAction | + RNTesterExampleAction +); + + +function Back(): RNTesterBackAction { + return { + type: 'RNTesterBackAction', + }; +} + +function ExampleList(): RNTesterListAction { + return { + type: 'RNTesterListAction', + }; +} + +function ExampleAction(openExample: string): RNTesterExampleAction { + return { + type: 'RNTesterExampleAction', + openExample, + }; +} + +const RNTesterActions = { + Back, + ExampleList, + ExampleAction, +}; + +module.exports = RNTesterActions; diff --git a/Examples/UIExplorer/js/UIExplorerApp.android.js b/RNTester/js/RNTesterApp.android.js similarity index 72% rename from Examples/UIExplorer/js/UIExplorerApp.android.js rename to RNTester/js/RNTesterApp.android.js index 1e13a212c..a891429e3 100644 --- a/Examples/UIExplorer/js/UIExplorerApp.android.js +++ b/RNTester/js/RNTesterApp.android.js @@ -1,24 +1,12 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule UIExplorerApp + * @providesModule RNTesterApp * @flow */ 'use strict'; @@ -33,18 +21,18 @@ const React = require('react'); const StatusBar = require('StatusBar'); const StyleSheet = require('StyleSheet'); const ToolbarAndroid = require('ToolbarAndroid'); -const UIExplorerActions = require('./UIExplorerActions'); -const UIExplorerExampleContainer = require('./UIExplorerExampleContainer'); -const UIExplorerExampleList = require('./UIExplorerExampleList'); -const UIExplorerList = require('./UIExplorerList'); -const UIExplorerNavigationReducer = require('./UIExplorerNavigationReducer'); +const RNTesterActions = require('./RNTesterActions'); +const RNTesterExampleContainer = require('./RNTesterExampleContainer'); +const RNTesterExampleList = require('./RNTesterExampleList'); +const RNTesterList = require('./RNTesterList'); +const RNTesterNavigationReducer = require('./RNTesterNavigationReducer'); const UIManager = require('UIManager'); const URIActionMap = require('./URIActionMap'); const View = require('View'); const nativeImageSource = require('nativeImageSource'); -import type { UIExplorerNavigationState } from './UIExplorerNavigationReducer'; +import type { RNTesterNavigationState } from './RNTesterNavigationReducer'; UIManager.setLayoutAnimationEnabledExperimental(true); @@ -54,7 +42,7 @@ type Props = { exampleFromAppetizeParams: string, }; -const APP_STATE_KEY = 'UIExplorerAppState.v2'; +const APP_STATE_KEY = 'RNTesterAppState.v2'; const HEADER_LOGO_ICON = nativeImageSource({ android: 'launcher_icon', @@ -68,9 +56,9 @@ const HEADER_NAV_ICON = nativeImageSource({ height: 48 }); -class UIExplorerApp extends React.Component { +class RNTesterApp extends React.Component { props: Props; - state: UIExplorerNavigationState; + state: RNTesterNavigationState; componentWillMount() { BackHandler.addEventListener('hardwareBackPress', this._handleBackButtonPress); @@ -84,12 +72,12 @@ class UIExplorerApp extends React.Component { const launchAction = exampleAction || urlAction; if (err || !storedString) { const initialAction = launchAction || {type: 'InitialAction'}; - this.setState(UIExplorerNavigationReducer(null, initialAction)); + this.setState(RNTesterNavigationReducer(null, initialAction)); return; } const storedState = JSON.parse(storedString); if (launchAction) { - this.setState(UIExplorerNavigationReducer(storedState, launchAction)); + this.setState(RNTesterNavigationReducer(storedState, launchAction)); return; } this.setState(storedState); @@ -123,8 +111,8 @@ class UIExplorerApp extends React.Component { _renderDrawerContent = () => { return ( - { - this._handleAction(UIExplorerActions.Back()); + this._handleAction(RNTesterActions.Back()); }} ref={(example) => { this._exampleRef = example; }} /> @@ -159,7 +147,7 @@ class UIExplorerApp extends React.Component { style={styles.toolbar} title={ExampleModule.title} /> - { this._exampleRef = example; }} /> @@ -175,11 +163,11 @@ class UIExplorerApp extends React.Component { navIcon={HEADER_NAV_ICON} onIconClicked={() => this.drawer.openDrawer()} style={styles.toolbar} - title="UIExplorer" + title="RNTester" /> - ); @@ -187,7 +175,7 @@ class UIExplorerApp extends React.Component { _handleAction = (action: Object): boolean => { this.drawer && this.drawer.closeDrawer(); - const newState = UIExplorerNavigationReducer(this.state, action); + const newState = RNTesterNavigationReducer(this.state, action); if (this.state !== newState) { this.setState( newState, @@ -213,7 +201,7 @@ class UIExplorerApp extends React.Component { ) { return true; } - return this._handleAction(UIExplorerActions.Back()); + return this._handleAction(RNTesterActions.Back()); }; } @@ -232,6 +220,6 @@ const styles = StyleSheet.create({ }, }); -AppRegistry.registerComponent('UIExplorerApp', () => UIExplorerApp); +AppRegistry.registerComponent('RNTesterApp', () => RNTesterApp); -module.exports = UIExplorerApp; +module.exports = RNTesterApp; diff --git a/Examples/UIExplorer/js/UIExplorerApp.ios.js b/RNTester/js/RNTesterApp.ios.js similarity index 62% rename from Examples/UIExplorer/js/UIExplorerApp.ios.js rename to RNTester/js/RNTesterApp.ios.js index f57e4fbf8..90a94d0c8 100644 --- a/Examples/UIExplorer/js/UIExplorerApp.ios.js +++ b/RNTester/js/RNTesterApp.ios.js @@ -1,24 +1,12 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule UIExplorerApp + * @providesModule RNTesterApp * @flow */ 'use strict'; @@ -28,11 +16,11 @@ const BackHandler = require('BackHandler'); const Linking = require('Linking'); const React = require('react'); const ReactNative = require('react-native'); -const UIExplorerActions = require('./UIExplorerActions'); -const UIExplorerExampleContainer = require('./UIExplorerExampleContainer'); -const UIExplorerExampleList = require('./UIExplorerExampleList'); -const UIExplorerList = require('./UIExplorerList.ios'); -const UIExplorerNavigationReducer = require('./UIExplorerNavigationReducer'); +const RNTesterActions = require('./RNTesterActions'); +const RNTesterExampleContainer = require('./RNTesterExampleContainer'); +const RNTesterExampleList = require('./RNTesterExampleList'); +const RNTesterList = require('./RNTesterList.ios'); +const RNTesterNavigationReducer = require('./RNTesterNavigationReducer'); const URIActionMap = require('./URIActionMap'); const { @@ -44,15 +32,15 @@ const { View, } = ReactNative; -import type { UIExplorerExample } from './UIExplorerList.ios'; -import type { UIExplorerAction } from './UIExplorerActions'; -import type { UIExplorerNavigationState } from './UIExplorerNavigationReducer'; +import type { RNTesterExample } from './RNTesterList.ios'; +import type { RNTesterAction } from './RNTesterActions'; +import type { RNTesterNavigationState } from './RNTesterNavigationReducer'; type Props = { exampleFromAppetizeParams: string, }; -const APP_STATE_KEY = 'UIExplorerAppState.v2'; +const APP_STATE_KEY = 'RNTesterAppState.v2'; const Header = ({ onBack, title}) => ( @@ -65,9 +53,9 @@ const Header = ({ onBack, title}) => ( ); -class UIExplorerApp extends React.Component { +class RNTesterApp extends React.Component { props: Props; - state: UIExplorerNavigationState; + state: RNTesterNavigationState; componentWillMount() { BackHandler.addEventListener('hardwareBackPress', this._handleBack); @@ -81,12 +69,12 @@ class UIExplorerApp extends React.Component { const launchAction = exampleAction || urlAction; if (err || !storedString) { const initialAction = launchAction || {type: 'InitialAction'}; - this.setState(UIExplorerNavigationReducer(undefined, initialAction)); + this.setState(RNTesterNavigationReducer(undefined, initialAction)); return; } const storedState = JSON.parse(storedString); if (launchAction) { - this.setState(UIExplorerNavigationReducer(storedState, launchAction)); + this.setState(RNTesterNavigationReducer(storedState, launchAction)); return; } this.setState(storedState); @@ -99,14 +87,14 @@ class UIExplorerApp extends React.Component { } _handleBack = () => { - this._handleAction(UIExplorerActions.Back()); + this._handleAction(RNTesterActions.Back()); } - _handleAction = (action: ?UIExplorerAction) => { + _handleAction = (action: ?RNTesterAction) => { if (!action) { return; } - const newState = UIExplorerNavigationReducer(this.state, action); + const newState = RNTesterNavigationReducer(this.state, action); if (this.state !== newState) { this.setState( newState, @@ -120,7 +108,7 @@ class UIExplorerApp extends React.Component { return null; } if (this.state.openExample) { - const Component = UIExplorerList.Modules[this.state.openExample]; + const Component = RNTesterList.Modules[this.state.openExample]; if (Component.external) { return (
- + ); } @@ -139,10 +127,10 @@ class UIExplorerApp extends React.Component { } return ( -
- + ); @@ -179,17 +167,17 @@ const styles = StyleSheet.create({ AppRegistry.registerComponent('SetPropertiesExampleApp', () => require('./SetPropertiesExampleApp')); AppRegistry.registerComponent('RootViewSizeFlexibilityExampleApp', () => require('./RootViewSizeFlexibilityExampleApp')); -AppRegistry.registerComponent('UIExplorerApp', () => UIExplorerApp); +AppRegistry.registerComponent('RNTesterApp', () => RNTesterApp); // Register suitable examples for snapshot tests -UIExplorerList.ComponentExamples.concat(UIExplorerList.APIExamples).forEach((Example: UIExplorerExample) => { +RNTesterList.ComponentExamples.concat(RNTesterList.APIExamples).forEach((Example: RNTesterExample) => { const ExampleModule = Example.module; if (ExampleModule.displayName) { class Snapshotter extends React.Component { render() { return ( - + ); } @@ -199,4 +187,4 @@ UIExplorerList.ComponentExamples.concat(UIExplorerList.APIExamples).forEach((Exa } }); -module.exports = UIExplorerApp; +module.exports = RNTesterApp; diff --git a/Examples/UIExplorer/js/UIExplorerBlock.js b/RNTester/js/RNTesterBlock.js similarity index 71% rename from Examples/UIExplorer/js/UIExplorerBlock.js rename to RNTester/js/RNTesterBlock.js index d71595a3d..ae5f568a2 100644 --- a/Examples/UIExplorer/js/UIExplorerBlock.js +++ b/RNTester/js/RNTesterBlock.js @@ -1,24 +1,12 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule UIExplorerBlock + * @providesModule RNTesterBlock * @flow */ 'use strict'; @@ -32,7 +20,7 @@ var { View, } = ReactNative; -class UIExplorerBlock extends React.Component { +class RNTesterBlock extends React.Component { props: { title?: string, description?: string, @@ -113,4 +101,4 @@ var styles = StyleSheet.create({ } }); -module.exports = UIExplorerBlock; +module.exports = RNTesterBlock; diff --git a/Examples/UIExplorer/js/UIExplorerButton.js b/RNTester/js/RNTesterButton.js similarity index 59% rename from Examples/UIExplorer/js/UIExplorerButton.js rename to RNTester/js/RNTesterButton.js index 9bbf09d94..a8a8b008b 100644 --- a/Examples/UIExplorer/js/UIExplorerButton.js +++ b/RNTester/js/RNTesterButton.js @@ -1,25 +1,13 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow - * @providesModule UIExplorerButton + * @providesModule RNTesterButton */ 'use strict'; @@ -32,7 +20,7 @@ var { TouchableHighlight, } = ReactNative; -class UIExplorerButton extends React.Component { +class RNTesterButton extends React.Component { props: {onPress?: Function}; static propTypes = { @@ -68,4 +56,4 @@ var styles = StyleSheet.create({ }, }); -module.exports = UIExplorerButton; +module.exports = RNTesterButton; diff --git a/RNTester/js/RNTesterExampleContainer.js b/RNTester/js/RNTesterExampleContainer.js new file mode 100644 index 000000000..635cd0214 --- /dev/null +++ b/RNTester/js/RNTesterExampleContainer.js @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule RNTesterExampleContainer + */ +'use strict'; + +const React = require('react'); +const { + Platform, +} = require('react-native'); +const RNTesterBlock = require('./RNTesterBlock'); +const RNTesterPage = require('./RNTesterPage'); + +class RNTesterExampleContainer extends React.Component { + renderExample(example, i) { + // Filter platform-specific examples + var {title, description, platform} = example; + if (platform) { + if (Platform.OS !== platform) { + return null; + } + title += ' (' + platform + ' only)'; + } + return ( + + {example.render()} + + ); + } + + render(): React.Element { + if (!this.props.module.examples) { + return ; + } + + return ( + + {this.props.module.examples.map(this.renderExample)} + + ); + } +} + +module.exports = RNTesterExampleContainer; diff --git a/Examples/UIExplorer/js/UIExplorerExampleList.js b/RNTester/js/RNTesterExampleList.js similarity index 79% rename from Examples/UIExplorer/js/UIExplorerExampleList.js rename to RNTester/js/RNTesterExampleList.js index 7a697c53a..a796039b0 100644 --- a/Examples/UIExplorer/js/UIExplorerExampleList.js +++ b/RNTester/js/RNTesterExampleList.js @@ -1,25 +1,13 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow - * @providesModule UIExplorerExampleList + * @providesModule RNTesterExampleList */ 'use strict'; @@ -30,16 +18,16 @@ const StyleSheet = require('StyleSheet'); const Text = require('Text'); const TextInput = require('TextInput'); const TouchableHighlight = require('TouchableHighlight'); -const UIExplorerActions = require('./UIExplorerActions'); -const UIExplorerStatePersister = require('./UIExplorerStatePersister'); +const RNTesterActions = require('./RNTesterActions'); +const RNTesterStatePersister = require('./RNTesterStatePersister'); const View = require('View'); import type { - UIExplorerExample, -} from './UIExplorerList.ios'; + RNTesterExample, +} from './RNTesterList.ios'; import type { PassProps, -} from './UIExplorerStatePersister'; +} from './RNTesterStatePersister'; import type { StyleObj, } from 'StyleSheetTypes'; @@ -47,8 +35,8 @@ import type { type Props = { onNavigate: Function, list: { - ComponentExamples: Array, - APIExamples: Array, + ComponentExamples: Array, + APIExamples: Array, }, persister: PassProps<*>, searchTextInputStyle: StyleObj, @@ -68,7 +56,7 @@ class RowComponent extends React.PureComponent { this.props.onPress(); return; } - this.props.onNavigate(UIExplorerActions.ExampleAction(this.props.item.key)); + this.props.onNavigate(RNTesterActions.ExampleAction(this.props.item.key)); }; render() { const {item} = this.props; @@ -92,7 +80,7 @@ const renderSectionHeader = ({section}) => {section.title} ; -class UIExplorerExampleList extends React.Component { +class RNTesterExampleList extends React.Component { props: Props render() { @@ -157,12 +145,12 @@ class UIExplorerExampleList extends React.Component { return ( { - this.props.onNavigate(UIExplorerActions.ExampleList()); + this.props.onNavigate(RNTesterActions.ExampleList()); }} /> ); @@ -192,7 +180,7 @@ class UIExplorerExampleList extends React.Component { } _handleRowPress(exampleKey: string): void { - this.props.onNavigate(UIExplorerActions.ExampleAction(exampleKey)); + this.props.onNavigate(RNTesterActions.ExampleAction(exampleKey)); } } @@ -200,7 +188,7 @@ const ItemSeparator = ({highlighted}) => ( ); -UIExplorerExampleList = UIExplorerStatePersister.createContainer(UIExplorerExampleList, { +RNTesterExampleList = RNTesterStatePersister.createContainer(RNTesterExampleList, { cacheKeySuffix: () => 'mainList', getInitialState: () => ({filter: ''}), }); @@ -257,4 +245,4 @@ const styles = StyleSheet.create({ }, }); -module.exports = UIExplorerExampleList; +module.exports = RNTesterExampleList; diff --git a/Examples/UIExplorer/js/UIExplorerList.android.js b/RNTester/js/RNTesterList.android.js similarity index 84% rename from Examples/UIExplorer/js/UIExplorerList.android.js rename to RNTester/js/RNTesterList.android.js index 09d81eb19..74a9308e4 100644 --- a/Examples/UIExplorer/js/UIExplorerList.android.js +++ b/RNTester/js/RNTesterList.android.js @@ -1,34 +1,22 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow - * @providesModule UIExplorerList + * @providesModule RNTesterList */ 'use strict'; -export type UIExplorerExample = { +export type RNTesterExample = { key: string, module: Object, }; -const ComponentExamples: Array = [ +const ComponentExamples: Array = [ { key: 'ActivityIndicatorExample', module: require('./ActivityIndicatorExample'), @@ -131,7 +119,7 @@ const ComponentExamples: Array = [ }, ]; -const APIExamples: Array = [ +const APIExamples: Array = [ { key: 'AccessibilityAndroidExample', module: require('./AccessibilityAndroidExample'), @@ -256,10 +244,10 @@ APIExamples.concat(ComponentExamples).forEach(Example => { Modules[Example.key] = Example.module; }); -const UIExplorerList = { +const RNTesterList = { APIExamples, ComponentExamples, Modules, }; -module.exports = UIExplorerList; +module.exports = RNTesterList; diff --git a/Examples/UIExplorer/js/UIExplorerList.ios.js b/RNTester/js/RNTesterList.ios.js similarity index 89% rename from Examples/UIExplorer/js/UIExplorerList.ios.js rename to RNTester/js/RNTesterList.ios.js index 5a082acc6..0d92f5894 100644 --- a/Examples/UIExplorer/js/UIExplorerList.ios.js +++ b/RNTester/js/RNTesterList.ios.js @@ -1,35 +1,23 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow - * @providesModule UIExplorerList + * @providesModule RNTesterList */ 'use strict'; -export type UIExplorerExample = { +export type RNTesterExample = { key: string, module: Object, supportsTVOS: boolean }; -const ComponentExamples: Array = [ +const ComponentExamples: Array = [ { key: 'ActivityIndicatorExample', module: require('./ActivityIndicatorExample'), @@ -192,7 +180,7 @@ const ComponentExamples: Array = [ }, ]; -const APIExamples: Array = [ +const APIExamples: Array = [ { key: 'AccessibilityIOSExample', module: require('./AccessibilityIOSExample'), @@ -366,10 +354,10 @@ APIExamples.concat(ComponentExamples).forEach(Example => { Modules[Example.key] = Example.module; }); -const UIExplorerList = { +const RNTesterList = { APIExamples, ComponentExamples, Modules, }; -module.exports = UIExplorerList; +module.exports = RNTesterList; diff --git a/RNTester/js/RNTesterNavigationReducer.js b/RNTester/js/RNTesterNavigationReducer.js new file mode 100644 index 000000000..0bedcb24d --- /dev/null +++ b/RNTester/js/RNTesterNavigationReducer.js @@ -0,0 +1,57 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @flow + * @providesModule RNTesterNavigationReducer + */ +'use strict'; + +// $FlowFixMe : This is a platform-forked component, and flow seems to only run on iOS? +const RNTesterList = require('./RNTesterList'); + +export type RNTesterNavigationState = { + openExample: ?string, +}; + +function RNTesterNavigationReducer( + state: ?RNTesterNavigationState, + action: any +): RNTesterNavigationState { + + if ( + // Default value is to see example list + !state || + + // Handle the explicit list action + action.type === 'RNTesterListAction' || + + // Handle requests to go back to the list when an example is open + (state.openExample && action.type === 'RNTesterBackAction') + ) { + return { + // A null openExample will cause the views to display the RNTester example list + openExample: null, + }; + } + + if (action.type === 'RNTesterExampleAction') { + + // Make sure we see the module before returning the new state + const ExampleModule = RNTesterList.Modules[action.openExample]; + + if (ExampleModule) { + return { + openExample: action.openExample, + }; + } + } + + return state; +} + +module.exports = RNTesterNavigationReducer; diff --git a/Examples/UIExplorer/js/UIExplorerPage.js b/RNTester/js/RNTesterPage.js similarity index 66% rename from Examples/UIExplorer/js/UIExplorerPage.js rename to RNTester/js/RNTesterPage.js index 03be9105a..db17d5a8b 100644 --- a/Examples/UIExplorer/js/UIExplorerPage.js +++ b/RNTester/js/RNTesterPage.js @@ -1,24 +1,12 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule UIExplorerPage + * @providesModule RNTesterPage * @flow */ 'use strict'; @@ -32,9 +20,9 @@ var { View, } = ReactNative; -var UIExplorerTitle = require('./UIExplorerTitle'); +var RNTesterTitle = require('./RNTesterTitle'); -class UIExplorerPage extends React.Component { +class RNTesterPage extends React.Component { props: { noScroll?: boolean, noSpacer?: boolean, @@ -58,7 +46,7 @@ class UIExplorerPage extends React.Component { wrapperProps.keyboardDismissMode = 'interactive'; } var title = this.props.title ? - : + : null; var spacer = this.props.noSpacer ? null : ; return ( @@ -91,4 +79,4 @@ var styles = StyleSheet.create({ }, }); -module.exports = UIExplorerPage; +module.exports = RNTesterPage; diff --git a/Examples/UIExplorer/js/UIExplorerSettingSwitchRow.js b/RNTester/js/RNTesterSettingSwitchRow.js similarity index 79% rename from Examples/UIExplorer/js/UIExplorerSettingSwitchRow.js rename to RNTester/js/RNTesterSettingSwitchRow.js index 628355e07..ab33ff19c 100644 --- a/Examples/UIExplorer/js/UIExplorerSettingSwitchRow.js +++ b/RNTester/js/RNTesterSettingSwitchRow.js @@ -6,7 +6,7 @@ * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * @providesModule UIExplorerSettingSwitchRow + * @providesModule RNTesterSettingSwitchRow * @flow */ 'use strict'; @@ -15,10 +15,10 @@ const React = require('React'); const StyleSheet = require('StyleSheet'); const Switch = require('Switch'); const Text = require('Text'); -const UIExplorerStatePersister = require('./UIExplorerStatePersister'); +const RNTesterStatePersister = require('./RNTesterStatePersister'); const View = require('View'); -class UIExplorerSettingSwitchRow extends React.Component { +class RNTesterSettingSwitchRow extends React.Component { componentWillReceiveProps(newProps) { const {onEnable, onDisable, persister} = this.props; if (newProps.persister.state !== persister.state) { @@ -47,8 +47,8 @@ const styles = StyleSheet.create({ justifyContent: 'space-between', }, }); -UIExplorerSettingSwitchRow = UIExplorerStatePersister.createContainer(UIExplorerSettingSwitchRow, { +RNTesterSettingSwitchRow = RNTesterStatePersister.createContainer(RNTesterSettingSwitchRow, { cacheKeySuffix: ({label}) => 'Switch:' + label, getInitialState: ({initialValue}) => initialValue, }); -module.exports = UIExplorerSettingSwitchRow; +module.exports = RNTesterSettingSwitchRow; diff --git a/Examples/UIExplorer/js/UIExplorerStatePersister.js b/RNTester/js/RNTesterStatePersister.js similarity index 65% rename from Examples/UIExplorer/js/UIExplorerStatePersister.js rename to RNTester/js/RNTesterStatePersister.js index 33a8a591c..a8adcf5bf 100644 --- a/Examples/UIExplorer/js/UIExplorerStatePersister.js +++ b/RNTester/js/RNTesterStatePersister.js @@ -1,25 +1,13 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow - * @providesModule UIExplorerStatePersister + * @providesModule RNTesterStatePersister */ 'use strict'; @@ -37,7 +25,7 @@ export type PassProps = { * rendered using `getInitialState` in the spec and is then re-rendered with the persisted data * once it's fetched. * - * This is currently tied to UIExplorer because it's generally not good to use AsyncStorage like + * This is currently tied to RNTester because it's generally not good to use AsyncStorage like * this in real apps with user data, but we could maybe pull it out for other internal settings-type * usage. */ @@ -51,9 +39,9 @@ function createContainer( ): ReactClass { return class ComponentWithPersistedState extends React.Component { props: Props; - static displayName = `UIExplorerStatePersister(${Component.displayName || Component.name})`; + static displayName = `RNTesterStatePersister(${Component.displayName || Component.name})`; state = {value: spec.getInitialState(this.props)}; - _cacheKey = `UIExplorer:${spec.version || 'v1'}:${spec.cacheKeySuffix(this.props)}`; + _cacheKey = `RNTester:${spec.version || 'v1'}:${spec.cacheKeySuffix(this.props)}`; componentDidMount() { AsyncStorage.getItem(this._cacheKey, (err, value) => { if (!err && value) { @@ -82,8 +70,8 @@ function createContainer( }; } -const UIExplorerStatePersister = { +const RNTesterStatePersister = { createContainer, }; -module.exports = UIExplorerStatePersister; +module.exports = RNTesterStatePersister; diff --git a/Examples/UIExplorer/js/UIExplorerTitle.js b/RNTester/js/RNTesterTitle.js similarity index 52% rename from Examples/UIExplorer/js/UIExplorerTitle.js rename to RNTester/js/RNTesterTitle.js index e586d5702..a1117df51 100644 --- a/Examples/UIExplorer/js/UIExplorerTitle.js +++ b/RNTester/js/RNTesterTitle.js @@ -1,24 +1,12 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * @providesModule UIExplorerTitle + * @providesModule RNTesterTitle * @flow */ 'use strict'; @@ -31,7 +19,7 @@ var { View, } = ReactNative; -class UIExplorerTitle extends React.Component { +class RNTesterTitle extends React.Component { render() { return ( @@ -60,4 +48,4 @@ var styles = StyleSheet.create({ }, }); -module.exports = UIExplorerTitle; +module.exports = RNTesterTitle; diff --git a/Examples/UIExplorer/js/RTLExample.js b/RNTester/js/RTLExample.js similarity index 86% rename from Examples/UIExplorer/js/RTLExample.js rename to RNTester/js/RTLExample.js index ffdd8532c..eff1ddfdf 100644 --- a/Examples/UIExplorer/js/RTLExample.js +++ b/RNTester/js/RTLExample.js @@ -1,28 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * Here's the Right-to-Left(RTL) example page with: - * - a button to force flip UI layout to RTL - * - base layout example and text example - * - two custom examples for RTL design - * * @flow * @providesModule RTLExample */ @@ -47,8 +30,8 @@ const { const Platform = require('Platform'); -const UIExplorerPage = require('./UIExplorerPage'); -const UIExplorerBlock = require('./UIExplorerBlock'); +const RNTesterPage = require('./RNTesterPage'); +const RNTesterBlock = require('./RNTesterBlock'); type State = { toggleStatus: any, @@ -95,7 +78,7 @@ function ListItem(props) { function TextAlignmentExample(props) { return ( - @@ -114,7 +97,7 @@ function TextAlignmentExample(props) { '\u05D9\u05D9\u05E9\u05D5\u05E8 \u05D8\u05E7\u05E1\u05D8'} - + ); } @@ -173,15 +156,15 @@ class RTLExample extends React.Component { null ]} onLayout={this._onLayout}> - - + + {this.state.isRTL ? 'Right-to-Left' : 'Left-to-Right'} - - + + forceRTL @@ -193,13 +176,13 @@ class RTLExample extends React.Component { value={this.state.isRTL} /> - - + + - + - + - - + @@ -260,8 +243,8 @@ class RTLExample extends React.Component { }} /> - - + + ); } diff --git a/Examples/UIExplorer/js/RefreshControlExample.js b/RNTester/js/RefreshControlExample.js similarity index 80% rename from Examples/UIExplorer/js/RefreshControlExample.js rename to RNTester/js/RefreshControlExample.js index f8f79eb70..c2ef5b5fd 100644 --- a/Examples/UIExplorer/js/RefreshControlExample.js +++ b/RNTester/js/RefreshControlExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @providesModule RefreshControlExample */ 'use strict'; diff --git a/Examples/UIExplorer/js/RootViewSizeFlexibilityExampleApp.js b/RNTester/js/RootViewSizeFlexibilityExampleApp.js similarity index 70% rename from Examples/UIExplorer/js/RootViewSizeFlexibilityExampleApp.js rename to RNTester/js/RootViewSizeFlexibilityExampleApp.js index 0f2b88ab3..2a20876b3 100644 --- a/Examples/UIExplorer/js/RootViewSizeFlexibilityExampleApp.js +++ b/RNTester/js/RootViewSizeFlexibilityExampleApp.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule RootViewSizeFlexibilityExampleApp */ diff --git a/Examples/UIExplorer/js/ScrollViewExample.js b/RNTester/js/ScrollViewExample.js similarity index 86% rename from Examples/UIExplorer/js/ScrollViewExample.js rename to RNTester/js/ScrollViewExample.js index 1435c0319..91886054b 100644 --- a/Examples/UIExplorer/js/ScrollViewExample.js +++ b/RNTester/js/ScrollViewExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ScrollViewExample */ diff --git a/Examples/UIExplorer/js/ScrollViewSimpleExample.js b/RNTester/js/ScrollViewSimpleExample.js similarity index 73% rename from Examples/UIExplorer/js/ScrollViewSimpleExample.js rename to RNTester/js/ScrollViewSimpleExample.js index 7e3e1f35f..f1e18563a 100644 --- a/Examples/UIExplorer/js/ScrollViewSimpleExample.js +++ b/RNTester/js/ScrollViewSimpleExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ScrollViewSimpleExample */ diff --git a/Examples/UIExplorer/js/SectionListExample.js b/RNTester/js/SectionListExample.js similarity index 88% rename from Examples/UIExplorer/js/SectionListExample.js rename to RNTester/js/SectionListExample.js index 20d0368fc..51ab18369 100644 --- a/Examples/UIExplorer/js/SectionListExample.js +++ b/RNTester/js/SectionListExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule SectionListExample */ @@ -33,7 +21,7 @@ const { View, } = ReactNative; -const UIExplorerPage = require('./UIExplorerPage'); +const RNTesterPage = require('./RNTesterPage'); const infoLog = require('infoLog'); @@ -113,7 +101,7 @@ class SectionListExample extends React.PureComponent { startIndex = ii; } return ( - @@ -171,7 +159,7 @@ class SectionListExample extends React.PureComponent { style={styles.list} viewabilityConfig={VIEWABILITY_CONFIG} /> - + ); } diff --git a/Examples/UIExplorer/js/SegmentedControlIOSExample.js b/RNTester/js/SegmentedControlIOSExample.js similarity index 85% rename from Examples/UIExplorer/js/SegmentedControlIOSExample.js rename to RNTester/js/SegmentedControlIOSExample.js index 7a08a44d4..1634ce47c 100644 --- a/Examples/UIExplorer/js/SegmentedControlIOSExample.js +++ b/RNTester/js/SegmentedControlIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule SegmentedControlIOSExample */ diff --git a/Examples/UIExplorer/js/SetPropertiesExampleApp.js b/RNTester/js/SetPropertiesExampleApp.js similarity index 56% rename from Examples/UIExplorer/js/SetPropertiesExampleApp.js rename to RNTester/js/SetPropertiesExampleApp.js index 911688089..81f90ddb0 100644 --- a/Examples/UIExplorer/js/SetPropertiesExampleApp.js +++ b/RNTester/js/SetPropertiesExampleApp.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule SetPropertiesExampleApp */ diff --git a/Examples/UIExplorer/js/ShareExample.js b/RNTester/js/ShareExample.js similarity index 81% rename from Examples/UIExplorer/js/ShareExample.js rename to RNTester/js/ShareExample.js index a4a593062..3cb520b87 100644 --- a/Examples/UIExplorer/js/ShareExample.js +++ b/RNTester/js/ShareExample.js @@ -1,15 +1,10 @@ /** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. * * @flow * @providesModule ShareExample diff --git a/Examples/UIExplorer/js/SliderExample.js b/RNTester/js/SliderExample.js similarity index 84% rename from Examples/UIExplorer/js/SliderExample.js rename to RNTester/js/SliderExample.js index 497dcdc23..5b8e48d0a 100644 --- a/Examples/UIExplorer/js/SliderExample.js +++ b/RNTester/js/SliderExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule SliderExample */ diff --git a/Examples/UIExplorer/js/SnapshotExample.js b/RNTester/js/SnapshotExample.js similarity index 68% rename from Examples/UIExplorer/js/SnapshotExample.js rename to RNTester/js/SnapshotExample.js index 744e59440..db5631635 100644 --- a/Examples/UIExplorer/js/SnapshotExample.js +++ b/RNTester/js/SnapshotExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule SnapshotExample */ diff --git a/Examples/UIExplorer/js/StatusBarExample.js b/RNTester/js/StatusBarExample.js similarity index 94% rename from Examples/UIExplorer/js/StatusBarExample.js rename to RNTester/js/StatusBarExample.js index c85a20040..80e5a8ac7 100644 --- a/Examples/UIExplorer/js/StatusBarExample.js +++ b/RNTester/js/StatusBarExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule StatusBarExample */ diff --git a/Examples/UIExplorer/js/SwipeableListViewExample.js b/RNTester/js/SwipeableListViewExample.js similarity index 86% rename from Examples/UIExplorer/js/SwipeableListViewExample.js rename to RNTester/js/SwipeableListViewExample.js index 5d9ad7e63..2c7ab4230 100644 --- a/Examples/UIExplorer/js/SwipeableListViewExample.js +++ b/RNTester/js/SwipeableListViewExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule SwipeableListViewExample */ @@ -35,7 +23,7 @@ var { Alert, } = ReactNative; -var UIExplorerPage = require('./UIExplorerPage'); +var RNTesterPage = require('./RNTesterPage'); var SwipeableListViewSimpleExample = React.createClass({ statics: { @@ -58,7 +46,7 @@ var SwipeableListViewSimpleExample = React.createClass({ render: function() { return ( - '} noSpacer={true} noScroll={true}> @@ -78,7 +66,7 @@ var SwipeableListViewSimpleExample = React.createClass({ renderRow={this._renderRow} renderSeparator={this._renderSeperator} /> - + ); }, diff --git a/Examples/UIExplorer/js/SwitchExample.js b/RNTester/js/SwitchExample.js similarity index 85% rename from Examples/UIExplorer/js/SwitchExample.js rename to RNTester/js/SwitchExample.js index da59c5d85..508d5a035 100644 --- a/Examples/UIExplorer/js/SwitchExample.js +++ b/RNTester/js/SwitchExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule SwitchExample */ diff --git a/Examples/UIExplorer/js/TabBarIOSExample.js b/RNTester/js/TabBarIOSExample.js similarity index 86% rename from Examples/UIExplorer/js/TabBarIOSExample.js rename to RNTester/js/TabBarIOSExample.js index f6426cabe..3e214d54c 100644 --- a/Examples/UIExplorer/js/TabBarIOSExample.js +++ b/RNTester/js/TabBarIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule TabBarIOSExample */ diff --git a/Examples/UIExplorer/js/TextExample.android.js b/RNTester/js/TextExample.android.js similarity index 83% rename from Examples/UIExplorer/js/TextExample.android.js rename to RNTester/js/TextExample.android.js index f157f9e58..ec9ce1963 100644 --- a/Examples/UIExplorer/js/TextExample.android.js +++ b/RNTester/js/TextExample.android.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule TextExample */ @@ -31,8 +19,8 @@ var { Text, View, } = ReactNative; -var UIExplorerBlock = require('./UIExplorerBlock'); -var UIExplorerPage = require('./UIExplorerPage'); +var RNTesterBlock = require('./RNTesterBlock'); +var RNTesterPage = require('./RNTesterPage'); class Entity extends React.Component { render() { @@ -87,19 +75,19 @@ class TextExample extends React.Component { render() { return ( - - + + The text should wrap if it goes on multiple lines. See, this is going to the next line. - - + + This text is indented by 10px padding on all sides. - - + + Sans-Serif @@ -118,8 +106,8 @@ class TextExample extends React.Component { Monospace Bold (After 5.0) - - + + @@ -169,8 +157,8 @@ class TextExample extends React.Component { - - + + @@ -184,46 +172,46 @@ class TextExample extends React.Component { - + - + Size 23 Size 8 - - + + Red color Blue color - - + + Move fast and be bold Move fast and be bold - - + + Move fast and be bold Move fast and be bold - - + + Move fast and be bold - - + + Solid underline @@ -239,8 +227,8 @@ class TextExample extends React.Component { Mixed text with underline and line-through text nodes - - + + console.log('1st')}> (Normal text, console.log('2nd')}> @@ -282,8 +270,8 @@ class TextExample extends React.Component { Entity Name - - + + auto (default) - english LTR @@ -299,8 +287,8 @@ class TextExample extends React.Component { right right right right right right right right right right right right right - - + + @@ -323,24 +311,24 @@ class TextExample extends React.Component { - - + + A {'generated'} {' '} {'string'} and some     spaces - - + + Holisticly formulate inexpensive ideas before best-of-breed benefits. Continually expedite magnetic potentialities rather than client-focused interfaces. - - + + - - + + - - + + Red background, @@ -362,8 +350,8 @@ class TextExample extends React.Component { - - + + @@ -374,8 +362,8 @@ class TextExample extends React.Component { {"containerBackgroundColor: 'transparent' + backgroundColor wash"} - - + + Maximum of one line no matter now much I write here. If I keep writing it{"'"}ll just truncate after one line @@ -385,28 +373,28 @@ class TextExample extends React.Component { No maximum lines specified no matter now much I write here. If I keep writing it{"'"}ll just keep going and going - - + + This text is selectable if you click-and-hold, and will offer the native Android selection menus. - - + + This text will have a orange highlight on selection. - - + + This text contains an inline image . Neat, huh? - - + + Demo text shadow - - + + This very long text should be truncated with dots in the end. @@ -416,8 +404,8 @@ class TextExample extends React.Component { This very long text should be truncated with dots in the beginning. - - + + @@ -433,8 +421,8 @@ class TextExample extends React.Component { By default Android will put extra space above text to allow for upper-case accents or other ascenders. With some fonts, this can make text look slightly misaligned when centered vertically. - - + + ); } } diff --git a/Examples/UIExplorer/js/TextExample.ios.js b/RNTester/js/TextExample.ios.js similarity index 96% rename from Examples/UIExplorer/js/TextExample.ios.js rename to RNTester/js/TextExample.ios.js index 941b12024..53e9ef83d 100644 --- a/Examples/UIExplorer/js/TextExample.ios.js +++ b/RNTester/js/TextExample.ios.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule TextExample */ diff --git a/Examples/UIExplorer/js/TextInputExample.android.js b/RNTester/js/TextInputExample.android.js similarity index 96% rename from Examples/UIExplorer/js/TextInputExample.android.js rename to RNTester/js/TextInputExample.android.js index 5f253e39b..83a4ac124 100644 --- a/Examples/UIExplorer/js/TextInputExample.android.js +++ b/RNTester/js/TextInputExample.android.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule TextInputExample */ diff --git a/Examples/UIExplorer/js/TextInputExample.ios.js b/RNTester/js/TextInputExample.ios.js similarity index 96% rename from Examples/UIExplorer/js/TextInputExample.ios.js rename to RNTester/js/TextInputExample.ios.js index 89f8ccaff..0d22d1741 100644 --- a/Examples/UIExplorer/js/TextInputExample.ios.js +++ b/RNTester/js/TextInputExample.ios.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule TextInputExample */ diff --git a/Examples/UIExplorer/js/Thumbnails/bandaged.png b/RNTester/js/Thumbnails/bandaged.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/bandaged.png rename to RNTester/js/Thumbnails/bandaged.png diff --git a/Examples/UIExplorer/js/Thumbnails/call.png b/RNTester/js/Thumbnails/call.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/call.png rename to RNTester/js/Thumbnails/call.png diff --git a/Examples/UIExplorer/js/Thumbnails/dislike.png b/RNTester/js/Thumbnails/dislike.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/dislike.png rename to RNTester/js/Thumbnails/dislike.png diff --git a/Examples/UIExplorer/js/Thumbnails/fist.png b/RNTester/js/Thumbnails/fist.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/fist.png rename to RNTester/js/Thumbnails/fist.png diff --git a/Examples/UIExplorer/js/Thumbnails/flowers.png b/RNTester/js/Thumbnails/flowers.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/flowers.png rename to RNTester/js/Thumbnails/flowers.png diff --git a/Examples/UIExplorer/js/Thumbnails/heart.png b/RNTester/js/Thumbnails/heart.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/heart.png rename to RNTester/js/Thumbnails/heart.png diff --git a/Examples/UIExplorer/js/Thumbnails/like.png b/RNTester/js/Thumbnails/like.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/like.png rename to RNTester/js/Thumbnails/like.png diff --git a/Examples/UIExplorer/js/Thumbnails/liking.png b/RNTester/js/Thumbnails/liking.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/liking.png rename to RNTester/js/Thumbnails/liking.png diff --git a/Examples/UIExplorer/js/Thumbnails/party.png b/RNTester/js/Thumbnails/party.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/party.png rename to RNTester/js/Thumbnails/party.png diff --git a/Examples/UIExplorer/js/Thumbnails/poke.png b/RNTester/js/Thumbnails/poke.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/poke.png rename to RNTester/js/Thumbnails/poke.png diff --git a/Examples/UIExplorer/js/Thumbnails/superlike.png b/RNTester/js/Thumbnails/superlike.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/superlike.png rename to RNTester/js/Thumbnails/superlike.png diff --git a/Examples/UIExplorer/js/Thumbnails/victory.png b/RNTester/js/Thumbnails/victory.png similarity index 100% rename from Examples/UIExplorer/js/Thumbnails/victory.png rename to RNTester/js/Thumbnails/victory.png diff --git a/Examples/UIExplorer/js/TimePickerAndroidExample.js b/RNTester/js/TimePickerAndroidExample.js similarity index 70% rename from Examples/UIExplorer/js/TimePickerAndroidExample.js rename to RNTester/js/TimePickerAndroidExample.js index 955209d75..a5b243b5e 100644 --- a/Examples/UIExplorer/js/TimePickerAndroidExample.js +++ b/RNTester/js/TimePickerAndroidExample.js @@ -1,22 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * @providesModule TimePickerAndroidExample */ 'use strict'; @@ -30,8 +19,8 @@ var { TouchableWithoutFeedback, } = ReactNative; -var UIExplorerBlock = require('./UIExplorerBlock'); -var UIExplorerPage = require('./UIExplorerPage'); +var RNTesterBlock = require('./RNTesterBlock'); +var RNTesterPage = require('./RNTesterPage'); class TimePickerAndroidExample extends React.Component { static title = 'TimePickerAndroid'; @@ -64,14 +53,14 @@ class TimePickerAndroidExample extends React.Component { render() { return ( - - + + {this.state.simpleText} - - + + {this.state.presetText} - + - + {this.state.isoFormatText} - - + + ); } } diff --git a/Examples/UIExplorer/js/TimerExample.js b/RNTester/js/TimerExample.js similarity index 83% rename from Examples/UIExplorer/js/TimerExample.js rename to RNTester/js/TimerExample.js index c24ca6864..6f2705b70 100644 --- a/Examples/UIExplorer/js/TimerExample.js +++ b/RNTester/js/TimerExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule TimerExample */ @@ -33,7 +21,7 @@ var { View, } = ReactNative; var TimerMixin = require('react-timer-mixin'); -var UIExplorerButton = require('./UIExplorerButton'); +var RNTesterButton = require('./RNTesterButton'); var performanceNow = require('fbjs/lib/performanceNow'); function burnCPU(milliseconds) { @@ -56,21 +44,21 @@ class RequestIdleCallbackTester extends React.Component { render() { return ( - + Run requestIdleCallback - + - + Burn CPU inside of requestIdleCallback - + - + Run background task - + - + Stop background task - + {this.state.message} @@ -121,9 +109,9 @@ var TimerTester = React.createClass({ render: function() { var args = 'fn' + (this.props.dt !== undefined ? ', ' + this.props.dt : ''); return ( - + Measure: {this.props.type}({args}) - {this._ii || 0} - + ); }, @@ -253,9 +241,9 @@ exports.examples = [ return ( {this.state.showTimer && this._renderTimer()} - + {this.state.showTimer ? 'Unmount timer' : 'Mount new timer'} - + ); } @@ -264,9 +252,9 @@ exports.examples = [ return ( - this.refs.interval.clear() }> + this.refs.interval.clear() }> Clear interval - + ); }; diff --git a/Examples/UIExplorer/js/ToastAndroidExample.android.js b/RNTester/js/ToastAndroidExample.android.js similarity index 65% rename from Examples/UIExplorer/js/ToastAndroidExample.android.js rename to RNTester/js/ToastAndroidExample.android.js index 35e6e8b9c..34dc88e99 100644 --- a/Examples/UIExplorer/js/ToastAndroidExample.android.js +++ b/RNTester/js/ToastAndroidExample.android.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ToastAndroidExample */ @@ -33,8 +21,8 @@ var { TouchableWithoutFeedback, } = ReactNative; -var UIExplorerBlock = require('UIExplorerBlock'); -var UIExplorerPage = require('UIExplorerPage'); +var RNTesterBlock = require('RNTesterBlock'); +var RNTesterPage = require('RNTesterPage'); class ToastExample extends React.Component { static title = 'Toast Example'; @@ -43,22 +31,22 @@ class ToastExample extends React.Component { render() { return ( - - + + ToastAndroid.show('This is a toast with short duration', ToastAndroid.SHORT)}> Click me. - - + + ToastAndroid.show('This is a toast with long duration', ToastAndroid.LONG)}> Click me. - - + + ToastAndroid.showWithGravity( @@ -69,8 +57,8 @@ class ToastExample extends React.Component { }> Click me. - - + + ToastAndroid.showWithGravity( @@ -81,8 +69,8 @@ class ToastExample extends React.Component { }> Click me. - - + + ToastAndroid.showWithGravity( @@ -93,8 +81,8 @@ class ToastExample extends React.Component { }> Click me. - - + + ); } } diff --git a/Examples/UIExplorer/js/ToolbarAndroidExample.android.js b/RNTester/js/ToolbarAndroidExample.android.js similarity index 72% rename from Examples/UIExplorer/js/ToolbarAndroidExample.android.js rename to RNTester/js/ToolbarAndroidExample.android.js index 5fc0c174e..b337798cd 100644 --- a/Examples/UIExplorer/js/ToolbarAndroidExample.android.js +++ b/RNTester/js/ToolbarAndroidExample.android.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ToolbarAndroidExample */ @@ -32,8 +20,8 @@ var { Text, View, } = ReactNative; -var UIExplorerBlock = require('./UIExplorerBlock'); -var UIExplorerPage = require('./UIExplorerPage'); +var RNTesterBlock = require('./RNTesterBlock'); +var RNTesterPage = require('./RNTesterPage'); var Switch = require('Switch'); var ToolbarAndroid = require('ToolbarAndroid'); @@ -53,8 +41,8 @@ class ToolbarAndroidExample extends React.Component { render() { return ( - - + + {this.state.actionText} - - + + {'\'Tis but a switch'} - - + + - - + + - - + + Touch the icon to reset the custom colors to the default (theme-provided) ones. - - + + - - + + - - + + ); } diff --git a/Examples/UIExplorer/js/TouchableExample.js b/RNTester/js/TouchableExample.js similarity index 95% rename from Examples/UIExplorer/js/TouchableExample.js rename to RNTester/js/TouchableExample.js index ede3f1ccb..838402dbf 100644 --- a/Examples/UIExplorer/js/TouchableExample.js +++ b/RNTester/js/TouchableExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule TouchableExample */ diff --git a/Examples/UIExplorer/js/TransformExample.js b/RNTester/js/TransformExample.js similarity index 90% rename from Examples/UIExplorer/js/TransformExample.js rename to RNTester/js/TransformExample.js index ae396bf4f..92d60186a 100644 --- a/Examples/UIExplorer/js/TransformExample.js +++ b/RNTester/js/TransformExample.js @@ -1,22 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * @flow * @providesModule TransformExample */ diff --git a/Examples/UIExplorer/js/TransparentHitTestExample.js b/RNTester/js/TransparentHitTestExample.js similarity index 100% rename from Examples/UIExplorer/js/TransparentHitTestExample.js rename to RNTester/js/TransparentHitTestExample.js diff --git a/RNTester/js/URIActionMap.js b/RNTester/js/URIActionMap.js new file mode 100644 index 000000000..76c108f59 --- /dev/null +++ b/RNTester/js/URIActionMap.js @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @flow + * @providesModule URIActionMap + */ +'use strict'; + +const ReactNative = require('react-native'); +const RNTesterActions = require('./RNTesterActions'); +// $FlowFixMe : This is a platform-forked component, and flow seems to only run on iOS? +const RNTesterList = require('./RNTesterList'); + +const { + Alert, +} = ReactNative; + +import type { RNTesterAction } from './RNTesterActions'; + +function PathActionMap(path: string): ?RNTesterAction { + // Warning! Hacky parsing for example code. Use a library for this! + const exampleParts = path.split('/example/'); + const exampleKey = exampleParts[1]; + if (exampleKey) { + if (!RNTesterList.Modules[exampleKey]) { + Alert.alert(`${exampleKey} example could not be found!`); + return null; + } + return RNTesterActions.ExampleAction(exampleKey); + } + return null; +} + +function URIActionMap(uri: ?string): ?RNTesterAction { + if (!uri) { + return null; + } + // Warning! Hacky parsing for example code. Use a library for this! + const parts = uri.split('rntester:/'); + if (!parts[1]) { + return null; + } + const path = parts[1]; + return PathActionMap(path); +} + +module.exports = URIActionMap; diff --git a/Examples/UIExplorer/js/VibrationExample.js b/RNTester/js/VibrationExample.js similarity index 81% rename from Examples/UIExplorer/js/VibrationExample.js rename to RNTester/js/VibrationExample.js index 27e94eb26..4e68083d7 100644 --- a/Examples/UIExplorer/js/VibrationExample.js +++ b/RNTester/js/VibrationExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule VibrationExample */ diff --git a/Examples/UIExplorer/js/VibrationIOSExample.js b/RNTester/js/VibrationIOSExample.js similarity index 61% rename from Examples/UIExplorer/js/VibrationIOSExample.js rename to RNTester/js/VibrationIOSExample.js index 66e26e0c7..24b4342cc 100644 --- a/Examples/UIExplorer/js/VibrationIOSExample.js +++ b/RNTester/js/VibrationIOSExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule VibrationIOSExample */ diff --git a/Examples/UIExplorer/js/ViewExample.js b/RNTester/js/ViewExample.js similarity index 90% rename from Examples/UIExplorer/js/ViewExample.js rename to RNTester/js/ViewExample.js index 5239558b7..90a70f3ea 100644 --- a/Examples/UIExplorer/js/ViewExample.js +++ b/RNTester/js/ViewExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule ViewExample */ diff --git a/Examples/UIExplorer/js/ViewPagerAndroidExample.android.js b/RNTester/js/ViewPagerAndroidExample.android.js similarity index 91% rename from Examples/UIExplorer/js/ViewPagerAndroidExample.android.js rename to RNTester/js/ViewPagerAndroidExample.android.js index 9ff7eb17e..f59a59dc4 100644 --- a/Examples/UIExplorer/js/ViewPagerAndroidExample.android.js +++ b/RNTester/js/ViewPagerAndroidExample.android.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @providesModule ViewPagerAndroidExample */ 'use strict'; diff --git a/Examples/UIExplorer/js/WebSocketExample.js b/RNTester/js/WebSocketExample.js similarity index 90% rename from Examples/UIExplorer/js/WebSocketExample.js rename to RNTester/js/WebSocketExample.js index 2c3c227bd..5c8e54fe2 100644 --- a/Examples/UIExplorer/js/WebSocketExample.js +++ b/RNTester/js/WebSocketExample.js @@ -1,23 +1,11 @@ /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule WebSocketExample */ @@ -200,7 +188,7 @@ class WebSocketExample extends React.Component { To start the WS test server: - ./Examples/UIExplorer/js/websocket_test_server.js + ./RNTester/js/websocket_test_server.js { To start the HTTP test server: - ./Examples/UIExplorer/http_test_server.js + ./RNTester/http_test_server.js { + + class ExamplePage extends React.Component { + render() { + return ; + } + } + + return ExamplePage; +}; + +module.exports = createExamplePage; diff --git a/Examples/UIExplorer/js/flux@3x.png b/RNTester/js/flux@3x.png similarity index 100% rename from Examples/UIExplorer/js/flux@3x.png rename to RNTester/js/flux@3x.png diff --git a/Examples/UIExplorer/js/hawk.png b/RNTester/js/hawk.png similarity index 100% rename from Examples/UIExplorer/js/hawk.png rename to RNTester/js/hawk.png diff --git a/Examples/UIExplorer/js/helloworld.html b/RNTester/js/helloworld.html similarity index 100% rename from Examples/UIExplorer/js/helloworld.html rename to RNTester/js/helloworld.html diff --git a/Examples/UIExplorer/js/http_test_server.js b/RNTester/js/http_test_server.js similarity index 52% rename from Examples/UIExplorer/js/http_test_server.js rename to RNTester/js/http_test_server.js index b537d8151..3c18d9abb 100644 --- a/Examples/UIExplorer/js/http_test_server.js +++ b/RNTester/js/http_test_server.js @@ -1,17 +1,11 @@ #!/usr/bin/env node - /** - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. * * @flow * @providesModule http_test_server diff --git a/Examples/UIExplorer/js/messagingtest.html b/RNTester/js/messagingtest.html similarity index 100% rename from Examples/UIExplorer/js/messagingtest.html rename to RNTester/js/messagingtest.html diff --git a/Examples/UIExplorer/js/relay@3x.png b/RNTester/js/relay@3x.png similarity index 100% rename from Examples/UIExplorer/js/relay@3x.png rename to RNTester/js/relay@3x.png diff --git a/Examples/UIExplorer/js/slider-left.png b/RNTester/js/slider-left.png similarity index 100% rename from Examples/UIExplorer/js/slider-left.png rename to RNTester/js/slider-left.png diff --git a/Examples/UIExplorer/js/slider-left@2x.png b/RNTester/js/slider-left@2x.png similarity index 100% rename from Examples/UIExplorer/js/slider-left@2x.png rename to RNTester/js/slider-left@2x.png diff --git a/Examples/UIExplorer/js/slider-right.png b/RNTester/js/slider-right.png similarity index 100% rename from Examples/UIExplorer/js/slider-right.png rename to RNTester/js/slider-right.png diff --git a/Examples/UIExplorer/js/slider-right@2x.png b/RNTester/js/slider-right@2x.png similarity index 100% rename from Examples/UIExplorer/js/slider-right@2x.png rename to RNTester/js/slider-right@2x.png diff --git a/Examples/UIExplorer/js/slider.png b/RNTester/js/slider.png similarity index 100% rename from Examples/UIExplorer/js/slider.png rename to RNTester/js/slider.png diff --git a/Examples/UIExplorer/js/slider@2x.png b/RNTester/js/slider@2x.png similarity index 100% rename from Examples/UIExplorer/js/slider@2x.png rename to RNTester/js/slider@2x.png diff --git a/Examples/UIExplorer/js/uie_comment_highlighted@2x.png b/RNTester/js/uie_comment_highlighted@2x.png similarity index 100% rename from Examples/UIExplorer/js/uie_comment_highlighted@2x.png rename to RNTester/js/uie_comment_highlighted@2x.png diff --git a/Examples/UIExplorer/js/uie_comment_normal@2x.png b/RNTester/js/uie_comment_normal@2x.png similarity index 100% rename from Examples/UIExplorer/js/uie_comment_normal@2x.png rename to RNTester/js/uie_comment_normal@2x.png diff --git a/Examples/UIExplorer/js/uie_thumb_big.png b/RNTester/js/uie_thumb_big.png similarity index 100% rename from Examples/UIExplorer/js/uie_thumb_big.png rename to RNTester/js/uie_thumb_big.png diff --git a/Examples/UIExplorer/js/uie_thumb_normal@2x.png b/RNTester/js/uie_thumb_normal@2x.png similarity index 100% rename from Examples/UIExplorer/js/uie_thumb_normal@2x.png rename to RNTester/js/uie_thumb_normal@2x.png diff --git a/Examples/UIExplorer/js/uie_thumb_selected@2x.png b/RNTester/js/uie_thumb_selected@2x.png similarity index 100% rename from Examples/UIExplorer/js/uie_thumb_selected@2x.png rename to RNTester/js/uie_thumb_selected@2x.png diff --git a/Examples/UIExplorer/js/websocket_test_server.js b/RNTester/js/websocket_test_server.js similarity index 62% rename from Examples/UIExplorer/js/websocket_test_server.js rename to RNTester/js/websocket_test_server.js index affe8d476..21900cdde 100644 --- a/Examples/UIExplorer/js/websocket_test_server.js +++ b/RNTester/js/websocket_test_server.js @@ -1,25 +1,12 @@ #!/usr/bin/env node - /** - * Copyright (c) 2013-present, Facebook, Inc. + * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * The examples provided by Facebook are for non-commercial testing and - * evaluation purposes only. - * - * Facebook reserves all rights not expressly granted. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL - * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN - * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * * @flow * @providesModule websocket_test_server */ diff --git a/package.json b/package.json index c2282488d..937a212fb 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "scripts": { "test": "jest", "flow": "flow", - "lint": "eslint Examples/ Libraries/", + "lint": "eslint RNTester/ Libraries/", "start": "/usr/bin/env bash -c './packager/packager.sh \"$@\" || true' --", "test-android-setup": "docker pull containership/android-base:latest", "test-android-build": "docker build -t react/android -f ContainerShip/Dockerfile.android .", diff --git a/runXcodeTests.sh b/runXcodeTests.sh index fda82d67f..d4524a4a6 100755 --- a/runXcodeTests.sh +++ b/runXcodeTests.sh @@ -11,8 +11,8 @@ if [ -z "$1" ] fi xctool \ - -project Examples/UIExplorer/UIExplorer.xcodeproj \ - -scheme UIExplorer \ + -project RNTester/RNTester.xcodeproj \ + -scheme RNTester \ -sdk iphonesimulator${1} \ -destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \ build test diff --git a/scripts/objc-test-ios.sh b/scripts/objc-test-ios.sh index 92afdecd2..6b3ecec1d 100755 --- a/scripts/objc-test-ios.sh +++ b/scripts/objc-test-ios.sh @@ -3,9 +3,9 @@ set -ex # Script used to run iOS tests. # If not arguments are passed to the script, it will only compile -# the UIExplorer. +# the RNTester. # If the script is called with a single argument "test", we'll -# also run the UIExplorer integration test (needs JS and packager): +# also run the RNTester integration test (needs JS and packager): # ./objc-test-ios.sh test SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) @@ -13,7 +13,7 @@ ROOT=$(dirname "$SCRIPTS") cd "$ROOT" -SCHEME="UIExplorer" +SCHEME="RNTester" SDK="iphonesimulator" DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=10.1" diff --git a/scripts/objc-test-tvos.sh b/scripts/objc-test-tvos.sh index dc055821a..f5841c8f3 100755 --- a/scripts/objc-test-tvos.sh +++ b/scripts/objc-test-tvos.sh @@ -3,9 +3,9 @@ set -ex # Script used to run tvOS tests. # If not arguments are passed to the script, it will only compile -# the UIExplorer. +# the RNTester. # If the script is called with a single argument "test", we'll -# also run the UIExplorer integration test (needs JS and packager): +# also run the RNTester integration test (needs JS and packager): # ./objc-test-tvos.sh test SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) @@ -13,7 +13,7 @@ ROOT=$(dirname "$SCRIPTS") cd "$ROOT" -SCHEME="UIExplorer-tvOS" +SCHEME="RNTester-tvOS" SDK="appletvsimulator" DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p,OS=10.1" diff --git a/scripts/objc-test.sh b/scripts/objc-test.sh index 7555b6d7c..019da0a2a 100755 --- a/scripts/objc-test.sh +++ b/scripts/objc-test.sh @@ -4,9 +4,9 @@ set -ex # Script used to run iOS and tvOS tests. # Environment variables are used to configure what test to run. # If not arguments are passed to the script, it will only compile -# the UIExplorer. +# the RNTester. # If the script is called with a single argument "test", we'll -# also run the UIExplorer integration test (needs JS and packager). +# also run the RNTester integration test (needs JS and packager). # ./objc-test.sh test SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) @@ -32,7 +32,7 @@ function cleanup { trap cleanup EXIT # If first argument is "test", actually start the packager and run tests. -# Otherwise, just build UIExplorer for tvOS and exit +# Otherwise, just build RNTester for tvOS and exit if [ "$1" = "test" ]; then @@ -41,11 +41,11 @@ open "./packager/launchPackager.command" || echo "Can't start packager automatic # Start the WebSocket test server open "./IntegrationTests/launchWebSocketServer.command" || echo "Can't start web socket server automatically" -# Preload the UIExplorerApp bundle for better performance in integration tests +# Preload the RNTesterApp bundle for better performance in integration tests sleep 20 -curl 'http://localhost:8081/Examples/UIExplorer/js/UIExplorerApp.ios.bundle?platform=ios&dev=true' -o temp.bundle +curl 'http://localhost:8081/RNTester/js/RNTesterApp.ios.bundle?platform=ios&dev=true' -o temp.bundle rm temp.bundle -curl 'http://localhost:8081/Examples/UIExplorer/js/UIExplorerApp.ios.bundle?platform=ios&dev=true&minify=false' -o temp.bundle +curl 'http://localhost:8081/RNTester/js/RNTesterApp.ios.bundle?platform=ios&dev=true&minify=false' -o temp.bundle rm temp.bundle curl 'http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=ios&dev=true' -o temp.bundle rm temp.bundle @@ -57,7 +57,7 @@ rm temp.bundle # the tests before running them. Switch back when this issue with xctool has # been resolved. xcodebuild \ - -project "Examples/UIExplorer/UIExplorer.xcodeproj" \ + -project "RNTester/RNTester.xcodeproj" \ -scheme $SCHEME \ -sdk $SDK \ -destination "$DESTINATION" \ @@ -70,7 +70,7 @@ else # the tests before running them. Switch back when this issue with xctool has # been resolved. xcodebuild \ - -project "Examples/UIExplorer/UIExplorer.xcodeproj" \ + -project "RNTester/RNTester.xcodeproj" \ -scheme $SCHEME \ -sdk $SDK \ build diff --git a/scripts/test-manual-e2e.sh b/scripts/test-manual-e2e.sh index 241dcbbe7..7159edde7 100755 --- a/scripts/test-manual-e2e.sh +++ b/scripts/test-manual-e2e.sh @@ -47,19 +47,19 @@ info "and then press any key." info "" read -n 1 -./gradlew :Examples:UIExplorer:android:app:installDebug || error "Couln't build UIExplorer Android" +./gradlew :RNTester:android:app:installDebug || error "Couln't build RNTester Android" -info "Press any key to run UIExplorer in an already running Android emulator/device" +info "Press any key to run RNTester in an already running Android emulator/device" info "" read -n 1 -adb shell am start -n com.facebook.react.uiapp/.UIExplorerActivity +adb shell am start -n com.facebook.react.uiapp/.RNTesterActivity info "Press any key to open the project in Xcode, then build and test manually." info "" read -n 1 -open "Examples/UIExplorer/UIExplorer.xcodeproj" +open "RNTester/RNTester.xcodeproj" -info "When done testing UIExplorer app on iOS and Android press any key to continue." +info "When done testing RNTester app on iOS and Android press any key to continue." info "" read -n 1 diff --git a/settings.gradle b/settings.gradle index ccc7b3b96..b88e8fba2 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,3 @@ // Copyright 2004-present Facebook. All Rights Reserved. -include ':ReactAndroid', ':Examples:UIExplorer:android:app', ':Examples:Movies:android:app', ':Examples:TicTacToe:android:app' +include ':ReactAndroid', ':RNTester:android:app', ':Examples:Movies:android:app', ':Examples:TicTacToe:android:app' diff --git a/website/src/react-native/support.js b/website/src/react-native/support.js index b256d64c6..4841e4395 100644 --- a/website/src/react-native/support.js +++ b/website/src/react-native/support.js @@ -60,7 +60,7 @@ var support = React.createClass({ Building the F8 2016 App
  • - UIExplorer + RNTester
  • Movies