├── .editorconfig
├── .eslintrc
├── .gitignore
├── .npmignore
├── .travis.yml
├── .travis
├── before-cache.sh
├── before-ci.sh
├── before-install.sh
├── ci.sh
└── install.sh
├── LICENSE
├── README.md
├── android
├── build.gradle
└── src
│ └── main
│ ├── AndroidManifest.xml
│ └── java
│ └── com
│ └── gettipsi
│ └── boilerplate
│ ├── RNBoilerplateModule.java
│ └── RNBoilerplateReactPackage.java
├── example
├── .appiumhelperrc
├── .babelrc
├── .buckconfig
├── .flowconfig
├── .gitattributes
├── .gitignore
├── .watchmanconfig
├── __tests__
│ ├── 01_test_simple_view.js
│ └── setup
│ │ └── elements.js
├── android
│ ├── app
│ │ ├── BUCK
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MainApplication.java
│ │ │ └── res
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── keystores
│ │ ├── BUCK
│ │ └── debug.keystore.properties
│ └── settings.gradle
├── app.json
├── index.android.js
├── index.ios.js
├── ios
│ ├── Podfile
│ ├── example-tvOS
│ │ └── Info.plist
│ ├── example-tvOSTests
│ │ └── Info.plist
│ ├── example.xcodeproj
│ │ ├── project.pbxproj
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ ├── example-tvOS.xcscheme
│ │ │ └── example.xcscheme
│ ├── example.xcworkspace
│ │ └── contents.xcworkspacedata
│ ├── example
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Base.lproj
│ │ │ └── LaunchScreen.xib
│ │ ├── Images.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── Info.plist
│ │ └── main.m
│ └── exampleTests
│ │ ├── Info.plist
│ │ └── exampleTests.m
└── package.json
├── ios
├── RNModule.xcodeproj
│ └── project.pbxproj
└── RNModule
│ ├── RNComponent.h
│ ├── RNComponent.m
│ ├── RNComponentManager.h
│ ├── RNComponentManager.m
│ ├── RNModule.h
│ ├── RNModule.m
│ ├── RNModuleManager.h
│ └── RNModuleManager.m
├── package.json
├── scripts
├── copy-from-node-modules.sh
├── local-ci.sh
├── post-link-android.sh
├── post-link-ios.sh
├── post-link.sh
└── pre-link.sh
└── src
├── RNComponent.android.js
├── RNComponent.ios.js
├── RNModule.android.js
├── RNModule.ios.js
└── index.js
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "tipsi"
3 | }
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 | Podfile.lock
25 | Pods/
26 |
27 | # Built application files
28 | #
29 | *.apk
30 | *.ap_
31 |
32 | # Files for the ART/Dalvik VM
33 | #
34 | *.dex
35 |
36 | # Java class files
37 | #
38 | *.class
39 |
40 | # Generated files
41 | #
42 | bin/
43 | gen/
44 | out/
45 |
46 | # Gradle files
47 | #
48 | build/
49 | *.iml
50 | .idea
51 | .gradle
52 | local.properties
53 | *.hprof
54 |
55 | # Proguard folder generated by Eclipse
56 | #
57 | proguard/
58 | .navigation/
59 |
60 | # Android Studio captures folder
61 | captures/
62 |
63 | # Keystore files
64 | #
65 | *.jks
66 | android/gradlew
67 | android/gradlew.bat
68 | android/gradle/wrapper/gradle-wrapper.jar
69 | android/gradle/wrapper/gradle-wrapper.properties
70 |
71 | # node.js
72 | #
73 | node_modules/
74 | npm-debug.log
75 |
76 | tmp
77 | example_tmp
78 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | .babelrc
2 | .eslintrc
3 | .travis
4 | .travis.yml
5 | example
6 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | matrix:
2 | include:
3 | - os: osx
4 | language: objective-c
5 | osx_image: xcode8
6 | - os: linux
7 | language: android
8 | jdk: oraclejdk8
9 | sudo: required
10 | android:
11 | components:
12 | - platform-tools
13 | - tools
14 | - build-tools-25.0.1
15 | - android-25
16 | - sys-img-armeabi-v7a-android-23
17 | - extra-android-m2repository
18 | - extra-google-m2repository
19 | - extra-google-google_play_services
20 |
21 | cache:
22 | directories:
23 | - $HOME/.nvm
24 | - $HOME/.npm
25 | - $HOME/.cocoapods
26 | - $HOME/.gradle/caches/
27 | - $HOME/.gradle/wrapper/
28 | - example/node_modules
29 |
30 | before_cache: .travis/before-cache.sh
31 | before_install: . .travis/before-install.sh
32 | install: .travis/install.sh
33 | before_script: .travis/before-ci.sh
34 | script: .travis/ci.sh
35 |
--------------------------------------------------------------------------------
/.travis/before-cache.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | case "${TRAVIS_OS_NAME}" in
4 | osx)
5 | rm -rf example_tmp/node_modules/react-native-module-boilerplate
6 | ;;
7 | linux)
8 | rm -rf example_tmp/node_modules/react-native-module-boilerplate
9 | rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
10 | ;;
11 | esac
12 |
--------------------------------------------------------------------------------
/.travis/before-ci.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | case "${TRAVIS_OS_NAME}" in
4 | osx)
5 | example_tmp/node_modules/.bin/appium --session-override > appium.out &
6 | ;;
7 | linux)
8 | echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a --skin WVGA800
9 | emulator -avd test -scale 96dpi -dpi-device 160 -no-audio -no-window &
10 | android-wait-for-emulator
11 | sleep 60
12 | adb shell input keyevent 82 &
13 | example_tmp/node_modules/.bin/appium --session-override > appium.out &
14 | ;;
15 | esac
16 |
--------------------------------------------------------------------------------
/.travis/before-install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | init_new_example_project() {
4 | proj_dir_old=example
5 | proj_dir_new=example_tmp
6 |
7 | react_native_version=$(cat $proj_dir_old/package.json | sed -n 's/"react-native": "\(\^|~\)*\(.*\)",*/\2/p')
8 |
9 | files_to_copy=(
10 | .appiumhelperrc
11 | .babelrc
12 | package.json
13 | index.{ios,android}.js
14 | android/app/build.gradle
15 | src
16 | scripts
17 | __tests__
18 | )
19 |
20 | mkdir tmp
21 | cd tmp
22 | react-native init $proj_dir_old --version $react_native_version
23 | cd ..
24 | mv tmp/$proj_dir_old $proj_dir_new
25 | rm -rf $proj_dir_new/__tests__
26 |
27 | for i in ${files_to_copy[@]}; do
28 | if [ -e $proj_dir_old/$i ]; then
29 | cp -Rp $proj_dir_old/$i $proj_dir_new/$i
30 | fi
31 | done
32 | }
33 |
34 | case "${TRAVIS_OS_NAME}" in
35 | osx)
36 | $HOME/.nvm/nvm.sh
37 | nvm install 7.2.0
38 | gem install cocoapods -v 1.1.1
39 | travis_wait pod repo update --silent
40 | npm install -g react-native-cli
41 | init_new_example_project
42 | ;;
43 | linux)
44 | $HOME/.nvm/nvm.sh
45 | nvm install 7.2.0
46 | npm install -g react-native-cli
47 | init_new_example_project
48 | ;;
49 | esac
50 |
--------------------------------------------------------------------------------
/.travis/ci.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | case "${TRAVIS_OS_NAME}" in
4 | osx)
5 | cd example_tmp
6 | set -o pipefail && npm run build:ios | xcpretty -c -f `xcpretty-travis-formatter`
7 | npm run test:ios
8 | ;;
9 | linux)
10 | cd example_tmp
11 | npm run build:android
12 | npm run test:android
13 | ;;
14 | esac
15 |
--------------------------------------------------------------------------------
/.travis/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | library_name=$(node -p "require('./package.json').name")
4 |
5 | case "${TRAVIS_OS_NAME}" in
6 | osx)
7 | cd example_tmp
8 | npm install
9 | react-native unlink $library_name
10 | react-native link
11 | ;;
12 | linux)
13 | cd example_tmp
14 | npm install
15 | react-native unlink $library_name
16 | react-native link
17 | ;;
18 | esac
19 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Anton Kuznetsov
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-native-module-boilerplate
2 | [](https://travis-ci.org/tipsi/react-native-module-boilerplate)
3 |
4 | 1. Fork project
5 |
6 | 2. You need to rename (react-native-module-boilerplate) scripts:
7 |
8 | 1. `.travis/before-cache.sh`
9 | 2. `scripts/copy-from-node-modules.sh`
10 | 3. `scripts/local-ci.sh`
11 | 4. `scripts/post-link-android.sh`
12 | 5. `scripts/pre-link.sh`
13 | 6. `package.json`
14 |
15 | 3. Android part
16 |
17 | 1. `android/src/main/java/com/gettipsi/boilerplate` => `android/src/main/java/com/%YOUR_COMPANY%/%YOUR_MODULE_NAME%`
18 | 2. `android/src/main/java/com/gettipsi/boilerplate/RNBoilerplateModule.java`
19 | 3. `android/src/main/java/com/gettipsi/boilerplate/RNBoilerplateReactPackage.java`
20 | 4. `android/src/main/AndroidManifest.xml`
21 |
22 | 4. `src` folder
23 |
24 | 1. `src/*.js`
25 |
26 | 5. `example` folder
27 |
28 | 1. `package.json`
29 | 2. `index.ios.js`
30 | 3. `index.android.js`
31 | 4. `android/app/build.gradle`
32 | 5. `android/settings.gradle`
33 |
34 | 6. iOS part
35 |
36 | 1. `open ios/RNModule.xcodeproj`
37 | 2. Rename project in Xcode, also accept Xcode suggest
38 | 3. Rename Component or Module files, it depends from your react-native-component type
39 | 4. Close Xcode
40 | 5. `npm install`
41 | 6. `cd example && npm install`
42 | 7. on example folder `open ios/example.xcodeproj`
43 | 8. Remove `RNModule.xcodeproj` from Libraries
44 | 9. Add new library
45 |
46 | 
47 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 25
5 | buildToolsVersion "25.0.1"
6 |
7 | defaultConfig {
8 | minSdkVersion 16
9 | targetSdkVersion 25
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | compile fileTree(include: ['*.jar'], dir: 'libs')
24 | compile 'com.facebook.react:react-native:+'
25 | }
26 |
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/src/main/java/com/gettipsi/boilerplate/RNBoilerplateModule.java:
--------------------------------------------------------------------------------
1 | package com.gettipsi.boilerplate;
2 |
3 | import com.facebook.react.bridge.NativeModule;
4 | import com.facebook.react.bridge.ReactApplicationContext;
5 | import com.facebook.react.bridge.ReactContext;
6 | import com.facebook.react.bridge.ReactContextBaseJavaModule;
7 | import com.facebook.react.bridge.ReactMethod;
8 | import com.facebook.react.bridge.Promise;
9 | import com.facebook.react.bridge.WritableNativeArray;
10 |
11 | import java.util.Map;
12 |
13 | public class RNBoilerplateModule extends ReactContextBaseJavaModule {
14 |
15 | private static final String MODULE_NAME = "RNBoilerplateModule";
16 |
17 | public RNBoilerplateModule(ReactApplicationContext reactContext) {
18 | super(reactContext);
19 | }
20 |
21 | @Override
22 | public String getName() {
23 | return MODULE_NAME;
24 | }
25 |
26 | @ReactMethod
27 | public void findCars(Promise promise) {
28 | WritableNativeArray cars = new WritableNativeArray();
29 | cars.pushString("Mercedes-Benz");
30 | cars.pushString("BMW");
31 | cars.pushString("Porsche");
32 | cars.pushString("Opel");
33 | cars.pushString("Volkswagen");
34 | cars.pushString("Audi");
35 |
36 | if (promise != null) {
37 | promise.resolve(cars);
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/android/src/main/java/com/gettipsi/boilerplate/RNBoilerplateReactPackage.java:
--------------------------------------------------------------------------------
1 | package com.gettipsi.boilerplate;
2 |
3 | import com.facebook.react.ReactPackage;
4 | import com.facebook.react.bridge.JavaScriptModule;
5 | import com.facebook.react.bridge.NativeModule;
6 | import com.facebook.react.bridge.ReactApplicationContext;
7 | import com.facebook.react.uimanager.ViewManager;
8 |
9 | import java.util.ArrayList;
10 | import java.util.Arrays;
11 | import java.util.Collections;
12 | import java.util.List;
13 |
14 | public class RNBoilerplateReactPackage implements ReactPackage {
15 |
16 | @Override
17 | public List> createJSModules() {
18 | return Collections.emptyList();
19 | }
20 |
21 | @Override
22 | public List createViewManagers(ReactApplicationContext reactContext) {
23 | return Collections.emptyList();
24 | }
25 |
26 | @Override
27 | public List createNativeModules(ReactApplicationContext reactContext) {
28 | List modules = new ArrayList<>();
29 | modules.add(new RNBoilerplateModule(reactContext));
30 | return modules;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/example/.appiumhelperrc:
--------------------------------------------------------------------------------
1 | {
2 | "register": "./__tests__/setup/elements",
3 | "ios": {
4 | "appPath": "./ios/build/Build/Products/Release-iphonesimulator/example.app",
5 | "noReset": true
6 | },
7 | "android": {
8 | "appPath": "./android/app/build/outputs/apk/app-release.apk"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/example/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
4 |
--------------------------------------------------------------------------------
/example/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/example/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 |
3 | # We fork some components by platform.
4 | .*/*[.]android.js
5 |
6 | # Ignore templates with `@flow` in header
7 | .*/local-cli/generator.*
8 |
9 | # Ignore malformed json
10 | .*/node_modules/y18n/test/.*\.json
11 |
12 | # Ignore the website subdir
13 | /website/.*
14 |
15 | # Ignore BUCK generated dirs
16 | /\.buckd/
17 |
18 | # Ignore unexpected extra @providesModule
19 | .*/node_modules/commoner/test/source/widget/share.js
20 | .*/node_modules/.*/node_modules/fbjs/.*
21 |
22 | # Ignore duplicate module providers
23 | # For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root
24 | .*/Libraries/react-native/React.js
25 | .*/Libraries/react-native/ReactNative.js
26 | .*/node_modules/jest-runtime/build/__tests__/.*
27 |
28 | [include]
29 |
30 | [libs]
31 | node_modules/react-native/Libraries/react-native/react-native-interface.js
32 | node_modules/react-native/flow
33 | flow/
34 |
35 | [options]
36 | module.system=haste
37 |
38 | esproposal.class_static_fields=enable
39 | esproposal.class_instance_fields=enable
40 |
41 | experimental.strict_type_args=true
42 |
43 | munge_underscores=true
44 |
45 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
46 |
47 | suppress_type=$FlowIssue
48 | suppress_type=$FlowFixMe
49 | suppress_type=$FixMe
50 |
51 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-7]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
52 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-7]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
53 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
54 |
55 | unsafe.enable_getters_and_setters=true
56 |
57 | [version]
58 | ^0.37.0
59 |
--------------------------------------------------------------------------------
/example/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj merge=union
2 |
--------------------------------------------------------------------------------
/example/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IJ
26 | #
27 | *.iml
28 | .idea
29 | .gradle
30 | local.properties
31 |
32 | # node.js
33 | #
34 | node_modules/
35 | npm-debug.log
36 | yarn-error.log
37 |
38 | # BUCK
39 | buck-out/
40 | \.buckd/
41 | android/app/libs
42 | *.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
50 |
51 | fastlane/report.xml
52 | fastlane/Preview.html
53 | fastlane/screenshots
54 |
--------------------------------------------------------------------------------
/example/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/example/__tests__/01_test_simple_view.js:
--------------------------------------------------------------------------------
1 | import test from 'tape-async'
2 | import helper from 'tipsi-appium-helper'
3 |
4 | const { driver, elements } = helper
5 |
6 | test('Test if user can see view', async (t) => {
7 | const screen = elements()
8 |
9 | try {
10 | await driver.waitForVisible(screen.title, 60000)
11 | const title = await driver.getText(screen.title)
12 | t.equal(title, 'Welcome to React Native!', 'Title is correct')
13 | } catch (error) {
14 | await helper.screenshot()
15 | await helper.source()
16 |
17 | throw error
18 | }
19 | })
20 |
--------------------------------------------------------------------------------
/example/__tests__/setup/elements.js:
--------------------------------------------------------------------------------
1 | import helper from 'tipsi-appium-helper'
2 |
3 | helper.extend('elements', function () {
4 | const { idFromXPath, idFromAccessId } = this
5 |
6 | const selectors = {
7 | title: {
8 | ios: idFromXPath(`
9 | /XCUIElementTypeApplication/XCUIElementTypeWindow/XCUIElementTypeOther/
10 | XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/
11 | XCUIElementTypeOther/XCUIElementTypeStaticText[1]
12 | `),
13 | android: idFromAccessId('title'),
14 | },
15 | }
16 |
17 | return Object.keys(selectors).reduce((memo, item) => {
18 | const currentImplementation = selectors[item][this.config.platformName]
19 | if (currentImplementation) {
20 | /* eslint no-param-reassign: 0 */
21 | memo[item] = currentImplementation
22 | }
23 |
24 | return memo
25 | }, {})
26 | })
27 |
--------------------------------------------------------------------------------
/example/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.example',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.example',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // the root of your project, i.e. where "package.json" lives
37 | * root: "../../",
38 | *
39 | * // where to put the JS bundle asset in debug mode
40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
41 | *
42 | * // where to put the JS bundle asset in release mode
43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
44 | *
45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
46 | * // require('./image.png')), in debug mode
47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
48 | *
49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
50 | * // require('./image.png')), in release mode
51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
52 | *
53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
57 | * // for example, you might want to remove it from here.
58 | * inputExcludes: ["android/**", "ios/**"],
59 | *
60 | * // override which node gets called and with what additional arguments
61 | * nodeExecutableAndArgs: ["node"]
62 | *
63 | * // supply additional arguments to the packager
64 | * extraPackagerArgs: []
65 | * ]
66 | */
67 |
68 | apply from: "../../node_modules/react-native/react.gradle"
69 |
70 | /**
71 | * Set this to true to create two separate APKs instead of one:
72 | * - An APK that only works on ARM devices
73 | * - An APK that only works on x86 devices
74 | * The advantage is the size of the APK is reduced by about 4MB.
75 | * Upload all the APKs to the Play Store and people will download
76 | * the correct one based on the CPU architecture of their device.
77 | */
78 | def enableSeparateBuildPerCPUArchitecture = false
79 |
80 | /**
81 | * Run Proguard to shrink the Java bytecode in release builds.
82 | */
83 | def enableProguardInReleaseBuilds = false
84 |
85 | android {
86 | compileSdkVersion 25
87 | buildToolsVersion "25.0.1"
88 |
89 | defaultConfig {
90 | applicationId "com.example"
91 | minSdkVersion 16
92 | targetSdkVersion 25
93 | versionCode 1
94 | versionName "1.0"
95 | ndk {
96 | abiFilters "armeabi-v7a", "x86"
97 | }
98 | }
99 |
100 | splits {
101 | abi {
102 | reset()
103 | enable enableSeparateBuildPerCPUArchitecture
104 | universalApk false // If true, also generate a universal APK
105 | include "armeabi-v7a", "x86"
106 | }
107 | }
108 |
109 | signingConfigs {
110 | release {
111 | storeFile file("release.keystore")
112 | storePassword "android"
113 | keyAlias "androidreleasekey"
114 | keyPassword "android"
115 | }
116 | }
117 |
118 | buildTypes {
119 | release {
120 | minifyEnabled enableProguardInReleaseBuilds
121 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
122 | signingConfig signingConfigs.release
123 | }
124 | }
125 |
126 | // applicationVariants are e.g. debug, release
127 | applicationVariants.all { variant ->
128 | variant.outputs.each { output ->
129 | // For each separate APK per architecture, set a unique version code as described here:
130 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
131 | def versionCodes = ["armeabi-v7a": 1, "x86": 2]
132 | def abi = output.getFilter(OutputFile.ABI)
133 | if (abi != null) { // null for the universal-debug, universal-release variants
134 | output.versionCodeOverride =
135 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
136 | }
137 | }
138 | }
139 | }
140 |
141 | dependencies {
142 | compile project(':react-native-module-boilerplate')
143 | compile fileTree(dir: "libs", include: ["*.jar"])
144 | compile "com.android.support:appcompat-v7:25.0.1"
145 | compile "com.facebook.react:react-native:+" // From node_modules
146 | }
147 |
148 | // Run this once to be able to run the application with BUCK
149 | // puts all compile dependencies into folder libs for BUCK to use
150 | task copyDownloadableDepsToLibs(type: Copy) {
151 | from configurations.compile
152 | into 'libs'
153 | }
154 |
--------------------------------------------------------------------------------
/example/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # okhttp
54 |
55 | -keepattributes Signature
56 | -keepattributes *Annotation*
57 | -keep class okhttp3.** { *; }
58 | -keep interface okhttp3.** { *; }
59 | -dontwarn okhttp3.**
60 |
61 | # okio
62 |
63 | -keep class sun.misc.Unsafe { *; }
64 | -dontwarn java.nio.file.*
65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
66 | -dontwarn okio.**
67 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/com/example/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "example";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/com/example/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import android.app.Application;
4 | import android.util.Log;
5 |
6 | import com.facebook.react.ReactApplication;
7 | import com.gettipsi.boilerplate.RNBoilerplateReactPackage;
8 | import com.facebook.react.ReactInstanceManager;
9 | import com.facebook.react.ReactNativeHost;
10 | import com.facebook.react.ReactPackage;
11 | import com.facebook.react.shell.MainReactPackage;
12 | import com.facebook.soloader.SoLoader;
13 |
14 |
15 | import java.util.Arrays;
16 | import java.util.List;
17 |
18 | public class MainApplication extends Application implements ReactApplication {
19 |
20 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
21 | @Override
22 | public boolean getUseDeveloperSupport() {
23 | return BuildConfig.DEBUG;
24 | }
25 |
26 | @Override
27 | protected List getPackages() {
28 | return Arrays.asList(
29 | new MainReactPackage(),
30 | new RNBoilerplateReactPackage()
31 | );
32 | }
33 | };
34 |
35 | @Override
36 | public ReactNativeHost getReactNativeHost() {
37 | return mReactNativeHost;
38 | }
39 |
40 | @Override
41 | public void onCreate() {
42 | super.onCreate();
43 | SoLoader.init(this, /* native exopackage */ false);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tipsi/react-native-module-boilerplate/a5432487b7cdc0a7e4350fdc6bba5e8f9cedbd11/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tipsi/react-native-module-boilerplate/a5432487b7cdc0a7e4350fdc6bba5e8f9cedbd11/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tipsi/react-native-module-boilerplate/a5432487b7cdc0a7e4350fdc6bba5e8f9cedbd11/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tipsi/react-native-module-boilerplate/a5432487b7cdc0a7e4350fdc6bba5e8f9cedbd11/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Hello App Display Name
3 |
4 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 | org.gradle.daemon=true
22 |
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tipsi/react-native-module-boilerplate/a5432487b7cdc0a7e4350fdc6bba5e8f9cedbd11/example/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Dec 01 01:11:47 MSK 2016
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/example/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/example/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'example'
2 |
3 | include ':app'
4 | include ':react-native-module-boilerplate'
5 | project(':react-native-module-boilerplate').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-module-boilerplate/android')
6 |
--------------------------------------------------------------------------------
/example/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "displayName": "example"
4 | }
--------------------------------------------------------------------------------
/example/index.android.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | AppRegistry,
4 | StyleSheet,
5 | Text,
6 | View,
7 | } from 'react-native'
8 | import { RNModule } from 'react-native-module-boilerplate'
9 |
10 | export default class example extends Component {
11 | render() {
12 | return (
13 |
14 |
15 | Welcome to React Native!
16 |
17 |
18 |
19 | Double tap R on your keyboard to reload,{'\n'}
20 | Shake or press menu button for dev menu
21 |
22 |
23 | )
24 | }
25 | }
26 |
27 | const styles = StyleSheet.create({
28 | container: {
29 | flex: 1,
30 | justifyContent: 'center',
31 | alignItems: 'center',
32 | backgroundColor: '#F5FCFF',
33 | },
34 | welcome: {
35 | fontSize: 20,
36 | textAlign: 'center',
37 | margin: 10,
38 | },
39 | instructions: {
40 | textAlign: 'center',
41 | color: '#333333',
42 | marginBottom: 5,
43 | },
44 | })
45 |
46 | AppRegistry.registerComponent('example', () => example)
47 |
--------------------------------------------------------------------------------
/example/index.ios.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | AppRegistry,
4 | StyleSheet,
5 | Text,
6 | View,
7 | } from 'react-native'
8 | import { RNModule, RNComponent } from 'react-native-module-boilerplate'
9 |
10 | export default class example extends Component {
11 | render() {
12 | return (
13 |
14 |
15 | Welcome to React Native!
16 |
17 |
18 |
19 |
20 |
21 | Press Cmd+R to reload,{'\n'}
22 | Cmd+D or shake for dev menu
23 |
24 |
25 | )
26 | }
27 | }
28 |
29 | const styles = StyleSheet.create({
30 | container: {
31 | flex: 1,
32 | justifyContent: 'center',
33 | alignItems: 'center',
34 | backgroundColor: '#F5FCFF',
35 | },
36 | welcome: {
37 | fontSize: 20,
38 | textAlign: 'center',
39 | margin: 10,
40 | },
41 | })
42 |
43 | AppRegistry.registerComponent('example', () => example)
44 |
--------------------------------------------------------------------------------
/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment the next line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | target 'example' do
5 | # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
6 | # use_frameworks!
7 |
8 | # Pods for example
9 |
10 | target 'exampleTests' do
11 | inherit! :search_paths
12 | # Pods for testing
13 | end
14 |
15 | end
16 |
--------------------------------------------------------------------------------
/example/ios/example-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/example/ios/example-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* exampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* exampleTests.m */; };
16 | 133E29F31AD74F7200F7D852 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
17 | 139105C61AF99C1200B5F7CC /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
18 | 139FDEF61B0652A700C62182 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
23 | 140ED2AC1D01E1AD002B40FF /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
24 | 146834051AC3E58100842450 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 6682B1E31DEEDC19005226A0 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 6682B1E01DEED19F005226A0 /* libRNModule.a */; };
26 | 729B0C4076DE6CB9151D8B14 /* libPods-exampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4FA581FD5227DD7E86C4DF9F /* libPods-exampleTests.a */; };
27 | 832341BD1AAA6AB300B99B32 /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
28 | BCC3B6B4E6C13933014710DC /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DDBF0CB6510675768357FAA /* libPods-example.a */; };
29 | /* End PBXBuildFile section */
30 |
31 | /* Begin PBXContainerItemProxy section */
32 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
33 | isa = PBXContainerItemProxy;
34 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
35 | proxyType = 2;
36 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
37 | remoteInfo = RCTActionSheet;
38 | };
39 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
40 | isa = PBXContainerItemProxy;
41 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
42 | proxyType = 2;
43 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
44 | remoteInfo = RCTGeolocation;
45 | };
46 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
47 | isa = PBXContainerItemProxy;
48 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
49 | proxyType = 2;
50 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
51 | remoteInfo = RCTImage;
52 | };
53 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
54 | isa = PBXContainerItemProxy;
55 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
56 | proxyType = 2;
57 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
58 | remoteInfo = RCTNetwork;
59 | };
60 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
61 | isa = PBXContainerItemProxy;
62 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
63 | proxyType = 2;
64 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
65 | remoteInfo = RCTVibration;
66 | };
67 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
68 | isa = PBXContainerItemProxy;
69 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
70 | proxyType = 1;
71 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
72 | remoteInfo = example;
73 | };
74 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
75 | isa = PBXContainerItemProxy;
76 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
77 | proxyType = 2;
78 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
79 | remoteInfo = RCTSettings;
80 | };
81 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
82 | isa = PBXContainerItemProxy;
83 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
84 | proxyType = 2;
85 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
86 | remoteInfo = RCTWebSocket;
87 | };
88 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
89 | isa = PBXContainerItemProxy;
90 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
91 | proxyType = 2;
92 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
93 | remoteInfo = React;
94 | };
95 | 6682B1C31DEED19F005226A0 /* PBXContainerItemProxy */ = {
96 | isa = PBXContainerItemProxy;
97 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
98 | proxyType = 2;
99 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
100 | remoteInfo = "RCTImage-tvOS";
101 | };
102 | 6682B1C71DEED19F005226A0 /* PBXContainerItemProxy */ = {
103 | isa = PBXContainerItemProxy;
104 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
105 | proxyType = 2;
106 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
107 | remoteInfo = "RCTLinking-tvOS";
108 | };
109 | 6682B1CB1DEED19F005226A0 /* PBXContainerItemProxy */ = {
110 | isa = PBXContainerItemProxy;
111 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
112 | proxyType = 2;
113 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
114 | remoteInfo = "RCTNetwork-tvOS";
115 | };
116 | 6682B1CF1DEED19F005226A0 /* PBXContainerItemProxy */ = {
117 | isa = PBXContainerItemProxy;
118 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
119 | proxyType = 2;
120 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
121 | remoteInfo = "RCTSettings-tvOS";
122 | };
123 | 6682B1D31DEED19F005226A0 /* PBXContainerItemProxy */ = {
124 | isa = PBXContainerItemProxy;
125 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
126 | proxyType = 2;
127 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
128 | remoteInfo = "RCTText-tvOS";
129 | };
130 | 6682B1D81DEED19F005226A0 /* PBXContainerItemProxy */ = {
131 | isa = PBXContainerItemProxy;
132 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
133 | proxyType = 2;
134 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
135 | remoteInfo = "RCTWebSocket-tvOS";
136 | };
137 | 6682B1DC1DEED19F005226A0 /* PBXContainerItemProxy */ = {
138 | isa = PBXContainerItemProxy;
139 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
140 | proxyType = 2;
141 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
142 | remoteInfo = "React-tvOS";
143 | };
144 | 6682B1DF1DEED19F005226A0 /* PBXContainerItemProxy */ = {
145 | isa = PBXContainerItemProxy;
146 | containerPortal = 6682B1BB1DEED19F005226A0 /* RNModule.xcodeproj */;
147 | proxyType = 2;
148 | remoteGlobalIDString = 665E380E1DEDA42C007CA9FA;
149 | remoteInfo = RNModule;
150 | };
151 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
152 | isa = PBXContainerItemProxy;
153 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
154 | proxyType = 2;
155 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
156 | remoteInfo = RCTLinking;
157 | };
158 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
159 | isa = PBXContainerItemProxy;
160 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
161 | proxyType = 2;
162 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
163 | remoteInfo = RCTText;
164 | };
165 | /* End PBXContainerItemProxy section */
166 |
167 | /* Begin PBXFileReference section */
168 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
169 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
170 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
171 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
172 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
173 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
174 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = exampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
175 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
176 | 00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = ""; };
177 | 13801969A22053E5FC75E298 /* Pods-exampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-exampleTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-exampleTests/Pods-exampleTests.release.xcconfig"; sourceTree = ""; };
178 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
179 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
180 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
181 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = ""; };
182 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = ""; };
183 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
184 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; };
185 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; };
186 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = ""; };
187 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
188 | 2DDBF0CB6510675768357FAA /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example.a"; sourceTree = BUILT_PRODUCTS_DIR; };
189 | 4FA581FD5227DD7E86C4DF9F /* libPods-exampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-exampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
190 | 6682B1BB1DEED19F005226A0 /* RNModule.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNModule.xcodeproj; path = "../node_modules/react-native-module-boilerplate/ios/RNModule.xcodeproj"; sourceTree = ""; };
191 | 7796A752EEDB91F3A7F4878A /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.release.xcconfig"; path = "Pods/Target Support Files/Pods-example/Pods-example.release.xcconfig"; sourceTree = ""; };
192 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
193 | 7B80164425B690EFD63E6561 /* Pods-exampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-exampleTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-exampleTests/Pods-exampleTests.debug.xcconfig"; sourceTree = ""; };
194 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
195 | 995D8F3513E1A422C1EADF25 /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-example/Pods-example.debug.xcconfig"; sourceTree = ""; };
196 | /* End PBXFileReference section */
197 |
198 | /* Begin PBXFrameworksBuildPhase section */
199 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
200 | isa = PBXFrameworksBuildPhase;
201 | buildActionMask = 2147483647;
202 | files = (
203 | 140ED2AC1D01E1AD002B40FF /* ReferenceProxy in Frameworks */,
204 | 729B0C4076DE6CB9151D8B14 /* libPods-exampleTests.a in Frameworks */,
205 | );
206 | runOnlyForDeploymentPostprocessing = 0;
207 | };
208 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
209 | isa = PBXFrameworksBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | 6682B1E31DEEDC19005226A0 /* ReferenceProxy in Frameworks */,
213 | 146834051AC3E58100842450 /* ReferenceProxy in Frameworks */,
214 | 00C302E51ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
215 | 00C302E71ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
216 | 00C302E81ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
217 | 133E29F31AD74F7200F7D852 /* ReferenceProxy in Frameworks */,
218 | 00C302E91ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
219 | 139105C61AF99C1200B5F7CC /* ReferenceProxy in Frameworks */,
220 | 832341BD1AAA6AB300B99B32 /* ReferenceProxy in Frameworks */,
221 | 00C302EA1ABCBA2D00DB3ED1 /* ReferenceProxy in Frameworks */,
222 | 139FDEF61B0652A700C62182 /* ReferenceProxy in Frameworks */,
223 | BCC3B6B4E6C13933014710DC /* libPods-example.a in Frameworks */,
224 | );
225 | runOnlyForDeploymentPostprocessing = 0;
226 | };
227 | /* End PBXFrameworksBuildPhase section */
228 |
229 | /* Begin PBXGroup section */
230 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
231 | isa = PBXGroup;
232 | children = (
233 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
234 | );
235 | name = Products;
236 | sourceTree = "";
237 | };
238 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
239 | isa = PBXGroup;
240 | children = (
241 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
242 | );
243 | name = Products;
244 | sourceTree = "";
245 | };
246 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
247 | isa = PBXGroup;
248 | children = (
249 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
250 | 6682B1C41DEED19F005226A0 /* libRCTImage-tvOS.a */,
251 | );
252 | name = Products;
253 | sourceTree = "";
254 | };
255 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
256 | isa = PBXGroup;
257 | children = (
258 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
259 | 6682B1CC1DEED19F005226A0 /* libRCTNetwork-tvOS.a */,
260 | );
261 | name = Products;
262 | sourceTree = "";
263 | };
264 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
265 | isa = PBXGroup;
266 | children = (
267 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
268 | );
269 | name = Products;
270 | sourceTree = "";
271 | };
272 | 00E356EF1AD99517003FC87E /* exampleTests */ = {
273 | isa = PBXGroup;
274 | children = (
275 | 00E356F21AD99517003FC87E /* exampleTests.m */,
276 | 00E356F01AD99517003FC87E /* Supporting Files */,
277 | );
278 | path = exampleTests;
279 | sourceTree = "";
280 | };
281 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
282 | isa = PBXGroup;
283 | children = (
284 | 00E356F11AD99517003FC87E /* Info.plist */,
285 | );
286 | name = "Supporting Files";
287 | sourceTree = "";
288 | };
289 | 139105B71AF99BAD00B5F7CC /* Products */ = {
290 | isa = PBXGroup;
291 | children = (
292 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
293 | 6682B1D01DEED19F005226A0 /* libRCTSettings-tvOS.a */,
294 | );
295 | name = Products;
296 | sourceTree = "";
297 | };
298 | 139FDEE71B06529A00C62182 /* Products */ = {
299 | isa = PBXGroup;
300 | children = (
301 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
302 | 6682B1D91DEED19F005226A0 /* libRCTWebSocket-tvOS.a */,
303 | );
304 | name = Products;
305 | sourceTree = "";
306 | };
307 | 13B07FAE1A68108700A75B9A /* example */ = {
308 | isa = PBXGroup;
309 | children = (
310 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
311 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
312 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
313 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
314 | 13B07FB61A68108700A75B9A /* Info.plist */,
315 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
316 | 13B07FB71A68108700A75B9A /* main.m */,
317 | );
318 | name = example;
319 | sourceTree = "";
320 | };
321 | 146834001AC3E56700842450 /* Products */ = {
322 | isa = PBXGroup;
323 | children = (
324 | 146834041AC3E56700842450 /* libReact.a */,
325 | 6682B1DD1DEED19F005226A0 /* libReact-tvOS.a */,
326 | );
327 | name = Products;
328 | sourceTree = "";
329 | };
330 | 6682B1BC1DEED19F005226A0 /* Products */ = {
331 | isa = PBXGroup;
332 | children = (
333 | 6682B1E01DEED19F005226A0 /* libRNModule.a */,
334 | );
335 | name = Products;
336 | sourceTree = "";
337 | };
338 | 78C398B11ACF4ADC00677621 /* Products */ = {
339 | isa = PBXGroup;
340 | children = (
341 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
342 | 6682B1C81DEED19F005226A0 /* libRCTLinking-tvOS.a */,
343 | );
344 | name = Products;
345 | sourceTree = "";
346 | };
347 | 7DD718BB4B008008529B4F49 /* Pods */ = {
348 | isa = PBXGroup;
349 | children = (
350 | 995D8F3513E1A422C1EADF25 /* Pods-example.debug.xcconfig */,
351 | 7796A752EEDB91F3A7F4878A /* Pods-example.release.xcconfig */,
352 | 7B80164425B690EFD63E6561 /* Pods-exampleTests.debug.xcconfig */,
353 | 13801969A22053E5FC75E298 /* Pods-exampleTests.release.xcconfig */,
354 | );
355 | name = Pods;
356 | sourceTree = "";
357 | };
358 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
359 | isa = PBXGroup;
360 | children = (
361 | 6682B1BB1DEED19F005226A0 /* RNModule.xcodeproj */,
362 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
363 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
364 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
365 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
366 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
367 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
368 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
369 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
370 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
371 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
372 | );
373 | name = Libraries;
374 | sourceTree = "";
375 | };
376 | 832341B11AAA6A8300B99B32 /* Products */ = {
377 | isa = PBXGroup;
378 | children = (
379 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
380 | 6682B1D41DEED19F005226A0 /* libRCTText-tvOS.a */,
381 | );
382 | name = Products;
383 | sourceTree = "";
384 | };
385 | 83CBB9F61A601CBA00E9B192 = {
386 | isa = PBXGroup;
387 | children = (
388 | 13B07FAE1A68108700A75B9A /* example */,
389 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
390 | 00E356EF1AD99517003FC87E /* exampleTests */,
391 | 83CBBA001A601CBA00E9B192 /* Products */,
392 | 7DD718BB4B008008529B4F49 /* Pods */,
393 | C440C1250D20710D74053D21 /* Frameworks */,
394 | );
395 | indentWidth = 2;
396 | sourceTree = "";
397 | tabWidth = 2;
398 | };
399 | 83CBBA001A601CBA00E9B192 /* Products */ = {
400 | isa = PBXGroup;
401 | children = (
402 | 13B07F961A680F5B00A75B9A /* example.app */,
403 | 00E356EE1AD99517003FC87E /* exampleTests.xctest */,
404 | );
405 | name = Products;
406 | sourceTree = "";
407 | };
408 | C440C1250D20710D74053D21 /* Frameworks */ = {
409 | isa = PBXGroup;
410 | children = (
411 | 2DDBF0CB6510675768357FAA /* libPods-example.a */,
412 | 4FA581FD5227DD7E86C4DF9F /* libPods-exampleTests.a */,
413 | );
414 | name = Frameworks;
415 | sourceTree = "";
416 | };
417 | /* End PBXGroup section */
418 |
419 | /* Begin PBXNativeTarget section */
420 | 00E356ED1AD99517003FC87E /* exampleTests */ = {
421 | isa = PBXNativeTarget;
422 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */;
423 | buildPhases = (
424 | 79D4C87BD95219C848664380 /* [CP] Check Pods Manifest.lock */,
425 | 00E356EA1AD99517003FC87E /* Sources */,
426 | 00E356EB1AD99517003FC87E /* Frameworks */,
427 | 00E356EC1AD99517003FC87E /* Resources */,
428 | 35F807702CBAD46FF4108151 /* [CP] Embed Pods Frameworks */,
429 | 64DD82E976EEB897192715AB /* [CP] Copy Pods Resources */,
430 | );
431 | buildRules = (
432 | );
433 | dependencies = (
434 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
435 | );
436 | name = exampleTests;
437 | productName = exampleTests;
438 | productReference = 00E356EE1AD99517003FC87E /* exampleTests.xctest */;
439 | productType = "com.apple.product-type.bundle.unit-test";
440 | };
441 | 13B07F861A680F5B00A75B9A /* example */ = {
442 | isa = PBXNativeTarget;
443 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */;
444 | buildPhases = (
445 | 3C4E695D01B9E0627320C368 /* [CP] Check Pods Manifest.lock */,
446 | 13B07F871A680F5B00A75B9A /* Sources */,
447 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
448 | 13B07F8E1A680F5B00A75B9A /* Resources */,
449 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
450 | 6622566FB0F0E57E3F4F3391 /* [CP] Embed Pods Frameworks */,
451 | ADD35E5CEA43012748BF33EE /* [CP] Copy Pods Resources */,
452 | );
453 | buildRules = (
454 | );
455 | dependencies = (
456 | );
457 | name = example;
458 | productName = "Hello World";
459 | productReference = 13B07F961A680F5B00A75B9A /* example.app */;
460 | productType = "com.apple.product-type.application";
461 | };
462 | /* End PBXNativeTarget section */
463 |
464 | /* Begin PBXProject section */
465 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
466 | isa = PBXProject;
467 | attributes = {
468 | LastUpgradeCheck = 0610;
469 | ORGANIZATIONNAME = Facebook;
470 | TargetAttributes = {
471 | 00E356ED1AD99517003FC87E = {
472 | CreatedOnToolsVersion = 6.2;
473 | TestTargetID = 13B07F861A680F5B00A75B9A;
474 | };
475 | 13B07F861A680F5B00A75B9A = {
476 | ProvisioningStyle = Manual;
477 | };
478 | };
479 | };
480 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */;
481 | compatibilityVersion = "Xcode 3.2";
482 | developmentRegion = English;
483 | hasScannedForEncodings = 0;
484 | knownRegions = (
485 | en,
486 | Base,
487 | );
488 | mainGroup = 83CBB9F61A601CBA00E9B192;
489 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
490 | projectDirPath = "";
491 | projectReferences = (
492 | {
493 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
494 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
495 | },
496 | {
497 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
498 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
499 | },
500 | {
501 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
502 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
503 | },
504 | {
505 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
506 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
507 | },
508 | {
509 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
510 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
511 | },
512 | {
513 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
514 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
515 | },
516 | {
517 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
518 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
519 | },
520 | {
521 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
522 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
523 | },
524 | {
525 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
526 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
527 | },
528 | {
529 | ProductGroup = 146834001AC3E56700842450 /* Products */;
530 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
531 | },
532 | {
533 | ProductGroup = 6682B1BC1DEED19F005226A0 /* Products */;
534 | ProjectRef = 6682B1BB1DEED19F005226A0 /* RNModule.xcodeproj */;
535 | },
536 | );
537 | projectRoot = "";
538 | targets = (
539 | 13B07F861A680F5B00A75B9A /* example */,
540 | 00E356ED1AD99517003FC87E /* exampleTests */,
541 | );
542 | };
543 | /* End PBXProject section */
544 |
545 | /* Begin PBXReferenceProxy section */
546 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
547 | isa = PBXReferenceProxy;
548 | fileType = archive.ar;
549 | path = libRCTActionSheet.a;
550 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
551 | sourceTree = BUILT_PRODUCTS_DIR;
552 | };
553 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
554 | isa = PBXReferenceProxy;
555 | fileType = archive.ar;
556 | path = libRCTGeolocation.a;
557 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
558 | sourceTree = BUILT_PRODUCTS_DIR;
559 | };
560 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
561 | isa = PBXReferenceProxy;
562 | fileType = archive.ar;
563 | path = libRCTImage.a;
564 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
565 | sourceTree = BUILT_PRODUCTS_DIR;
566 | };
567 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
568 | isa = PBXReferenceProxy;
569 | fileType = archive.ar;
570 | path = libRCTNetwork.a;
571 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
572 | sourceTree = BUILT_PRODUCTS_DIR;
573 | };
574 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
575 | isa = PBXReferenceProxy;
576 | fileType = archive.ar;
577 | path = libRCTVibration.a;
578 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
579 | sourceTree = BUILT_PRODUCTS_DIR;
580 | };
581 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
582 | isa = PBXReferenceProxy;
583 | fileType = archive.ar;
584 | path = libRCTSettings.a;
585 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
586 | sourceTree = BUILT_PRODUCTS_DIR;
587 | };
588 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
589 | isa = PBXReferenceProxy;
590 | fileType = archive.ar;
591 | path = libRCTWebSocket.a;
592 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
593 | sourceTree = BUILT_PRODUCTS_DIR;
594 | };
595 | 146834041AC3E56700842450 /* libReact.a */ = {
596 | isa = PBXReferenceProxy;
597 | fileType = archive.ar;
598 | path = libReact.a;
599 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
600 | sourceTree = BUILT_PRODUCTS_DIR;
601 | };
602 | 6682B1C41DEED19F005226A0 /* libRCTImage-tvOS.a */ = {
603 | isa = PBXReferenceProxy;
604 | fileType = archive.ar;
605 | path = "libRCTImage-tvOS.a";
606 | remoteRef = 6682B1C31DEED19F005226A0 /* PBXContainerItemProxy */;
607 | sourceTree = BUILT_PRODUCTS_DIR;
608 | };
609 | 6682B1C81DEED19F005226A0 /* libRCTLinking-tvOS.a */ = {
610 | isa = PBXReferenceProxy;
611 | fileType = archive.ar;
612 | path = "libRCTLinking-tvOS.a";
613 | remoteRef = 6682B1C71DEED19F005226A0 /* PBXContainerItemProxy */;
614 | sourceTree = BUILT_PRODUCTS_DIR;
615 | };
616 | 6682B1CC1DEED19F005226A0 /* libRCTNetwork-tvOS.a */ = {
617 | isa = PBXReferenceProxy;
618 | fileType = archive.ar;
619 | path = "libRCTNetwork-tvOS.a";
620 | remoteRef = 6682B1CB1DEED19F005226A0 /* PBXContainerItemProxy */;
621 | sourceTree = BUILT_PRODUCTS_DIR;
622 | };
623 | 6682B1D01DEED19F005226A0 /* libRCTSettings-tvOS.a */ = {
624 | isa = PBXReferenceProxy;
625 | fileType = archive.ar;
626 | path = "libRCTSettings-tvOS.a";
627 | remoteRef = 6682B1CF1DEED19F005226A0 /* PBXContainerItemProxy */;
628 | sourceTree = BUILT_PRODUCTS_DIR;
629 | };
630 | 6682B1D41DEED19F005226A0 /* libRCTText-tvOS.a */ = {
631 | isa = PBXReferenceProxy;
632 | fileType = archive.ar;
633 | path = "libRCTText-tvOS.a";
634 | remoteRef = 6682B1D31DEED19F005226A0 /* PBXContainerItemProxy */;
635 | sourceTree = BUILT_PRODUCTS_DIR;
636 | };
637 | 6682B1D91DEED19F005226A0 /* libRCTWebSocket-tvOS.a */ = {
638 | isa = PBXReferenceProxy;
639 | fileType = archive.ar;
640 | path = "libRCTWebSocket-tvOS.a";
641 | remoteRef = 6682B1D81DEED19F005226A0 /* PBXContainerItemProxy */;
642 | sourceTree = BUILT_PRODUCTS_DIR;
643 | };
644 | 6682B1DD1DEED19F005226A0 /* libReact-tvOS.a */ = {
645 | isa = PBXReferenceProxy;
646 | fileType = archive.ar;
647 | path = "libReact-tvOS.a";
648 | remoteRef = 6682B1DC1DEED19F005226A0 /* PBXContainerItemProxy */;
649 | sourceTree = BUILT_PRODUCTS_DIR;
650 | };
651 | 6682B1E01DEED19F005226A0 /* libRNModule.a */ = {
652 | isa = PBXReferenceProxy;
653 | fileType = archive.ar;
654 | path = libRNModule.a;
655 | remoteRef = 6682B1DF1DEED19F005226A0 /* PBXContainerItemProxy */;
656 | sourceTree = BUILT_PRODUCTS_DIR;
657 | };
658 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
659 | isa = PBXReferenceProxy;
660 | fileType = archive.ar;
661 | path = libRCTLinking.a;
662 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
663 | sourceTree = BUILT_PRODUCTS_DIR;
664 | };
665 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
666 | isa = PBXReferenceProxy;
667 | fileType = archive.ar;
668 | path = libRCTText.a;
669 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
670 | sourceTree = BUILT_PRODUCTS_DIR;
671 | };
672 | /* End PBXReferenceProxy section */
673 |
674 | /* Begin PBXResourcesBuildPhase section */
675 | 00E356EC1AD99517003FC87E /* Resources */ = {
676 | isa = PBXResourcesBuildPhase;
677 | buildActionMask = 2147483647;
678 | files = (
679 | );
680 | runOnlyForDeploymentPostprocessing = 0;
681 | };
682 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
683 | isa = PBXResourcesBuildPhase;
684 | buildActionMask = 2147483647;
685 | files = (
686 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
687 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
688 | );
689 | runOnlyForDeploymentPostprocessing = 0;
690 | };
691 | /* End PBXResourcesBuildPhase section */
692 |
693 | /* Begin PBXShellScriptBuildPhase section */
694 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
695 | isa = PBXShellScriptBuildPhase;
696 | buildActionMask = 2147483647;
697 | files = (
698 | );
699 | inputPaths = (
700 | );
701 | name = "Bundle React Native code and images";
702 | outputPaths = (
703 | );
704 | runOnlyForDeploymentPostprocessing = 0;
705 | shellPath = /bin/sh;
706 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
707 | };
708 | 35F807702CBAD46FF4108151 /* [CP] Embed Pods Frameworks */ = {
709 | isa = PBXShellScriptBuildPhase;
710 | buildActionMask = 2147483647;
711 | files = (
712 | );
713 | inputPaths = (
714 | );
715 | name = "[CP] Embed Pods Frameworks";
716 | outputPaths = (
717 | );
718 | runOnlyForDeploymentPostprocessing = 0;
719 | shellPath = /bin/sh;
720 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-exampleTests/Pods-exampleTests-frameworks.sh\"\n";
721 | showEnvVarsInLog = 0;
722 | };
723 | 3C4E695D01B9E0627320C368 /* [CP] Check Pods Manifest.lock */ = {
724 | isa = PBXShellScriptBuildPhase;
725 | buildActionMask = 2147483647;
726 | files = (
727 | );
728 | inputPaths = (
729 | );
730 | name = "[CP] Check Pods Manifest.lock";
731 | outputPaths = (
732 | );
733 | runOnlyForDeploymentPostprocessing = 0;
734 | shellPath = /bin/sh;
735 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
736 | showEnvVarsInLog = 0;
737 | };
738 | 64DD82E976EEB897192715AB /* [CP] Copy Pods Resources */ = {
739 | isa = PBXShellScriptBuildPhase;
740 | buildActionMask = 2147483647;
741 | files = (
742 | );
743 | inputPaths = (
744 | );
745 | name = "[CP] Copy Pods Resources";
746 | outputPaths = (
747 | );
748 | runOnlyForDeploymentPostprocessing = 0;
749 | shellPath = /bin/sh;
750 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-exampleTests/Pods-exampleTests-resources.sh\"\n";
751 | showEnvVarsInLog = 0;
752 | };
753 | 6622566FB0F0E57E3F4F3391 /* [CP] Embed Pods Frameworks */ = {
754 | isa = PBXShellScriptBuildPhase;
755 | buildActionMask = 2147483647;
756 | files = (
757 | );
758 | inputPaths = (
759 | );
760 | name = "[CP] Embed Pods Frameworks";
761 | outputPaths = (
762 | );
763 | runOnlyForDeploymentPostprocessing = 0;
764 | shellPath = /bin/sh;
765 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-example/Pods-example-frameworks.sh\"\n";
766 | showEnvVarsInLog = 0;
767 | };
768 | 79D4C87BD95219C848664380 /* [CP] Check Pods Manifest.lock */ = {
769 | isa = PBXShellScriptBuildPhase;
770 | buildActionMask = 2147483647;
771 | files = (
772 | );
773 | inputPaths = (
774 | );
775 | name = "[CP] Check Pods Manifest.lock";
776 | outputPaths = (
777 | );
778 | runOnlyForDeploymentPostprocessing = 0;
779 | shellPath = /bin/sh;
780 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
781 | showEnvVarsInLog = 0;
782 | };
783 | ADD35E5CEA43012748BF33EE /* [CP] Copy Pods Resources */ = {
784 | isa = PBXShellScriptBuildPhase;
785 | buildActionMask = 2147483647;
786 | files = (
787 | );
788 | inputPaths = (
789 | );
790 | name = "[CP] Copy Pods Resources";
791 | outputPaths = (
792 | );
793 | runOnlyForDeploymentPostprocessing = 0;
794 | shellPath = /bin/sh;
795 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-example/Pods-example-resources.sh\"\n";
796 | showEnvVarsInLog = 0;
797 | };
798 | /* End PBXShellScriptBuildPhase section */
799 |
800 | /* Begin PBXSourcesBuildPhase section */
801 | 00E356EA1AD99517003FC87E /* Sources */ = {
802 | isa = PBXSourcesBuildPhase;
803 | buildActionMask = 2147483647;
804 | files = (
805 | 00E356F31AD99517003FC87E /* exampleTests.m in Sources */,
806 | );
807 | runOnlyForDeploymentPostprocessing = 0;
808 | };
809 | 13B07F871A680F5B00A75B9A /* Sources */ = {
810 | isa = PBXSourcesBuildPhase;
811 | buildActionMask = 2147483647;
812 | files = (
813 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
814 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
815 | );
816 | runOnlyForDeploymentPostprocessing = 0;
817 | };
818 | /* End PBXSourcesBuildPhase section */
819 |
820 | /* Begin PBXTargetDependency section */
821 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
822 | isa = PBXTargetDependency;
823 | target = 13B07F861A680F5B00A75B9A /* example */;
824 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
825 | };
826 | /* End PBXTargetDependency section */
827 |
828 | /* Begin PBXVariantGroup section */
829 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
830 | isa = PBXVariantGroup;
831 | children = (
832 | 13B07FB21A68108700A75B9A /* Base */,
833 | );
834 | name = LaunchScreen.xib;
835 | path = example;
836 | sourceTree = "";
837 | };
838 | /* End PBXVariantGroup section */
839 |
840 | /* Begin XCBuildConfiguration section */
841 | 00E356F61AD99517003FC87E /* Debug */ = {
842 | isa = XCBuildConfiguration;
843 | baseConfigurationReference = 7B80164425B690EFD63E6561 /* Pods-exampleTests.debug.xcconfig */;
844 | buildSettings = {
845 | BUNDLE_LOADER = "$(TEST_HOST)";
846 | GCC_PREPROCESSOR_DEFINITIONS = (
847 | "DEBUG=1",
848 | "$(inherited)",
849 | );
850 | INFOPLIST_FILE = exampleTests/Info.plist;
851 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
852 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
853 | OTHER_LDFLAGS = (
854 | "$(inherited)",
855 | "-ObjC",
856 | "-lc++",
857 | );
858 | PRODUCT_NAME = "$(TARGET_NAME)";
859 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example";
860 | };
861 | name = Debug;
862 | };
863 | 00E356F71AD99517003FC87E /* Release */ = {
864 | isa = XCBuildConfiguration;
865 | baseConfigurationReference = 13801969A22053E5FC75E298 /* Pods-exampleTests.release.xcconfig */;
866 | buildSettings = {
867 | BUNDLE_LOADER = "$(TEST_HOST)";
868 | COPY_PHASE_STRIP = NO;
869 | INFOPLIST_FILE = exampleTests/Info.plist;
870 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
871 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
872 | OTHER_LDFLAGS = (
873 | "$(inherited)",
874 | "-ObjC",
875 | "-lc++",
876 | );
877 | PRODUCT_NAME = "$(TARGET_NAME)";
878 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/example";
879 | };
880 | name = Release;
881 | };
882 | 13B07F941A680F5B00A75B9A /* Debug */ = {
883 | isa = XCBuildConfiguration;
884 | baseConfigurationReference = 995D8F3513E1A422C1EADF25 /* Pods-example.debug.xcconfig */;
885 | buildSettings = {
886 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
887 | CURRENT_PROJECT_VERSION = 1;
888 | DEAD_CODE_STRIPPING = NO;
889 | DEVELOPMENT_TEAM = "";
890 | HEADER_SEARCH_PATHS = (
891 | "$(inherited)",
892 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
893 | "$(SRCROOT)/../node_modules/react-native/React/**",
894 | );
895 | INFOPLIST_FILE = example/Info.plist;
896 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
897 | OTHER_LDFLAGS = (
898 | "$(inherited)",
899 | "-ObjC",
900 | "-lc++",
901 | );
902 | PRODUCT_NAME = example;
903 | VERSIONING_SYSTEM = "apple-generic";
904 | };
905 | name = Debug;
906 | };
907 | 13B07F951A680F5B00A75B9A /* Release */ = {
908 | isa = XCBuildConfiguration;
909 | baseConfigurationReference = 7796A752EEDB91F3A7F4878A /* Pods-example.release.xcconfig */;
910 | buildSettings = {
911 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
912 | CURRENT_PROJECT_VERSION = 1;
913 | DEVELOPMENT_TEAM = "";
914 | HEADER_SEARCH_PATHS = (
915 | "$(inherited)",
916 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
917 | "$(SRCROOT)/../node_modules/react-native/React/**",
918 | );
919 | INFOPLIST_FILE = example/Info.plist;
920 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
921 | OTHER_LDFLAGS = (
922 | "$(inherited)",
923 | "-ObjC",
924 | "-lc++",
925 | );
926 | PRODUCT_NAME = example;
927 | VERSIONING_SYSTEM = "apple-generic";
928 | };
929 | name = Release;
930 | };
931 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
932 | isa = XCBuildConfiguration;
933 | buildSettings = {
934 | ALWAYS_SEARCH_USER_PATHS = NO;
935 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
936 | CLANG_CXX_LIBRARY = "libc++";
937 | CLANG_ENABLE_MODULES = YES;
938 | CLANG_ENABLE_OBJC_ARC = YES;
939 | CLANG_WARN_BOOL_CONVERSION = YES;
940 | CLANG_WARN_CONSTANT_CONVERSION = YES;
941 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
942 | CLANG_WARN_EMPTY_BODY = YES;
943 | CLANG_WARN_ENUM_CONVERSION = YES;
944 | CLANG_WARN_INT_CONVERSION = YES;
945 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
946 | CLANG_WARN_UNREACHABLE_CODE = YES;
947 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
948 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
949 | COPY_PHASE_STRIP = NO;
950 | ENABLE_STRICT_OBJC_MSGSEND = YES;
951 | GCC_C_LANGUAGE_STANDARD = gnu99;
952 | GCC_DYNAMIC_NO_PIC = NO;
953 | GCC_OPTIMIZATION_LEVEL = 0;
954 | GCC_PREPROCESSOR_DEFINITIONS = (
955 | "DEBUG=1",
956 | "$(inherited)",
957 | );
958 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
959 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
960 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
961 | GCC_WARN_UNDECLARED_SELECTOR = YES;
962 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
963 | GCC_WARN_UNUSED_FUNCTION = YES;
964 | GCC_WARN_UNUSED_VARIABLE = YES;
965 | HEADER_SEARCH_PATHS = (
966 | "$(inherited)",
967 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
968 | "$(SRCROOT)/../node_modules/react-native/React/**",
969 | );
970 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
971 | MTL_ENABLE_DEBUG_INFO = YES;
972 | ONLY_ACTIVE_ARCH = YES;
973 | SDKROOT = iphoneos;
974 | };
975 | name = Debug;
976 | };
977 | 83CBBA211A601CBA00E9B192 /* Release */ = {
978 | isa = XCBuildConfiguration;
979 | buildSettings = {
980 | ALWAYS_SEARCH_USER_PATHS = NO;
981 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
982 | CLANG_CXX_LIBRARY = "libc++";
983 | CLANG_ENABLE_MODULES = YES;
984 | CLANG_ENABLE_OBJC_ARC = YES;
985 | CLANG_WARN_BOOL_CONVERSION = YES;
986 | CLANG_WARN_CONSTANT_CONVERSION = YES;
987 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
988 | CLANG_WARN_EMPTY_BODY = YES;
989 | CLANG_WARN_ENUM_CONVERSION = YES;
990 | CLANG_WARN_INT_CONVERSION = YES;
991 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
992 | CLANG_WARN_UNREACHABLE_CODE = YES;
993 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
994 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
995 | COPY_PHASE_STRIP = YES;
996 | ENABLE_NS_ASSERTIONS = NO;
997 | ENABLE_STRICT_OBJC_MSGSEND = YES;
998 | GCC_C_LANGUAGE_STANDARD = gnu99;
999 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1000 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1001 | GCC_WARN_UNDECLARED_SELECTOR = YES;
1002 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1003 | GCC_WARN_UNUSED_FUNCTION = YES;
1004 | GCC_WARN_UNUSED_VARIABLE = YES;
1005 | HEADER_SEARCH_PATHS = (
1006 | "$(inherited)",
1007 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
1008 | "$(SRCROOT)/../node_modules/react-native/React/**",
1009 | );
1010 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1011 | MTL_ENABLE_DEBUG_INFO = NO;
1012 | SDKROOT = iphoneos;
1013 | VALIDATE_PRODUCT = YES;
1014 | };
1015 | name = Release;
1016 | };
1017 | /* End XCBuildConfiguration section */
1018 |
1019 | /* Begin XCConfigurationList section */
1020 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "exampleTests" */ = {
1021 | isa = XCConfigurationList;
1022 | buildConfigurations = (
1023 | 00E356F61AD99517003FC87E /* Debug */,
1024 | 00E356F71AD99517003FC87E /* Release */,
1025 | );
1026 | defaultConfigurationIsVisible = 0;
1027 | defaultConfigurationName = Release;
1028 | };
1029 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = {
1030 | isa = XCConfigurationList;
1031 | buildConfigurations = (
1032 | 13B07F941A680F5B00A75B9A /* Debug */,
1033 | 13B07F951A680F5B00A75B9A /* Release */,
1034 | );
1035 | defaultConfigurationIsVisible = 0;
1036 | defaultConfigurationName = Release;
1037 | };
1038 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = {
1039 | isa = XCConfigurationList;
1040 | buildConfigurations = (
1041 | 83CBBA201A601CBA00E9B192 /* Debug */,
1042 | 83CBBA211A601CBA00E9B192 /* Release */,
1043 | );
1044 | defaultConfigurationIsVisible = 0;
1045 | defaultConfigurationName = Release;
1046 | };
1047 | /* End XCConfigurationList section */
1048 | };
1049 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1050 | }
1051 |
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/xcshareddata/xcschemes/example-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
61 |
67 |
68 |
69 |
70 |
71 |
77 |
78 |
79 |
80 |
81 |
82 |
92 |
94 |
100 |
101 |
102 |
103 |
104 |
105 |
111 |
113 |
119 |
120 |
121 |
122 |
124 |
125 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/example/ios/example.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/example/ios/example/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/example/ios/example/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"example"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/example/ios/example/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/example/ios/example/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | Hello App Display Name
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UIViewControllerBasedStatusBarAppearance
40 |
41 | NSLocationWhenInUseUsageDescription
42 |
43 | NSAppTransportSecurity
44 |
45 |
46 | NSExceptionDomains
47 |
48 | localhost
49 |
50 | NSExceptionAllowsInsecureHTTPLoads
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/example/ios/example/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/example/ios/exampleTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/example/ios/exampleTests/exampleTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import
14 | #import
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface exampleTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation exampleTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "description": "react-native-module-boilerplate example",
4 | "version": "0.1.0",
5 | "private": true,
6 | "scripts": {
7 | "start": "node node_modules/react-native/local-cli/cli.js start",
8 | "clean": "rm -rf android/app/release.keystore",
9 | "appium": "appium",
10 | "build:android:key": "keytool -genkey -v -keystore android/app/release.keystore -storepass android -alias androidreleasekey -keypass android -dname 'CN=Android Debug,O=Android,C=US'",
11 | "build:android:release": "cd android && ./gradlew assembleRelease --console=plain -S",
12 | "build:android": "npm-run-all clean build:android:*",
13 | "build:ios": "cd ios && xcodebuild build -project example.xcodeproj -scheme example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO OTHER_LDFLAGS='$(inherited) -ObjC -lc++' -destination 'platform=iOS Simulator,name=iPhone 6' -configuration Release -derivedDataPath build",
14 | "test:android": "appium-helper --platform android",
15 | "test:ios": "appium-helper --platform ios",
16 | "test": "npm-run-all test:*"
17 | },
18 | "dependencies": {
19 | "react": "15.4.1",
20 | "react-native": "0.41.2",
21 | "react-native-module-boilerplate": "../"
22 | },
23 | "devDependencies": {
24 | "appium": "1.6.3",
25 | "npm-run-all": "^3.1.1",
26 | "tape-async": "^2.1.1",
27 | "tipsi-appium-helper": "1.0.0"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/ios/RNModule.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 66399AC21DF0490400D167A8 /* RNComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 66399AC11DF0490400D167A8 /* RNComponent.m */; };
11 | 66399AC71DF049AE00D167A8 /* RNComponentManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 66399AC61DF049AE00D167A8 /* RNComponentManager.m */; };
12 | 665E38131DEDA42C007CA9FA /* RNModuleManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 665E38121DEDA42C007CA9FA /* RNModuleManager.m */; };
13 | 665E38141DEDA42C007CA9FA /* RNModuleManager.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 665E38111DEDA42C007CA9FA /* RNModuleManager.h */; };
14 | /* End PBXBuildFile section */
15 |
16 | /* Begin PBXContainerItemProxy section */
17 | 66ABD5021DEDAAD100F706C0 /* PBXContainerItemProxy */ = {
18 | isa = PBXContainerItemProxy;
19 | containerPortal = 66ABD4FD1DEDAAD100F706C0 /* React.xcodeproj */;
20 | proxyType = 2;
21 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
22 | remoteInfo = React;
23 | };
24 | 66ABD5041DEDAAD100F706C0 /* PBXContainerItemProxy */ = {
25 | isa = PBXContainerItemProxy;
26 | containerPortal = 66ABD4FD1DEDAAD100F706C0 /* React.xcodeproj */;
27 | proxyType = 2;
28 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
29 | remoteInfo = "React-tvOS";
30 | };
31 | /* End PBXContainerItemProxy section */
32 |
33 | /* Begin PBXCopyFilesBuildPhase section */
34 | 665E380C1DEDA42C007CA9FA /* CopyFiles */ = {
35 | isa = PBXCopyFilesBuildPhase;
36 | buildActionMask = 2147483647;
37 | dstPath = "include/$(PRODUCT_NAME)";
38 | dstSubfolderSpec = 16;
39 | files = (
40 | 665E38141DEDA42C007CA9FA /* RNModuleManager.h in CopyFiles */,
41 | );
42 | runOnlyForDeploymentPostprocessing = 0;
43 | };
44 | /* End PBXCopyFilesBuildPhase section */
45 |
46 | /* Begin PBXFileReference section */
47 | 66399AC01DF0490400D167A8 /* RNComponent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNComponent.h; sourceTree = ""; };
48 | 66399AC11DF0490400D167A8 /* RNComponent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNComponent.m; sourceTree = ""; };
49 | 66399AC51DF049AE00D167A8 /* RNComponentManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNComponentManager.h; sourceTree = ""; };
50 | 66399AC61DF049AE00D167A8 /* RNComponentManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNComponentManager.m; sourceTree = ""; };
51 | 665E380E1DEDA42C007CA9FA /* libRNModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
52 | 665E38111DEDA42C007CA9FA /* RNModuleManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNModuleManager.h; sourceTree = ""; };
53 | 665E38121DEDA42C007CA9FA /* RNModuleManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNModuleManager.m; sourceTree = ""; };
54 | 66ABD4FD1DEDAAD100F706C0 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../../react-native/React/React.xcodeproj"; sourceTree = ""; };
55 | /* End PBXFileReference section */
56 |
57 | /* Begin PBXFrameworksBuildPhase section */
58 | 665E380B1DEDA42C007CA9FA /* Frameworks */ = {
59 | isa = PBXFrameworksBuildPhase;
60 | buildActionMask = 2147483647;
61 | files = (
62 | );
63 | runOnlyForDeploymentPostprocessing = 0;
64 | };
65 | /* End PBXFrameworksBuildPhase section */
66 |
67 | /* Begin PBXGroup section */
68 | 665E38051DEDA42C007CA9FA = {
69 | isa = PBXGroup;
70 | children = (
71 | 665E38101DEDA42C007CA9FA /* RNModule */,
72 | 665E380F1DEDA42C007CA9FA /* Products */,
73 | 66ABD4FC1DEDAAD100F706C0 /* Frameworks */,
74 | );
75 | sourceTree = "";
76 | };
77 | 665E380F1DEDA42C007CA9FA /* Products */ = {
78 | isa = PBXGroup;
79 | children = (
80 | 665E380E1DEDA42C007CA9FA /* libRNModule.a */,
81 | );
82 | name = Products;
83 | sourceTree = "";
84 | };
85 | 665E38101DEDA42C007CA9FA /* RNModule */ = {
86 | isa = PBXGroup;
87 | children = (
88 | 665E38111DEDA42C007CA9FA /* RNModuleManager.h */,
89 | 665E38121DEDA42C007CA9FA /* RNModuleManager.m */,
90 | 66399AC01DF0490400D167A8 /* RNComponent.h */,
91 | 66399AC11DF0490400D167A8 /* RNComponent.m */,
92 | 66399AC51DF049AE00D167A8 /* RNComponentManager.h */,
93 | 66399AC61DF049AE00D167A8 /* RNComponentManager.m */,
94 | );
95 | path = RNModule;
96 | sourceTree = "";
97 | };
98 | 66ABD4FC1DEDAAD100F706C0 /* Frameworks */ = {
99 | isa = PBXGroup;
100 | children = (
101 | 66ABD4FD1DEDAAD100F706C0 /* React.xcodeproj */,
102 | );
103 | name = Frameworks;
104 | sourceTree = "";
105 | };
106 | 66ABD4FE1DEDAAD100F706C0 /* Products */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 66ABD5031DEDAAD100F706C0 /* libReact.a */,
110 | 66ABD5051DEDAAD100F706C0 /* libReact-tvOS.a */,
111 | );
112 | name = Products;
113 | sourceTree = "";
114 | };
115 | /* End PBXGroup section */
116 |
117 | /* Begin PBXNativeTarget section */
118 | 665E380D1DEDA42C007CA9FA /* RNModule */ = {
119 | isa = PBXNativeTarget;
120 | buildConfigurationList = 665E38171DEDA42C007CA9FA /* Build configuration list for PBXNativeTarget "RNModule" */;
121 | buildPhases = (
122 | 665E380A1DEDA42C007CA9FA /* Sources */,
123 | 665E380B1DEDA42C007CA9FA /* Frameworks */,
124 | 665E380C1DEDA42C007CA9FA /* CopyFiles */,
125 | );
126 | buildRules = (
127 | );
128 | dependencies = (
129 | );
130 | name = RNModule;
131 | productName = RNModule;
132 | productReference = 665E380E1DEDA42C007CA9FA /* libRNModule.a */;
133 | productType = "com.apple.product-type.library.static";
134 | };
135 | /* End PBXNativeTarget section */
136 |
137 | /* Begin PBXProject section */
138 | 665E38061DEDA42C007CA9FA /* Project object */ = {
139 | isa = PBXProject;
140 | attributes = {
141 | LastUpgradeCheck = 0810;
142 | TargetAttributes = {
143 | 665E380D1DEDA42C007CA9FA = {
144 | CreatedOnToolsVersion = 8.1;
145 | ProvisioningStyle = Automatic;
146 | };
147 | };
148 | };
149 | buildConfigurationList = 665E38091DEDA42C007CA9FA /* Build configuration list for PBXProject "RNModule" */;
150 | compatibilityVersion = "Xcode 3.2";
151 | developmentRegion = English;
152 | hasScannedForEncodings = 0;
153 | knownRegions = (
154 | en,
155 | );
156 | mainGroup = 665E38051DEDA42C007CA9FA;
157 | productRefGroup = 665E380F1DEDA42C007CA9FA /* Products */;
158 | projectDirPath = "";
159 | projectReferences = (
160 | {
161 | ProductGroup = 66ABD4FE1DEDAAD100F706C0 /* Products */;
162 | ProjectRef = 66ABD4FD1DEDAAD100F706C0 /* React.xcodeproj */;
163 | },
164 | );
165 | projectRoot = "";
166 | targets = (
167 | 665E380D1DEDA42C007CA9FA /* RNModule */,
168 | );
169 | };
170 | /* End PBXProject section */
171 |
172 | /* Begin PBXReferenceProxy section */
173 | 66ABD5031DEDAAD100F706C0 /* libReact.a */ = {
174 | isa = PBXReferenceProxy;
175 | fileType = archive.ar;
176 | path = libReact.a;
177 | remoteRef = 66ABD5021DEDAAD100F706C0 /* PBXContainerItemProxy */;
178 | sourceTree = BUILT_PRODUCTS_DIR;
179 | };
180 | 66ABD5051DEDAAD100F706C0 /* libReact-tvOS.a */ = {
181 | isa = PBXReferenceProxy;
182 | fileType = archive.ar;
183 | path = "libReact-tvOS.a";
184 | remoteRef = 66ABD5041DEDAAD100F706C0 /* PBXContainerItemProxy */;
185 | sourceTree = BUILT_PRODUCTS_DIR;
186 | };
187 | /* End PBXReferenceProxy section */
188 |
189 | /* Begin PBXSourcesBuildPhase section */
190 | 665E380A1DEDA42C007CA9FA /* Sources */ = {
191 | isa = PBXSourcesBuildPhase;
192 | buildActionMask = 2147483647;
193 | files = (
194 | 665E38131DEDA42C007CA9FA /* RNModuleManager.m in Sources */,
195 | 66399AC21DF0490400D167A8 /* RNComponent.m in Sources */,
196 | 66399AC71DF049AE00D167A8 /* RNComponentManager.m in Sources */,
197 | );
198 | runOnlyForDeploymentPostprocessing = 0;
199 | };
200 | /* End PBXSourcesBuildPhase section */
201 |
202 | /* Begin XCBuildConfiguration section */
203 | 665E38151DEDA42C007CA9FA /* Debug */ = {
204 | isa = XCBuildConfiguration;
205 | buildSettings = {
206 | ALWAYS_SEARCH_USER_PATHS = NO;
207 | CLANG_ANALYZER_NONNULL = YES;
208 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
209 | CLANG_CXX_LIBRARY = "libc++";
210 | CLANG_ENABLE_MODULES = YES;
211 | CLANG_ENABLE_OBJC_ARC = YES;
212 | CLANG_WARN_BOOL_CONVERSION = YES;
213 | CLANG_WARN_CONSTANT_CONVERSION = YES;
214 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
215 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
216 | CLANG_WARN_EMPTY_BODY = YES;
217 | CLANG_WARN_ENUM_CONVERSION = YES;
218 | CLANG_WARN_INFINITE_RECURSION = YES;
219 | CLANG_WARN_INT_CONVERSION = YES;
220 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
221 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
222 | CLANG_WARN_UNREACHABLE_CODE = YES;
223 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
224 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
225 | COPY_PHASE_STRIP = NO;
226 | DEBUG_INFORMATION_FORMAT = dwarf;
227 | ENABLE_STRICT_OBJC_MSGSEND = YES;
228 | ENABLE_TESTABILITY = YES;
229 | GCC_C_LANGUAGE_STANDARD = gnu99;
230 | GCC_DYNAMIC_NO_PIC = NO;
231 | GCC_NO_COMMON_BLOCKS = YES;
232 | GCC_OPTIMIZATION_LEVEL = 0;
233 | GCC_PREPROCESSOR_DEFINITIONS = (
234 | "DEBUG=1",
235 | "$(inherited)",
236 | );
237 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
238 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
239 | GCC_WARN_UNDECLARED_SELECTOR = YES;
240 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
241 | GCC_WARN_UNUSED_FUNCTION = YES;
242 | GCC_WARN_UNUSED_VARIABLE = YES;
243 | IPHONEOS_DEPLOYMENT_TARGET = 10.1;
244 | MTL_ENABLE_DEBUG_INFO = YES;
245 | ONLY_ACTIVE_ARCH = YES;
246 | SDKROOT = iphoneos;
247 | };
248 | name = Debug;
249 | };
250 | 665E38161DEDA42C007CA9FA /* Release */ = {
251 | isa = XCBuildConfiguration;
252 | buildSettings = {
253 | ALWAYS_SEARCH_USER_PATHS = NO;
254 | CLANG_ANALYZER_NONNULL = YES;
255 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
256 | CLANG_CXX_LIBRARY = "libc++";
257 | CLANG_ENABLE_MODULES = YES;
258 | CLANG_ENABLE_OBJC_ARC = YES;
259 | CLANG_WARN_BOOL_CONVERSION = YES;
260 | CLANG_WARN_CONSTANT_CONVERSION = YES;
261 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
262 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
263 | CLANG_WARN_EMPTY_BODY = YES;
264 | CLANG_WARN_ENUM_CONVERSION = YES;
265 | CLANG_WARN_INFINITE_RECURSION = YES;
266 | CLANG_WARN_INT_CONVERSION = YES;
267 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
268 | CLANG_WARN_SUSPICIOUS_MOVES = YES;
269 | CLANG_WARN_UNREACHABLE_CODE = YES;
270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
272 | COPY_PHASE_STRIP = NO;
273 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
274 | ENABLE_NS_ASSERTIONS = NO;
275 | ENABLE_STRICT_OBJC_MSGSEND = YES;
276 | GCC_C_LANGUAGE_STANDARD = gnu99;
277 | GCC_NO_COMMON_BLOCKS = YES;
278 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
279 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
280 | GCC_WARN_UNDECLARED_SELECTOR = YES;
281 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
282 | GCC_WARN_UNUSED_FUNCTION = YES;
283 | GCC_WARN_UNUSED_VARIABLE = YES;
284 | IPHONEOS_DEPLOYMENT_TARGET = 10.1;
285 | MTL_ENABLE_DEBUG_INFO = NO;
286 | SDKROOT = iphoneos;
287 | VALIDATE_PRODUCT = YES;
288 | };
289 | name = Release;
290 | };
291 | 665E38181DEDA42C007CA9FA /* Debug */ = {
292 | isa = XCBuildConfiguration;
293 | buildSettings = {
294 | HEADER_SEARCH_PATHS = (
295 | "$(SRCROOT)/../../react-native/React/**",
296 | "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
297 | );
298 | OTHER_LDFLAGS = "-ObjC";
299 | PRODUCT_NAME = "$(TARGET_NAME)";
300 | SKIP_INSTALL = YES;
301 | };
302 | name = Debug;
303 | };
304 | 665E38191DEDA42C007CA9FA /* Release */ = {
305 | isa = XCBuildConfiguration;
306 | buildSettings = {
307 | HEADER_SEARCH_PATHS = (
308 | "$(SRCROOT)/../../react-native/React/**",
309 | "${SRCROOT}/../../../ios/Pods/Headers/Public/**",
310 | );
311 | OTHER_LDFLAGS = "-ObjC";
312 | PRODUCT_NAME = "$(TARGET_NAME)";
313 | SKIP_INSTALL = YES;
314 | };
315 | name = Release;
316 | };
317 | /* End XCBuildConfiguration section */
318 |
319 | /* Begin XCConfigurationList section */
320 | 665E38091DEDA42C007CA9FA /* Build configuration list for PBXProject "RNModule" */ = {
321 | isa = XCConfigurationList;
322 | buildConfigurations = (
323 | 665E38151DEDA42C007CA9FA /* Debug */,
324 | 665E38161DEDA42C007CA9FA /* Release */,
325 | );
326 | defaultConfigurationIsVisible = 0;
327 | defaultConfigurationName = Release;
328 | };
329 | 665E38171DEDA42C007CA9FA /* Build configuration list for PBXNativeTarget "RNModule" */ = {
330 | isa = XCConfigurationList;
331 | buildConfigurations = (
332 | 665E38181DEDA42C007CA9FA /* Debug */,
333 | 665E38191DEDA42C007CA9FA /* Release */,
334 | );
335 | defaultConfigurationIsVisible = 0;
336 | defaultConfigurationName = Release;
337 | };
338 | /* End XCConfigurationList section */
339 | };
340 | rootObject = 665E38061DEDA42C007CA9FA /* Project object */;
341 | }
342 |
--------------------------------------------------------------------------------
/ios/RNModule/RNComponent.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNComponent.h
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 01/12/2016.
6 | //
7 | //
8 |
9 | #import
10 |
11 | @interface RNComponent : UIView
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/RNModule/RNComponent.m:
--------------------------------------------------------------------------------
1 | //
2 | // RNComponent.m
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 01/12/2016.
6 | //
7 | //
8 |
9 | #import "RNComponent.h"
10 |
11 | @implementation RNComponent
12 | {
13 | UIColor *squareColor;
14 | }
15 |
16 | - (void)setIsRed:(BOOL)isRed
17 | {
18 | squareColor= (isRed) ? [UIColor redColor] : [UIColor greenColor];
19 | [self setNeedsDisplay];
20 | }
21 |
22 | - (void)drawRect:(CGRect)rect
23 | {
24 | [squareColor setFill];
25 | CGContextFillRect(UIGraphicsGetCurrentContext(), rect);
26 | }
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/ios/RNModule/RNComponentManager.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNComponentManager.h
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 01/12/2016.
6 | //
7 | //
8 |
9 | #import "RCTViewManager.h"
10 |
11 | @interface RNComponentManager : RCTViewManager
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/RNModule/RNComponentManager.m:
--------------------------------------------------------------------------------
1 | //
2 | // RNComponentManager.m
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 01/12/2016.
6 | //
7 | //
8 |
9 | #import "RNComponentManager.h"
10 | #import "RNComponent.h"
11 | #import "UIKit/UIKit.h"
12 |
13 | @implementation RNComponentManager
14 |
15 | RCT_EXPORT_MODULE()
16 |
17 | - (UIView *)view
18 | {
19 | RNComponent * theView;
20 | theView = [[RNComponent alloc] init];
21 | return theView;
22 | }
23 |
24 | RCT_EXPORT_VIEW_PROPERTY(isRed, BOOL)
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/ios/RNModule/RNModule.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNModule.h
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 29/11/2016.
6 | //
7 | //
8 |
9 | #import
10 |
11 | @interface RNModule : NSObject
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/RNModule/RNModule.m:
--------------------------------------------------------------------------------
1 | //
2 | // RNModule.m
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 29/11/2016.
6 | //
7 | //
8 |
9 | #import "RNModule.h"
10 |
11 | @implementation RNModule
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/RNModule/RNModuleManager.h:
--------------------------------------------------------------------------------
1 | //
2 | // RNModule.h
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 29/11/2016.
6 | //
7 | //
8 |
9 | #import
10 | #import "RCTBridgeModule.h"
11 |
12 | @interface RNModuleManager : NSObject
13 |
14 | @end
15 |
--------------------------------------------------------------------------------
/ios/RNModule/RNModuleManager.m:
--------------------------------------------------------------------------------
1 | //
2 | // RNModule.m
3 | // RNModule
4 | //
5 | // Created by Anton Kuznetsov on 29/11/2016.
6 | //
7 | //
8 |
9 | #import "RNModuleManager.h"
10 | #import "RCTLog.h"
11 |
12 | @implementation RNModuleManager
13 | {
14 | NSArray *events;
15 | }
16 |
17 | - (instancetype)init
18 | {
19 | self = [super init];
20 | if (self) {
21 | events = @[
22 | @"Mercedes-Benz",
23 | @"BMW",
24 | @"Porsche",
25 | @"Opel",
26 | @"Volkswagen",
27 | @"Audi"
28 | ];
29 | }
30 | return self;
31 | }
32 |
33 | RCT_EXPORT_MODULE();
34 |
35 | RCT_REMAP_METHOD(findCars,
36 | resolver:(RCTPromiseResolveBlock)resolve
37 | rejecter:(RCTPromiseRejectBlock)reject)
38 | {
39 | if (events) {
40 | resolve(events);
41 | } else {
42 | NSError *error = [NSError errorWithDomain: @"RNModuleManager" code: 146 userInfo: @{NSLocalizedDescriptionKey: @"Error"}];
43 | reject(@"no_events", @"There were no events", error);
44 | }
45 | }
46 |
47 | @end
48 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-module-boilerplate",
3 | "version": "0.1.0",
4 | "description": "React Native Module Boilerplate",
5 | "main": "src/index.js",
6 | "scripts": {
7 | "ci": "scripts/local-ci.sh"
8 | },
9 | "repository": {
10 | "type": "git",
11 | "url": "git+ssh://git@github.com/isnifer/react-native-module-boilerplate.git"
12 | },
13 | "keywords": [
14 | "react",
15 | "react-native",
16 | "ios",
17 | "android"
18 | ],
19 | "author": "Tipsi",
20 | "license": "MIT",
21 | "bugs": {
22 | "url": "https://github.com/isnifer/react-native-module-boilerplate/issues"
23 | },
24 | "homepage": "https://github.com/isnifer/react-native-module-boilerplate#readme",
25 | "rnpm": {
26 | "commands": {
27 | "prelink": "node_modules/react-native-module-boilerplate/scripts/pre-link.sh",
28 | "postlink": "node_modules/react-native-module-boilerplate/scripts/post-link.sh"
29 | }
30 | },
31 | "peerDependencies": {
32 | "react-native": "*"
33 | },
34 | "devDependencies": {
35 | "babel-eslint": "^7.0.0",
36 | "eslint": "^3.7.1",
37 | "eslint-config-tipsi": "^12.0.0"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/scripts/copy-from-node-modules.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | MODULE_NAME="react-native-module-boilerplate"
3 |
4 | cp -rf example/node_modules/$MODULE_NAME/{ios,src} ./
5 | cp -rf example/node_modules/$MODULE_NAME/android/{src,build.gradle} ./android
6 |
--------------------------------------------------------------------------------
/scripts/local-ci.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 |
5 | if [[ $@ == *"--skip-new"* ]]; then
6 | skip_new=true
7 | else
8 | skip_new=false
9 | fi
10 |
11 | if [[ $@ == *"--use-old"* ]]; then
12 | use_old=true
13 | else
14 | use_old=false
15 | fi
16 |
17 | proj_dir_old=example
18 | proj_dir_new=example_tmp
19 |
20 | react_native_version=$(cat $proj_dir_old/package.json | sed -n 's/"react-native": "\(\^|~\)*\(.*\)",*/\2/p')
21 | library_name=$(node -p "require('./package.json').name")
22 |
23 | files_to_copy=(
24 | .appiumhelperrc
25 | .babelrc
26 | package.json
27 | index.{ios,android}.js
28 | android/app/build.gradle
29 | src
30 | scripts
31 | __tests__
32 | )
33 |
34 | isMacOS() {
35 | [ "$(uname)" == "Darwin" ]
36 | }
37 |
38 | ###################
39 | # BEFORE INSTALL #
40 | ###################
41 |
42 | # Check is macOS
43 | ! isMacOS && echo "Current os is not macOS, setup for iOS will be skipped"
44 | # Install react-native-cli if not exist
45 | if ! type react-native > /dev/null; then
46 | yarn install -g react-native-cli
47 | fi
48 |
49 | if ($skip_new && ! $use_old); then
50 | echo "Creating new example project skipped"
51 | # Go to new test project
52 | cd $proj_dir_new
53 | elif (! $skip_new && ! $use_old); then
54 | # Remove react-native to avoid affecting react-native init
55 | rm -rf node_modules/react-native
56 | echo "Creating new example project"
57 | # Remove old test project and tmp dir if exist
58 | rm -rf $proj_dir_new tmp
59 | # Init new test project in tmp directory
60 | mkdir tmp
61 | cd tmp
62 | react-native init $proj_dir_old --version $react_native_version
63 | # Move new project from tmp dir and remove tmp dir
64 | cd ..
65 | mv tmp/$proj_dir_old $proj_dir_new
66 | rm -rf tmp
67 | # Remove default __tests__ folder from new project directory
68 | rm -rf $proj_dir_new/__tests__
69 | # Copy necessary files from example project
70 | for i in ${files_to_copy[@]}; do
71 | if [ -e $proj_dir_old/$i ]; then
72 | cp -Rp $proj_dir_old/$i $proj_dir_new/$i
73 | fi
74 | done
75 | # Go to new test project
76 | cd $proj_dir_new
77 | else
78 | echo "Using example folder for tests"
79 | # Go to old test project
80 | cd $proj_dir_old
81 | fi
82 |
83 | ###################
84 | # INSTALL #
85 | ###################
86 |
87 | # Install dependencies
88 | npm install
89 | # Link project
90 | react-native unlink $library_name
91 | react-native link
92 |
93 | ###################
94 | # BEFORE BUILD #
95 | ###################
96 |
97 | # Run appium
98 | (pkill -9 -f appium || true)
99 | yarn run appium > /dev/null 2>&1 &
100 |
101 | ###################
102 | # BUILD #
103 | ###################
104 |
105 | # Build Android app
106 | yarn run build:android
107 | # Build iOS app
108 | isMacOS && yarn run build:ios
109 |
110 | ###################
111 | # TESTS #
112 | ###################
113 |
114 | # Run Android e2e tests
115 | yarn run test:android
116 | # Run iOS e2e tests
117 | if isMacOS; then
118 | yarn run test:ios
119 | fi
120 |
--------------------------------------------------------------------------------
/scripts/post-link-android.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | // This code is taken from
4 | // https://github.com/maxs15/react-native-spinkit
5 |
6 | var fs = require('fs');
7 | var path = require('path');
8 | var GRADLE_SCRIPT_PATH = path.join(process.cwd(), 'android', 'build.gradle');
9 |
10 | // load build.gradle content
11 | try {
12 | var cfg = fs.readFileSync(GRADLE_SCRIPT_PATH);
13 | } catch(err) {
14 | console.log(err.stack);
15 | console.log('Failed to load `android/build.gradle` when linking react-native-module-boilerplate');
16 | }
17 |
18 | var depStr = String(cfg).match(/allprojects(.|[\r\n])+/);
19 |
20 | if(depStr === null) {
21 | console.log('Could not find `allprojects { }` block in build.gradle');
22 | }
23 |
24 | // search fro allprojects {...} block
25 | var bracketCount = 0;
26 | var str = depStr[0];
27 | var replacePos = 0;
28 | for(var i in str) {
29 | if(str[i] === '{')
30 | bracketCount ++;
31 | else if(str[i] === '}'){
32 | bracketCount --;
33 | // block found
34 | if(bracketCount === 0) {
35 | replacePos = i;
36 | break;
37 | }
38 | }
39 | }
40 |
41 | // add jitpack repo to `repositories` block
42 | var dep = str.substr(0, replacePos);
43 |
44 | // Chech if the repository already exists
45 | if (String(dep).match(/url[^h]*https\:\/\/jitpack\.io/) === null) {
46 |
47 | dep = String(dep).replace(/repositories[^\{]*\{/, 'repositories {\r\n // Add jitpack repository (added by react-native-module-boilerplate)\r\n maven { url "https://jitpack.io" }');
48 | str = dep + str.substr(replacePos, str.length - replacePos);
49 |
50 | // replace original build script
51 | depStr = String(cfg).replace(/allprojects(.|[\r\n])+/, str);
52 | fs.writeFileSync(GRADLE_SCRIPT_PATH, depStr);
53 | }
54 |
--------------------------------------------------------------------------------
/scripts/post-link-ios.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ "$(uname)" != "Darwin" ]; then
4 | echo "Current OS is not macOS, skip iOS linking"
5 | exit 0
6 | fi
7 |
8 | ios_dir=`pwd`/ios
9 | if [ -d ios_dir ]; then
10 | exit 0
11 | fi
12 |
13 | podfile="$ios_dir/Podfile"
14 |
15 | # Type your pods here.
16 | # Example: pod_dep="pod 'Stripe'"
17 | pod_dep=""
18 |
19 | echo "Checking Podfile in iOS project ($podfile)"
20 |
21 | if [ ! -f $podfile ]; then
22 | echo "Adding Podfile to iOS project"
23 |
24 | cd ios
25 | pod init >/dev/null 2>&1
26 | cd ..
27 | else
28 | echo "Found an existing Podfile"
29 | fi
30 |
31 | if ! grep -q "$pod_dep" "$podfile"; then
32 | echo "Adding the following pod to Podfile":
33 | echo ""
34 | echo $pod_dep
35 | echo ""
36 |
37 | echo $pod_dep >> $podfile
38 | fi
39 |
40 | echo "Installing Pods"
41 |
42 | pod install --project-directory=ios
43 |
--------------------------------------------------------------------------------
/scripts/post-link.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | $(dirname "$0")/post-link-ios.sh
4 | $(dirname "$0")/post-link-android.sh
5 |
--------------------------------------------------------------------------------
/scripts/pre-link.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | echo "Preparing to link react-native-module-boilerplate for iOS"
4 |
5 | echo "Checking CocoaPods..."
6 | has_cocoapods=`which pod >/dev/null 2>&1`
7 | if [ -z "$has_cocoapods" ]
8 | then
9 | echo "CocoaPods already installed"
10 | else
11 | echo "Installing CocoaPods..."
12 | gem install cocoapods
13 | fi
14 |
--------------------------------------------------------------------------------
/src/RNComponent.android.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | View,
4 | Text,
5 | } from 'react-native'
6 |
7 | export default class RNComponentBoilerplate extends Component {
8 | render() {
9 | return (
10 |
11 | RNComponentBoilerplate
12 |
13 | )
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/RNComponent.ios.js:
--------------------------------------------------------------------------------
1 | import React, { Component, PropTypes } from 'react'
2 | import { View, requireNativeComponent } from 'react-native'
3 |
4 | export default class RNComponent extends Component {
5 | static propTypes = {
6 | ...View.propTypes,
7 | isRed: PropTypes.bool.isRequired,
8 | }
9 |
10 | render() {
11 | return (
12 |
13 | )
14 | }
15 | }
16 |
17 | const RNComponentView = requireNativeComponent('RNComponent', RNComponent)
18 |
--------------------------------------------------------------------------------
/src/RNModule.android.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | Button,
4 | View,
5 | NativeModules,
6 | } from 'react-native'
7 |
8 | const { RNBoilerplateModule } = NativeModules
9 |
10 | export default class RNBoilerplateModuleComponent extends Component {
11 | render() {
12 | return (
13 |
14 |
19 | )
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/RNModule.ios.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import {
3 | Button,
4 | View,
5 | NativeModules,
6 | } from 'react-native'
7 |
8 | const { RNModuleManager } = NativeModules
9 |
10 | export default class RNModuleManagerComponent extends Component {
11 | render() {
12 | return (
13 |
14 |
19 | )
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import RNModule from './RNModule'
2 | import RNComponent from './RNComponent'
3 |
4 | export {
5 | RNModule,
6 | RNComponent,
7 | }
8 |
--------------------------------------------------------------------------------