├── example
├── .ruby-version
├── .watchmanconfig
├── app.json
├── .bundle
│ └── config
├── babel.config.js
├── example.gif
├── .prettierrc.js
├── android
│ ├── app
│ │ ├── src
│ │ │ ├── main
│ │ │ │ ├── res
│ │ │ │ │ ├── values
│ │ │ │ │ │ ├── strings.xml
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ │ └── ic_launcher_round.png
│ │ │ │ │ └── drawable
│ │ │ │ │ │ └── rn_edit_text_material.xml
│ │ │ │ ├── java
│ │ │ │ │ └── com
│ │ │ │ │ │ └── example
│ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ └── MainApplication.kt
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── debug
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── ReactNativeFlipper.kt
│ │ ├── debug.keystore
│ │ ├── proguard-rules.pro
│ │ ├── build_defs.bzl
│ │ ├── _BUCK
│ │ └── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── settings.gradle
│ ├── gradle.properties
│ ├── build.gradle
│ ├── gradlew.bat
│ └── gradlew
├── ios
│ ├── example
│ │ ├── Images.xcassets
│ │ │ ├── Contents.json
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ ├── example-Bridging-Header.h
│ │ ├── Info.plist
│ │ ├── AppDelegate.swift
│ │ └── LaunchScreen.storyboard
│ ├── example.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ └── contents.xcworkspacedata
│ │ ├── xcshareddata
│ │ │ └── xcschemes
│ │ │ │ └── example.xcscheme
│ │ └── project.pbxproj
│ ├── example.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Podfile
│ └── Podfile.lock
├── .buckconfig
├── Gemfile
├── index.js
├── .eslintrc.js
├── tsconfig.json
├── metro.config.js
├── .gitignore
├── package.json
├── README.md
├── src
│ └── App.tsx
└── Gemfile.lock
├── .eslintignore
├── .vscode
└── settings.json
├── babel.config.js
├── .prettierrc.js
├── src
├── __tests__
│ └── index.test.ts
├── pagination.tsx
└── index.tsx
├── android
├── src
│ └── main
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── com
│ │ └── macanthonyahaotu
│ │ └── reactnativebasiccarousel
│ │ ├── RNBasicCarouselModule.kt
│ │ └── RNBasicCarouselPackage.kt
└── build.gradle
├── ios
├── RNBasicCarouselModule-Bridging-Header.h
├── RNBasicCarouselModule.m
├── RNBasicCarouselModule.swift
└── RNBasicCarouselModule.xcodeproj
│ ├── xcshareddata
│ └── xcschemes
│ │ └── RNBasicCarouselModule.xcscheme
│ └── project.pbxproj
├── .eslintrc.js
├── tsconfig.json
├── react-native-basic-carousel.podspec
├── LICENSE
├── .gitignore
├── package.json
└── README.md
/example/.ruby-version:
--------------------------------------------------------------------------------
1 | 2.7.5
2 |
--------------------------------------------------------------------------------
/example/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | **/node_modules
2 | example/
3 | lib/
4 |
--------------------------------------------------------------------------------
/example/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "displayName": "example"
4 | }
5 |
--------------------------------------------------------------------------------
/example/.bundle/config:
--------------------------------------------------------------------------------
1 | BUNDLE_PATH: "vendor/bundle"
2 | BUNDLE_FORCE_RUBY_PLATFORM: 1
3 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "compile-hero.disable-compile-files-on-did-save-code": true
3 | }
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | }
4 |
--------------------------------------------------------------------------------
/example/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | }
4 |
--------------------------------------------------------------------------------
/example/example.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/example.gif
--------------------------------------------------------------------------------
/.prettierrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | jsxSingleQuote: true,
3 | semi: false,
4 | singleQuote: true,
5 | }
6 |
--------------------------------------------------------------------------------
/example/.prettierrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | jsxSingleQuote: true,
3 | semi: false,
4 | singleQuote: true,
5 | }
6 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | example
3 |
4 |
--------------------------------------------------------------------------------
/example/ios/example/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/example/android/app/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/app/debug.keystore
--------------------------------------------------------------------------------
/src/__tests__/index.test.ts:
--------------------------------------------------------------------------------
1 | import { addOne } from '../index'
2 |
3 | test('addOne', () => {
4 | expect(addOne(0)).toEqual(1)
5 | })
6 |
--------------------------------------------------------------------------------
/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/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/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/macvish/react-native-basic-carousel/HEAD/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/macvish/react-native-basic-carousel/HEAD/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/macvish/react-native-basic-carousel/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/ios/RNBasicCarouselModule-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | //
2 | // Use this file to import your target's public headers that you would like to expose to Swift.
3 | //
4 |
5 | #import
6 |
--------------------------------------------------------------------------------
/example/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 | # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4 | ruby '2.7.5'
5 |
6 | gem 'cocoapods', '~> 1.11', '>= 1.11.2'
7 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/macvish/react-native-basic-carousel/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import { AppRegistry } from 'react-native'
6 |
7 | import { name as appName } from './app.json'
8 | import App from './src/App'
9 |
10 | AppRegistry.registerComponent(appName, () => App)
11 |
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/example/ios/example/example-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | //
2 | // Use this file to import your target's public headers that you would like to expose to Swift.
3 | //
4 |
5 | #import
6 | #import
7 | #import
8 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/com/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example
2 |
3 | import com.facebook.react.ReactActivity
4 |
5 | class MainActivity : ReactActivity() {
6 |
7 | override fun getMainComponentName(): String? {
8 | return "example"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/ios/RNBasicCarouselModule.m:
--------------------------------------------------------------------------------
1 | //
2 | // RNBasicCarouselModule.m
3 | // RNBasicCarouselModule
4 | //
5 | // Copyright © 2022 Macanthony Ahaotu. All rights reserved.
6 | //
7 |
8 | #import
9 |
10 | @interface RCT_EXTERN_MODULE(RNBasicCarouselModule, NSObject)
11 | @end
12 |
--------------------------------------------------------------------------------
/example/ios/example.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | extends: ['@react-native-community', 'plugin:prettier/recommended'],
3 | plugins: ['simple-import-sort'],
4 | root: true,
5 | rules: {
6 | 'import/order': 'off',
7 | 'simple-import-sort/exports': 'error',
8 | 'simple-import-sort/imports': 'error',
9 | 'sort-imports': 'off',
10 | },
11 | }
12 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'example'
2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3 |
4 | include ':react-native-basic-carousel'
5 | project(':react-native-basic-carousel').projectDir = new File(rootProject.projectDir, '../../android')
6 |
7 | include ':app'
8 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | extends: ['@react-native-community', 'plugin:prettier/recommended'],
3 | plugins: ['simple-import-sort'],
4 | root: true,
5 | rules: {
6 | 'import/order': 'off',
7 | 'simple-import-sort/exports': 'error',
8 | 'simple-import-sort/imports': 'error',
9 | 'sort-imports': 'off',
10 | 'react-native/no-inline-styles': 'off',
11 | 'no-undef': 'true',
12 | },
13 | }
14 |
--------------------------------------------------------------------------------
/example/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "esModuleInterop": true,
5 | "jsx": "react-native",
6 | "lib": ["ESNext"],
7 | "module": "CommonJS",
8 | "noEmit": true,
9 | "paths": {
10 | "react-native-basic-carousel": ["../src"]
11 | },
12 | "skipLibCheck": true,
13 | "strict": true,
14 | "target": "ESNext",
15 | },
16 | "include": ["src"]
17 | }
18 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "declaration": true,
4 | "esModuleInterop": true,
5 | "jsx": "react",
6 | "lib": ["ESNext"],
7 | "module": "ESNext",
8 | "moduleResolution": "Node",
9 | "noEmitOnError": true,
10 | "outDir": "./lib",
11 | "skipLibCheck": true,
12 | "sourceMap": true,
13 | "strict": true,
14 | "target": "ES2018",
15 | },
16 | "exclude": ["**/__tests__/*"],
17 | "include": ["src"]
18 | }
19 |
--------------------------------------------------------------------------------
/ios/RNBasicCarouselModule.swift:
--------------------------------------------------------------------------------
1 | //
2 | // RNBasicCarouselModule.swift
3 | // RNBasicCarouselModule
4 | //
5 | // Copyright © 2022 Macanthony Ahaotu. All rights reserved.
6 | //
7 |
8 | import Foundation
9 |
10 | @objc(RNBasicCarouselModule)
11 | class RNBasicCarouselModule: NSObject {
12 | @objc
13 | func constantsToExport() -> [AnyHashable : Any]! {
14 | return ["count": 1]
15 | }
16 |
17 | @objc
18 | static func requiresMainQueueSetup() -> Bool {
19 | return true
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/src/main/java/com/macanthonyahaotu/reactnativebasiccarousel/RNBasicCarouselModule.kt:
--------------------------------------------------------------------------------
1 | package com.macanthonyahaotu.reactnativebasiccarousel
2 |
3 | import com.facebook.react.bridge.ReactApplicationContext
4 | import com.facebook.react.bridge.ReactContextBaseJavaModule
5 |
6 | class RNBasicCarouselModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
7 |
8 | override fun getName() = "RNBasicCarouselModule"
9 |
10 | override fun getConstants(): MutableMap {
11 | return hashMapOf("count" to 1)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/react-native-basic-carousel.podspec:
--------------------------------------------------------------------------------
1 | require 'json'
2 |
3 | package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4 |
5 | Pod::Spec.new do |s|
6 | s.name = package['name']
7 | s.version = package['version']
8 | s.summary = package['description']
9 | s.license = package['license']
10 |
11 | s.authors = package['author']
12 | s.homepage = package['homepage']
13 | s.platform = :ios, "10.0"
14 |
15 | s.source = { :git => "https://github.com/macvish/react-native-basic-carousel.git", :tag => "v#{s.version}" }
16 | s.source_files = "ios/**/*.{h,m,swift}"
17 |
18 | s.dependency 'React'
19 | end
20 |
--------------------------------------------------------------------------------
/example/android/app/build_defs.bzl:
--------------------------------------------------------------------------------
1 | """Helper definitions to glob .aar and .jar targets"""
2 |
3 | def create_aar_targets(aarfiles):
4 | for aarfile in aarfiles:
5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6 | lib_deps.append(":" + name)
7 | android_prebuilt_aar(
8 | name = name,
9 | aar = aarfile,
10 | )
11 |
12 | def create_jar_targets(jarfiles):
13 | for jarfile in jarfiles:
14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15 | lib_deps.append(":" + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
--------------------------------------------------------------------------------
/android/src/main/java/com/macanthonyahaotu/reactnativebasiccarousel/RNBasicCarouselPackage.kt:
--------------------------------------------------------------------------------
1 | package com.macanthonyahaotu.reactnativebasiccarousel
2 |
3 | import com.facebook.react.ReactPackage
4 | import com.facebook.react.bridge.NativeModule
5 | import com.facebook.react.bridge.ReactApplicationContext
6 | import com.facebook.react.uimanager.ViewManager
7 |
8 | class RNBasicCarouselPackage : ReactPackage {
9 |
10 | override fun createViewManagers(reactContext: ReactApplicationContext):
11 | MutableList> {
12 | return mutableListOf()
13 | }
14 |
15 | override fun createNativeModules(reactContext: ReactApplicationContext):
16 | MutableList {
17 | return mutableListOf(RNBasicCarouselModule(reactContext))
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | require_relative '../node_modules/react-native/scripts/react_native_pods'
2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3 |
4 | platform :ios, '12.4'
5 |
6 | target 'example' do
7 | config = use_native_modules!
8 |
9 | use_react_native!(
10 | :path => config[:reactNativePath],
11 | # to enable hermes on iOS, change `false` to `true` and then install pods
12 | :hermes_enabled => false
13 | )
14 |
15 | # Enables Flipper.
16 | #
17 | # Note that if you have use_frameworks! enabled, Flipper will not work and
18 | # you should disable the next line.
19 | use_flipper!()
20 |
21 | post_install do |installer|
22 | react_native_post_install(installer)
23 | __apply_Xcode_12_5_M1_post_install_workaround(installer)
24 | end
25 | end
26 |
--------------------------------------------------------------------------------
/example/metro.config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Metro configuration for React Native
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | */
7 |
8 | const path = require('path')
9 | const exclusionList = require('metro-config/src/defaults/exclusionList')
10 |
11 | const moduleRoot = path.resolve(__dirname, '..')
12 |
13 | module.exports = {
14 | watchFolders: [moduleRoot],
15 | resolver: {
16 | extraNodeModules: {
17 | react: path.resolve(__dirname, 'node_modules/react'),
18 | 'react-native': path.resolve(__dirname, 'node_modules/react-native'),
19 | },
20 | blockList: exclusionList([
21 | new RegExp(`${moduleRoot}/node_modules/react/.*`),
22 | new RegExp(`${moduleRoot}/node_modules/react-native/.*`),
23 | ]),
24 | },
25 | transformer: {
26 | getTransformOptions: async () => ({
27 | transform: {
28 | experimentalImportSupport: false,
29 | inlineRequires: true,
30 | },
31 | }),
32 | },
33 | }
34 |
--------------------------------------------------------------------------------
/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 |
24 | # Android/IntelliJ
25 | #
26 | build/
27 | .idea
28 | .gradle
29 | local.properties
30 | *.iml
31 | *.hprof
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 | yarn-error.log
38 |
39 | # BUCK
40 | buck-out/
41 | \.buckd/
42 | *.keystore
43 | !debug.keystore
44 |
45 | # fastlane
46 | #
47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
48 | # screenshots whenever they are needed.
49 | # For more information about the recommended setup visit:
50 | # https://docs.fastlane.tools/best-practices/source-control/
51 |
52 | */fastlane/report.xml
53 | */fastlane/Preview.html
54 | */fastlane/screenshots
55 |
56 | # Bundle artifact
57 | *.jsbundle
58 |
59 | # CocoaPods
60 | /ios/Pods/
61 |
--------------------------------------------------------------------------------
/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "scale" : "2x",
6 | "size" : "20x20"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "scale" : "3x",
11 | "size" : "20x20"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "scale" : "2x",
16 | "size" : "29x29"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "scale" : "3x",
21 | "size" : "29x29"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "scale" : "2x",
26 | "size" : "40x40"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "40x40"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "scale" : "2x",
36 | "size" : "60x60"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "scale" : "3x",
41 | "size" : "60x60"
42 | },
43 | {
44 | "idiom" : "ios-marketing",
45 | "scale" : "1x",
46 | "size" : "1024x1024"
47 | }
48 | ],
49 | "info" : {
50 | "author" : "xcode",
51 | "version" : 1
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Macanthony Ahaotu
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 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
13 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.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 |
24 | # Android/IntelliJ
25 | #
26 | build/
27 | .idea
28 | .gradle
29 | local.properties
30 | *.iml
31 | *.hprof
32 | /android/gradlew
33 | /android/gradlew.bat
34 | /android/gradle/
35 |
36 | # node.js
37 | #
38 | node_modules/
39 | npm-debug.log
40 | yarn-error.log
41 |
42 | # BUCK
43 | buck-out/
44 | \.buckd/
45 | *.keystore
46 | !debug.keystore
47 |
48 | # fastlane
49 | #
50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
51 | # screenshots whenever they are needed.
52 | # For more information about the recommended setup visit:
53 | # https://docs.fastlane.tools/best-practices/source-control/
54 |
55 | */fastlane/report.xml
56 | */fastlane/Preview.html
57 | */fastlane/screenshots
58 |
59 | # Bundle artifact
60 | *.jsbundle
61 |
62 | # CocoaPods
63 | /ios/Pods/
64 |
65 | # Library
66 | lib/
67 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.safeExtGet = { prop, fallback ->
3 | return rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
4 | }
5 |
6 | repositories {
7 | google()
8 | mavenCentral()
9 | }
10 |
11 | dependencies {
12 | classpath 'com.android.tools.build:gradle:7.0.4'
13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.6.10')}"
14 | }
15 | }
16 |
17 | def safeExtGet(prop, fallback) {
18 | rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
19 | }
20 |
21 | apply plugin: 'com.android.library'
22 | apply plugin: 'kotlin-android'
23 |
24 | android {
25 | compileSdkVersion safeExtGet('compileSdkVersion', 31)
26 | buildToolsVersion safeExtGet('buildToolsVersion', '31.0.0')
27 |
28 | defaultConfig {
29 | minSdkVersion safeExtGet('minSdkVersion', 21)
30 | targetSdkVersion safeExtGet('targetSdkVersion', 31)
31 | }
32 | }
33 |
34 | repositories {
35 | google()
36 | mavenCentral()
37 | }
38 |
39 | dependencies {
40 | //noinspection GradleDynamicVersion
41 | implementation 'com.facebook.react:react-native:+'
42 | }
43 |
--------------------------------------------------------------------------------
/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "android": "react-native run-android",
7 | "compile": "tsc -p .",
8 | "ios": "react-native run-ios",
9 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
10 | "start": "react-native start",
11 | "test": "jest"
12 | },
13 | "dependencies": {
14 | "react": "^18.1.0",
15 | "react-native": "^0.70.5"
16 | },
17 | "devDependencies": {
18 | "@babel/core": "^7.16.12",
19 | "@babel/runtime": "^7.16.7",
20 | "@react-native-community/eslint-config": "^3.0.1",
21 | "@types/jest": "^27.4.0",
22 | "@types/react-native": "^0.66.15",
23 | "@types/react-test-renderer": "^17.0.1",
24 | "babel-jest": "^27.4.6",
25 | "eslint": "^7.32.0",
26 | "eslint-plugin-simple-import-sort": "^7.0.0",
27 | "jest": "^27.4.7",
28 | "metro-react-native-babel-preset": "^0.67.0",
29 | "react-test-renderer": "^17.0.2",
30 | "typescript": "^4.5.5"
31 | },
32 | "resolutions": {
33 | "@types/react": "^17"
34 | },
35 | "jest": {
36 | "preset": "react-native",
37 | "moduleFileExtensions": [
38 | "ts",
39 | "tsx",
40 | "js",
41 | "jsx",
42 | "json",
43 | "node"
44 | ]
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/example/README.md:
--------------------------------------------------------------------------------
1 | # example
2 |
3 | ## Getting Started
4 |
5 | ```bash
6 | yarn
7 | ```
8 |
9 | for iOS:
10 |
11 | ```bash
12 | npx pod-install
13 | ```
14 |
15 | To run the app use:
16 |
17 | ```bash
18 | yarn ios
19 | ```
20 |
21 | or
22 |
23 | ```bash
24 | yarn android
25 | ```
26 |
27 | ## Updating project
28 |
29 | 1. Remove current `example` project
30 | 2. Create a project named `example` using [react-native-better-template](https://github.com/demchenkoalex/react-native-better-template)
31 | 3. Revert `README.md` so you can see this guide
32 | 4. In `tsconfig.json` add
33 |
34 | ```json
35 | "baseUrl": ".",
36 | "paths": {
37 | "react-native-module-template": ["../src"]
38 | },
39 | ```
40 |
41 | 5. Check the difference in `metro.config.js` and combine all
42 | 6. Revert `App.tsx`
43 | 7. Check the difference in `settings.gradle` and combine all
44 | 8. Check the difference in `android/app/build.gradle` and combine all
45 | 9. Check the difference in `MainApplication.kt` and combine all
46 | 10. Open new `example` project in Xcode, right click on the `Libraries` folder, select "Add Files to". Navigate to the library root, `ios` folder, select `RNModuleTemplateModule.xcodeproj`. Deselect "Copy items if needed", click add. Go to the `Build Phases` of the `example` target, "Link Binary with Libraries", click +, search for the `libRNModuleTemplateModule.a`, click add.
47 |
--------------------------------------------------------------------------------
/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: -Xmx1024m -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 | # AndroidX package structure to make it clearer which packages are bundled with the
21 | # Android operating system, and which are packaged with your app's APK
22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
23 | android.useAndroidX=true
24 | # Automatically convert third-party libraries to use AndroidX
25 | android.enableJetifier=true
26 |
27 | # Version of flipper SDK to use with React Native
28 | FLIPPER_VERSION=0.99.0
29 |
--------------------------------------------------------------------------------
/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 | ext {
5 | buildToolsVersion = '31.0.0'
6 | minSdkVersion = 21
7 | compileSdkVersion = 31
8 | targetSdkVersion = 31
9 | kotlinVersion = '1.6.10'
10 | ndkVersion = '21.4.7075529'
11 | }
12 | repositories {
13 | google()
14 | mavenCentral()
15 | }
16 | dependencies {
17 | classpath 'com.android.tools.build:gradle:7.0.4'
18 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
19 | // NOTE: Do not place your application dependencies here; they belong
20 | // in the individual module build.gradle files
21 | }
22 | }
23 |
24 | allprojects {
25 | repositories {
26 | maven {
27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
28 | url "$rootDir/../node_modules/react-native/android"
29 | }
30 | maven {
31 | // Android JSC is installed from npm
32 | url "$rootDir/../node_modules/jsc-android/dist"
33 | }
34 | mavenCentral {
35 | // We don't want to fetch react-native from Maven Central as there are
36 | // older versions over there.
37 | content {
38 | excludeGroup "com.facebook.react"
39 | }
40 | }
41 | google()
42 | maven { url 'https://www.jitpack.io' }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/example/android/app/_BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.example",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.example",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/example/src/App.tsx:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from 'react'
2 | import { Dimensions, StyleSheet, Text, View } from 'react-native'
3 | import RNBasicCarouselModule, { Carousel } from 'react-native-basic-carousel'
4 |
5 | const { width } = Dimensions.get('window')
6 | interface Data {
7 | id?: number
8 | text?: string
9 | }
10 |
11 | const data: Data[] = [
12 | {
13 | id: 1,
14 | text: 'Carousel 1'
15 | },
16 | {
17 | id: 2,
18 | text: 'Carousel 2'
19 | },
20 | {
21 | id: 3,
22 | text: 'Carousel 3'
23 | }
24 | ]
25 |
26 | const App = () => {
27 | const styles = useStyle()
28 |
29 | const renderItem = ({ item, index }: { item: Data, index: number }) => {
30 | return
31 | {item?.text}
32 |
33 | }
34 |
35 | const getItem = (item: Data) => {
36 | console.log(item)
37 | }
38 |
39 | useEffect(() => {
40 | console.log(RNBasicCarouselModule)
41 | })
42 |
43 | return console.log(id)}
48 | itemWidth={width}
49 | customPagination={({ activeIndex }) => {activeIndex}}
50 | paginationType='circle'
51 | autoplay
52 | />
53 | }
54 |
55 | export default App
56 |
57 | const useStyle = () => {
58 | const style = StyleSheet.create({
59 | container: {
60 | flex: 1,
61 | backgroundColor: 'blue',
62 | justifyContent: 'center',
63 | margin: 20
64 | },
65 | text: {
66 | color: 'white',
67 | fontSize: 20,
68 | textAlign: 'center'
69 | }
70 | })
71 |
72 | return style
73 | }
74 |
--------------------------------------------------------------------------------
/example/ios/example/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | example
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
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 | $(CURRENT_PROJECT_VERSION)
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | NSLocationWhenInUseUsageDescription
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/example/ios/example/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | #if DEBUG && FB_SONARKIT_ENABLED
3 | import FlipperKit
4 | #endif
5 |
6 | @UIApplicationMain
7 | class AppDelegate: UIResponder, UIApplicationDelegate, RCTBridgeDelegate {
8 |
9 | var window: UIWindow?
10 |
11 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
12 | initializeFlipper(with: application)
13 |
14 | let bridge = RCTBridge(delegate: self, launchOptions: launchOptions)
15 | let rootView = RCTRootView(bridge: bridge!, moduleName: "example", initialProperties: nil)
16 |
17 | if #available(iOS 13.0, *) {
18 | rootView.backgroundColor = UIColor.systemBackground
19 | } else {
20 | rootView.backgroundColor = UIColor.white
21 | }
22 |
23 | window = UIWindow(frame: UIScreen.main.bounds)
24 | let rootViewController = UIViewController()
25 | rootViewController.view = rootView
26 | window?.rootViewController = rootViewController
27 | window?.makeKeyAndVisible()
28 |
29 | return true
30 | }
31 |
32 | func sourceURL(for bridge: RCTBridge!) -> URL! {
33 | #if DEBUG
34 | return RCTBundleURLProvider.sharedSettings()?.jsBundleURL(forBundleRoot: "index", fallbackResource: nil)
35 | #else
36 | return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
37 | #endif
38 | }
39 |
40 | private func initializeFlipper(with application: UIApplication) {
41 | #if DEBUG && FB_SONARKIT_ENABLED
42 | let client = FlipperClient.shared()
43 | let layoutDescriptionMapper = SKDescriptorMapper(defaults: ())
44 | client?.add(FlipperKitLayoutPlugin(rootNode: application, with: layoutDescriptionMapper))
45 | client?.add(FKUserDefaultsPlugin(suiteName: nil))
46 | client?.add(FlipperKitReactPlugin())
47 | client?.add(FlipperKitNetworkPlugin(networkAdapter: SKIOSNetworkAdapter()))
48 | client?.start()
49 | #endif
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/rn_edit_text_material.xml:
--------------------------------------------------------------------------------
1 |
15 |
20 |
21 |
22 |
31 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-basic-carousel",
3 | "version": "1.1.2",
4 | "description": "React Native component used for snapping through and displaying a list views, a basic carousel",
5 | "homepage": "https://github.com/macvish/react-native-basic-carousel#readme",
6 | "main": "lib/index.js",
7 | "types": "lib/index.d.ts",
8 | "keywords": [
9 | "react-native",
10 | "react-native-carousel",
11 | "react",
12 | "carousel",
13 | "slide",
14 | "slider",
15 | "swiper",
16 | "images",
17 | "scroll",
18 | "items",
19 | "snap",
20 | "android",
21 | "ios",
22 | "snapping",
23 | "autoplay"
24 | ],
25 | "author": "Macanthony Ahaotu ",
26 | "license": "MIT",
27 | "files": [
28 | "android",
29 | "ios",
30 | "lib",
31 | "react-native-basic-carousel.podspec",
32 | "!android/build",
33 | "!.DS_Store",
34 | "!.gradle",
35 | "!.idea",
36 | "!build",
37 | "!gradle",
38 | "!*.iml",
39 | "!gradlew",
40 | "!gradlew.bat",
41 | "!local.properties",
42 | "!project.xcworkspace",
43 | "!xcshareddata",
44 | "!xcuserdata"
45 | ],
46 | "scripts": {
47 | "compile": "rm -rf lib && tsc -p .",
48 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
49 | "prepare": "yarn compile",
50 | "test": "jest"
51 | },
52 | "devDependencies": {
53 | "@babel/core": "^7.16.12",
54 | "@babel/runtime": "^7.16.7",
55 | "@react-native-community/eslint-config": "^3.0.1",
56 | "@types/jest": "^27.4.0",
57 | "@types/react-native": "^0.66.15",
58 | "@types/react-test-renderer": "^17.0.1",
59 | "babel-jest": "^27.4.6",
60 | "eslint": "^7.32.0",
61 | "eslint-plugin-simple-import-sort": "^7.0.0",
62 | "jest": "^27.4.7",
63 | "metro-react-native-babel-preset": "^0.72.3",
64 | "react": "18.1.0",
65 | "react-native": "0.70.5",
66 | "react-test-renderer": "^17.0.2",
67 | "typescript": "^4.5.5"
68 | },
69 | "peerDependencies": {
70 | "react": "*",
71 | "react-native": "*"
72 | },
73 | "jest": {
74 | "preset": "react-native",
75 | "moduleFileExtensions": [
76 | "ts",
77 | "tsx",
78 | "js",
79 | "jsx",
80 | "json",
81 | "node"
82 | ]
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/src/pagination.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react'
2 | import { Animated, Dimensions, Platform, StyleSheet, View } from 'react-native'
3 |
4 | const { width } = Dimensions.get('window')
5 |
6 | interface PaginationProps {
7 | data: {}[]
8 | activeIndex: Animated.Value
9 | color?: string
10 | paginationType?: 'default' | 'circle'
11 | paginationBackgroundColor?: string
12 | }
13 |
14 | const Pagination: React.FC = ({
15 | activeIndex,
16 | color,
17 | data,
18 | paginationType,
19 | paginationBackgroundColor
20 | }) => {
21 | const styles = useStyle()
22 |
23 | const renderItems = () => {
24 | const dotWidthFunc = () => {
25 | if (paginationType === 'circle') {
26 | return [8, 10, 8]
27 | }
28 |
29 | return [20, 35, 20]
30 | }
31 | return data.map((_, i) => {
32 | const inputRange = [(i - 1) * width, i * width, (i + 1) * width]
33 | const dotWidth = activeIndex.interpolate({
34 | inputRange,
35 | outputRange: dotWidthFunc(),
36 | extrapolate: 'clamp',
37 | })
38 | const opacity = activeIndex.interpolate({
39 | inputRange,
40 | outputRange: [0.2, 1, 0.2],
41 | extrapolate: 'clamp',
42 | })
43 |
44 | return (
45 |
57 | )
58 | })
59 | }
60 |
61 | return {renderItems()}
65 | }
66 |
67 | export default Pagination
68 |
69 | const useStyle = () => {
70 | const styles = StyleSheet.create({
71 | dotContainer: {
72 | flexDirection: 'row',
73 | justifyContent: 'center',
74 | alignItems: 'center',
75 | height: 15,
76 | marginTop: Platform.OS === 'ios' ? 10 : 15,
77 | marginBottom: Platform.OS === 'ios' ? 15 : 25,
78 | },
79 | dot: {
80 | borderRadius: 7,
81 | marginHorizontal: 2,
82 | },
83 | })
84 |
85 | return styles
86 | }
87 |
--------------------------------------------------------------------------------
/example/android/app/src/main/java/com/example/MainApplication.kt:
--------------------------------------------------------------------------------
1 | package com.example
2 |
3 | import android.app.Application
4 | import android.content.Context
5 | import com.macanthonyahaotu.reactnativebasiccarousel.RNBasicCarouselPackage
6 | import com.facebook.react.*
7 | import com.facebook.soloader.SoLoader
8 | import java.lang.reflect.InvocationTargetException
9 |
10 | class MainApplication : Application(), ReactApplication {
11 |
12 | private val mReactNativeHost = object : ReactNativeHost(this) {
13 | override fun getUseDeveloperSupport(): Boolean {
14 | return BuildConfig.DEBUG
15 | }
16 |
17 | override fun getPackages(): List {
18 | val packages = PackageList(this).packages
19 | // Packages that cannot be autolinked yet can be added manually here, for example:
20 | // packages.add(MyReactNativePackage());
21 | packages.add(RNBasicCarouselPackage())
22 | return packages
23 | }
24 |
25 | override fun getJSMainModuleName(): String {
26 | return "index"
27 | }
28 | }
29 |
30 | override fun getReactNativeHost(): ReactNativeHost {
31 | return mReactNativeHost
32 | }
33 |
34 | override fun onCreate() {
35 | super.onCreate()
36 | SoLoader.init(this, false)
37 | initializeFlipper(this, reactNativeHost.reactInstanceManager)
38 | }
39 |
40 | companion object {
41 |
42 | private fun initializeFlipper(context: Context, reactInstanceManager: ReactInstanceManager) {
43 | if (BuildConfig.DEBUG) {
44 | try {
45 | val aClass = Class.forName("com.example.ReactNativeFlipper")
46 | aClass
47 | .getMethod("initializeFlipper", Context::class.java, ReactInstanceManager::class.java)
48 | .invoke(null, context, reactInstanceManager)
49 | } catch (e: ClassNotFoundException) {
50 | e.printStackTrace()
51 | } catch (e: NoSuchMethodException) {
52 | e.printStackTrace()
53 | } catch (e: IllegalAccessException) {
54 | e.printStackTrace()
55 | } catch (e: InvocationTargetException) {
56 | e.printStackTrace()
57 | }
58 | }
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/ios/RNBasicCarouselModule.xcodeproj/xcshareddata/xcschemes/RNBasicCarouselModule.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
44 |
50 |
51 |
57 |
58 |
59 |
60 |
62 |
63 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/java/com/example/ReactNativeFlipper.kt:
--------------------------------------------------------------------------------
1 | package com.example
2 |
3 | import android.content.Context
4 | import com.facebook.flipper.android.AndroidFlipperClient
5 | import com.facebook.flipper.android.utils.FlipperUtils
6 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin
7 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin
8 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin
9 | import com.facebook.flipper.plugins.inspector.DescriptorMapping
10 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin
11 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor
12 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin
13 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin
14 | import com.facebook.react.ReactInstanceManager
15 | import com.facebook.react.ReactInstanceManager.ReactInstanceEventListener
16 | import com.facebook.react.bridge.ReactContext
17 | import com.facebook.react.modules.network.NetworkingModule
18 |
19 | object ReactNativeFlipper {
20 | @JvmStatic
21 | fun initializeFlipper(context: Context?, reactInstanceManager: ReactInstanceManager) {
22 | if (FlipperUtils.shouldEnableFlipper(context)) {
23 | val client = AndroidFlipperClient.getInstance(context)
24 | client.addPlugin(InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()))
25 | client.addPlugin(DatabasesFlipperPlugin(context))
26 | client.addPlugin(SharedPreferencesFlipperPlugin(context))
27 | client.addPlugin(CrashReporterPlugin.getInstance())
28 | val networkFlipperPlugin = NetworkFlipperPlugin()
29 | NetworkingModule.setCustomClientBuilder { builder -> builder.addNetworkInterceptor(FlipperOkhttpInterceptor(networkFlipperPlugin)) }
30 | client.addPlugin(networkFlipperPlugin)
31 | client.start()
32 |
33 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
34 | // Hence we run if after all native modules have been initialized
35 | val reactContext = reactInstanceManager.currentReactContext
36 | if (reactContext == null) {
37 | reactInstanceManager.addReactInstanceEventListener(
38 | object : ReactInstanceEventListener {
39 | override fun onReactContextInitialized(reactContext: ReactContext) {
40 | reactInstanceManager.removeReactInstanceEventListener(this)
41 | reactContext.runOnNativeModulesQueueThread { client.addPlugin(FrescoFlipperPlugin()) }
42 | }
43 | })
44 | } else {
45 | client.addPlugin(FrescoFlipperPlugin())
46 | }
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/example/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (3.0.5)
5 | rexml
6 | activesupport (6.1.4.4)
7 | concurrent-ruby (~> 1.0, >= 1.0.2)
8 | i18n (>= 1.6, < 2)
9 | minitest (>= 5.1)
10 | tzinfo (~> 2.0)
11 | zeitwerk (~> 2.3)
12 | addressable (2.8.0)
13 | public_suffix (>= 2.0.2, < 5.0)
14 | algoliasearch (1.27.5)
15 | httpclient (~> 2.8, >= 2.8.3)
16 | json (>= 1.5.1)
17 | atomos (0.1.3)
18 | claide (1.1.0)
19 | cocoapods (1.11.2)
20 | addressable (~> 2.8)
21 | claide (>= 1.0.2, < 2.0)
22 | cocoapods-core (= 1.11.2)
23 | cocoapods-deintegrate (>= 1.0.3, < 2.0)
24 | cocoapods-downloader (>= 1.4.0, < 2.0)
25 | cocoapods-plugins (>= 1.0.0, < 2.0)
26 | cocoapods-search (>= 1.0.0, < 2.0)
27 | cocoapods-trunk (>= 1.4.0, < 2.0)
28 | cocoapods-try (>= 1.1.0, < 2.0)
29 | colored2 (~> 3.1)
30 | escape (~> 0.0.4)
31 | fourflusher (>= 2.3.0, < 3.0)
32 | gh_inspector (~> 1.0)
33 | molinillo (~> 0.8.0)
34 | nap (~> 1.0)
35 | ruby-macho (>= 1.0, < 3.0)
36 | xcodeproj (>= 1.21.0, < 2.0)
37 | cocoapods-core (1.11.2)
38 | activesupport (>= 5.0, < 7)
39 | addressable (~> 2.8)
40 | algoliasearch (~> 1.0)
41 | concurrent-ruby (~> 1.1)
42 | fuzzy_match (~> 2.0.4)
43 | nap (~> 1.0)
44 | netrc (~> 0.11)
45 | public_suffix (~> 4.0)
46 | typhoeus (~> 1.0)
47 | cocoapods-deintegrate (1.0.5)
48 | cocoapods-downloader (1.5.1)
49 | cocoapods-plugins (1.0.0)
50 | nap
51 | cocoapods-search (1.0.1)
52 | cocoapods-trunk (1.6.0)
53 | nap (>= 0.8, < 2.0)
54 | netrc (~> 0.11)
55 | cocoapods-try (1.2.0)
56 | colored2 (3.1.2)
57 | concurrent-ruby (1.1.9)
58 | escape (0.0.4)
59 | ethon (0.15.0)
60 | ffi (>= 1.15.0)
61 | ffi (1.15.5)
62 | fourflusher (2.3.1)
63 | fuzzy_match (2.0.4)
64 | gh_inspector (1.1.3)
65 | httpclient (2.8.3)
66 | i18n (1.8.11)
67 | concurrent-ruby (~> 1.0)
68 | json (2.6.1)
69 | minitest (5.15.0)
70 | molinillo (0.8.0)
71 | nanaimo (0.3.0)
72 | nap (1.1.0)
73 | netrc (0.11.0)
74 | public_suffix (4.0.6)
75 | rexml (3.2.5)
76 | ruby-macho (2.5.1)
77 | typhoeus (1.4.0)
78 | ethon (>= 0.9.0)
79 | tzinfo (2.0.4)
80 | concurrent-ruby (~> 1.0)
81 | xcodeproj (1.21.0)
82 | CFPropertyList (>= 2.3.3, < 4.0)
83 | atomos (~> 0.1.3)
84 | claide (>= 1.0.2, < 2.0)
85 | colored2 (~> 3.1)
86 | nanaimo (~> 0.3.0)
87 | rexml (~> 3.2.4)
88 | zeitwerk (2.5.3)
89 |
90 | PLATFORMS
91 | ruby
92 |
93 | DEPENDENCIES
94 | cocoapods (~> 1.11, >= 1.11.2)
95 |
96 | RUBY VERSION
97 | ruby 2.7.5p203
98 |
99 | BUNDLED WITH
100 | 2.3.5
101 |
--------------------------------------------------------------------------------
/example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
43 |
45 |
51 |
52 |
53 |
54 |
60 |
62 |
68 |
69 |
70 |
71 |
73 |
74 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-native-basic-carousel
2 |
3 | This is a basic React Native carousel which features a pagination.
4 |
5 | 
6 |
7 | ## Installation
8 |
9 | 1. Download package with npm or yarn
10 |
11 | ```
12 | npm install react-native-basic-carousel
13 | ```
14 |
15 | ```
16 | yarn add react-native-basic-carousel
17 | ```
18 |
19 | 2. Install pods
20 |
21 | ```
22 | cd ios && pod install
23 | ```
24 |
25 | 3. Rebuild the project
26 |
27 | ```
28 | npx react-native run-android
29 | npx react-native run-ios
30 | ```
31 |
32 | ## Example
33 |
34 | ```jsx
35 | import { Carousel } from 'react-native-basic-carousel'
36 |
37 | {...}}
40 | itemWidth={width}
41 | onSnapItem={(item) => console.log(item)}
42 | pagination
43 | autoplay
44 | />
45 | ```
46 |
47 | To create your own pagination, do this:
48 |
49 | ```jsx
50 | {...}}
53 | itemWidth={width}
54 | customPagination={({ activeIndex }) => {activeIndex}}
55 | />
56 | ```
57 |
58 | ## Props
59 |
60 | | Props | Description | Type | Default |
61 | | ----- | ------------ | ---- | ------- |
62 | | `data` | Array of items to loop on | Array | **Required** |
63 | | `renderItem` | Takes an item from data and renders it into the list. The function receives one argument {item, index} Array | Function | **Required** |
64 | | `autoplay` | When true, the carousel slides automatically | Boolean | `false` |
65 | | `autoplayDelay` | When true, the carousel slides automatically | Number | `2500` |
66 | | `itemWidth` | Width of carousel's item and carousel itself | Number | **Required** |
67 | | `onSnapToItem` | Callback fired after snapping to an item | Function | `undefined`|
68 | | `bounces` | When true, the carousel bounces when it reaches the end (only available on `ios`) | Boolean | `false` |
69 | | `pagination` | When true, pagination is displayed under the carousel item | Boolean | `false` |
70 | | `paginationColor` | Takes a color code for the pagination dots | String | `undefined` |
71 | | `paginationType` | Display pagination dots in either cirlce mode or default (Rectangle) | String (`default`, `circle`) | `default` |
72 | | `paginationPosition` | Positions pagination to the top of the carousel or bottom | String | (`Top`, `bottom`) | `bottom`
73 | | `paginationBackgroundColor` | Background color for pagination wrapper | String | (`Top`, `bottom`) | `bottom`
74 | | `getCurrentIndex` | callback to get the current displayed item index | Function | `undefined` |
75 | | `customPagination` | Allows for custom made pagination to be displaued | Function | `undefined` |
76 |
77 | ### Inherited props
78 |
79 | The component is built on top of the `FlatList` component, meaning it inherits from [`FlatList`](https://facebook.github.io/react-native/docs/flatlist.html), [`VirtualizedList`](https://facebook.github.io/react-native/docs/virtualizedlist.html), and [`ScrollView`](https://facebook.github.io/react-native/docs/scrollview.html).
80 |
81 | You can use almost all props from this three components, but some of them can't be overriden because it would mess with our implementation's logic.
82 |
83 | Here are a few useful props regarding carousel's **style and "feeling"**: `scrollEnabled` (if you want to disable user scrolling while still being able to use `Carousel`'s methods), `showsHorizontalScrollIndicator`, `overScrollMode` (android), `decelerationRate` (ios), `scrollEventThrottle` (ios).
84 |
85 | And here are some useful ones for **performance optimizations and rendering**: `initialNumToRender`, `maxToRenderPerBatch`, `windowSize`, `updateCellsBatchingPeriod`, `extraData`, `removeClippedSubviews` (the latter may have bugs, as stated in [RN's doc](https://facebook.github.io/react-native/docs/flatlist.html#removeclippedsubviews)). The first three are already implemented with default parameters, but you can override them if they don't suit your needs.
86 |
--------------------------------------------------------------------------------
/example/ios/example/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/src/index.tsx:
--------------------------------------------------------------------------------
1 | import * as React from 'react'
2 | import {
3 | Animated,
4 | FlatList,
5 | FlatListProps,
6 | ListRenderItem,
7 | NativeModules,
8 | View,
9 | ViewToken,
10 | } from 'react-native'
11 |
12 | import Pagination from './pagination'
13 |
14 | const AnimatedFlatList = Animated.createAnimatedComponent(FlatList)
15 |
16 | export interface CarouselProps extends FlatListProps<{}> {
17 | data: Array<{}>
18 | renderItem: ListRenderItem
19 | onSnapToItem?: (item: {}) => void
20 | itemWidth: number
21 | bounces?: boolean
22 | pagination?: boolean
23 | paginationColor?: string
24 | paginationType?: 'default' | 'circle'
25 | autoplay?: boolean
26 | autoplayDelay?: number
27 | placeholderContent?: React.ReactNode
28 | getCurrentIndex?: (value: number) => void
29 | customPagination?: ({ activeIndex }: { activeIndex: number }) => React.ReactNode
30 | paginationPosition?: 'top' | 'bottom'
31 | paginationBackgroundColor?: string
32 | }
33 |
34 | export const Carousel: React.FC = React.forwardRef(({
35 | bounces,
36 | data,
37 | itemWidth,
38 | onSnapToItem,
39 | pagination,
40 | paginationColor,
41 | paginationType,
42 | renderItem,
43 | autoplay = false,
44 | autoplayDelay,
45 | placeholderContent,
46 | getCurrentIndex,
47 | customPagination,
48 | paginationPosition,
49 | paginationBackgroundColor,
50 | ...props
51 | }, ref) => {
52 | const [currentIndex, setCurrentIndex] = React.useState(0)
53 | const [didReachEnd, setDidReachEnd] = React.useState(false)
54 | const slidesRef = React.useRef>(null)
55 | const scrollX = React.useRef(new Animated.Value(0)).current
56 | const viewabilityConfig = React.useRef({
57 | viewAreaCoveragePercentThreshold: 70,
58 | waitForInteraction: true,
59 | }).current
60 |
61 | const onEndReacted = (info: { distanceFromEnd: number }) => {
62 | setDidReachEnd(true)
63 | props.onEndReached?.(info)
64 | }
65 |
66 | const onViewableItemsChanged = React.useCallback(
67 | ({ viewableItems }: { viewableItems: Array }) => {
68 | if (viewableItems && viewableItems.length > 0) {
69 | const index = viewableItems[0].index as number
70 | setCurrentIndex(index)
71 | if (index < data?.length - 1) {
72 | setDidReachEnd(false)
73 | }
74 | }
75 | },
76 | [data]
77 | )
78 |
79 | const viewabilityConfigCallbackPairs = React.useRef([
80 | { viewabilityConfig, onViewableItemsChanged },
81 | ])
82 |
83 | const getItemLayout = (_data: any, index: number) => ({
84 | length: itemWidth,
85 | offset: itemWidth * index,
86 | index,
87 | })
88 |
89 | const renderCustomPagination = () => {
90 | if (customPagination && !pagination && data?.length > 1) {
91 | return customPagination({activeIndex: currentIndex})
92 | }
93 | }
94 |
95 | const scrollToIndex = ({ index, animated, ...otherProps }: {
96 | animated?: boolean | null | undefined;
97 | index: number;
98 | viewOffset?: number | undefined;
99 | viewPosition?: number | undefined;
100 | }) => {
101 | slidesRef.current?.scrollToIndex({
102 | animated,
103 | index,
104 | ...otherProps
105 | })
106 | }
107 |
108 | React.useImperativeHandle(ref, () => ({
109 | scrollToIndex
110 | }))
111 |
112 | React.useEffect(() => {
113 | onSnapToItem?.(data[currentIndex])
114 | getCurrentIndex?.(currentIndex)
115 | }, [currentIndex, data, onSnapToItem, getCurrentIndex])
116 |
117 | React.useEffect(() => {
118 | let timer: NodeJS.Timeout
119 | if (autoplay) {
120 | timer = setTimeout(() => {
121 | if (didReachEnd) {
122 | slidesRef.current?.scrollToIndex({
123 | index: 0,
124 | animated: true,
125 | })
126 | } else {
127 | slidesRef.current?.scrollToIndex({
128 | index: currentIndex + 1,
129 | animated: true,
130 | })
131 | }
132 | }, autoplayDelay ?? 2500)
133 | }
134 |
135 | return () => clearTimeout(timer)
136 | }, [autoplay, autoplayDelay, currentIndex, didReachEnd])
137 |
138 | return (
139 | <>
140 | {paginationPosition === 'top' && renderCustomPagination()}
141 | {pagination && paginationPosition === 'top' && data?.length > 1 && (
142 |
149 | )}
150 | (
156 |
157 | {renderItem(itemProps)}
158 |
159 | )}
160 | onScroll={Animated.event(
161 | [{ nativeEvent: { contentOffset: { x: scrollX } } }],
162 | { useNativeDriver: false }
163 | )}
164 | ListEmptyComponent={() => (
165 | {placeholderContent}
166 | )}
167 | getItemLayout={getItemLayout}
168 | horizontal
169 | pagingEnabled
170 | bounces={bounces}
171 | showsHorizontalScrollIndicator={false}
172 | snapToInterval={itemWidth}
173 | snapToAlignment='start'
174 | renderToHardwareTextureAndroid
175 | scrollEventThrottle={32}
176 | decelerationRate={0}
177 | style={{ width: itemWidth }}
178 | viewabilityConfigCallbackPairs={viewabilityConfigCallbackPairs.current}
179 | onEndReached={onEndReacted}
180 | onEndReachedThreshold={0.5}
181 | keyExtractor={(_, index) => index.toString()}
182 | initialScrollIndex={0}
183 | />
184 | {pagination && paginationPosition !== 'top' && data?.length > 1 && (
185 |
192 | )}
193 | { paginationPosition !== 'top' && renderCustomPagination()}
194 | >
195 | )
196 | })
197 |
198 | export default NativeModules.RNBasicCarouselModule
199 |
--------------------------------------------------------------------------------
/example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 |
86 | # Determine the Java command to use to start the JVM.
87 | if [ -n "$JAVA_HOME" ] ; then
88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89 | # IBM's JDK on AIX uses strange locations for the executables
90 | JAVACMD="$JAVA_HOME/jre/sh/java"
91 | else
92 | JAVACMD="$JAVA_HOME/bin/java"
93 | fi
94 | if [ ! -x "$JAVACMD" ] ; then
95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96 |
97 | Please set the JAVA_HOME variable in your environment to match the
98 | location of your Java installation."
99 | fi
100 | else
101 | JAVACMD="java"
102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103 |
104 | Please set the JAVA_HOME variable in your environment to match the
105 | location of your Java installation."
106 | fi
107 |
108 | # Increase the maximum file descriptors if we can.
109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110 | MAX_FD_LIMIT=`ulimit -H -n`
111 | if [ $? -eq 0 ] ; then
112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113 | MAX_FD="$MAX_FD_LIMIT"
114 | fi
115 | ulimit -n $MAX_FD
116 | if [ $? -ne 0 ] ; then
117 | warn "Could not set maximum file descriptor limit: $MAX_FD"
118 | fi
119 | else
120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121 | fi
122 | fi
123 |
124 | # For Darwin, add options to specify how the application appears in the dock
125 | if $darwin; then
126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127 | fi
128 |
129 | # For Cygwin or MSYS, switch paths to Windows format before running java
130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133 |
134 | JAVACMD=`cygpath --unix "$JAVACMD"`
135 |
136 | # We build the pattern for arguments to be converted via cygpath
137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138 | SEP=""
139 | for dir in $ROOTDIRSRAW ; do
140 | ROOTDIRS="$ROOTDIRS$SEP$dir"
141 | SEP="|"
142 | done
143 | OURCYGPATTERN="(^($ROOTDIRS))"
144 | # Add a user-defined pattern to the cygpath arguments
145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147 | fi
148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
149 | i=0
150 | for arg in "$@" ; do
151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153 |
154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156 | else
157 | eval `echo args$i`="\"$arg\""
158 | fi
159 | i=`expr $i + 1`
160 | done
161 | case $i in
162 | 0) set -- ;;
163 | 1) set -- "$args0" ;;
164 | 2) set -- "$args0" "$args1" ;;
165 | 3) set -- "$args0" "$args1" "$args2" ;;
166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172 | esac
173 | fi
174 |
175 | # Escape application args
176 | save () {
177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178 | echo " "
179 | }
180 | APP_ARGS=`save "$@"`
181 |
182 | # Collect all arguments for the java command, following the shell quoting and substitution rules
183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184 |
185 | exec "$JAVACMD" "$@"
186 |
--------------------------------------------------------------------------------
/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'kotlin-android'
3 |
4 | import com.android.build.OutputFile
5 |
6 | /**
7 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
8 | * and bundleReleaseJsAndAssets).
9 | * These basically call `react-native bundle` with the correct arguments during the Android build
10 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
11 | * bundle directly from the development server. Below you can see all the possible configurations
12 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
13 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
14 | *
15 | * project.ext.react = [
16 | * // the name of the generated asset file containing your JS bundle
17 | * bundleAssetName: "index.android.bundle",
18 | *
19 | * // the entry file for bundle generation. If none specified and
20 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is
21 | * // default. Can be overridden with ENTRY_FILE environment variable.
22 | * entryFile: "index.android.js",
23 | *
24 | * // https://reactnative.dev/docs/performance#enable-the-ram-format
25 | * bundleCommand: "ram-bundle",
26 | *
27 | * // whether to bundle JS and assets in debug mode
28 | * bundleInDebug: false,
29 | *
30 | * // whether to bundle JS and assets in release mode
31 | * bundleInRelease: true,
32 | *
33 | * // whether to bundle JS and assets in another build variant (if configured).
34 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
35 | * // The configuration property can be in the following formats
36 | * // 'bundleIn${productFlavor}${buildType}'
37 | * // 'bundleIn${buildType}'
38 | * // bundleInFreeDebug: true,
39 | * // bundleInPaidRelease: true,
40 | * // bundleInBeta: true,
41 | *
42 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
43 | * // for example: to disable dev mode in the staging build type (if configured)
44 | * devDisabledInStaging: true,
45 | * // The configuration property can be in the following formats
46 | * // 'devDisabledIn${productFlavor}${buildType}'
47 | * // 'devDisabledIn${buildType}'
48 | *
49 | * // the root of your project, i.e. where "package.json" lives
50 | * root: "../../",
51 | *
52 | * // where to put the JS bundle asset in debug mode
53 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
54 | *
55 | * // where to put the JS bundle asset in release mode
56 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
57 | *
58 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
59 | * // require('./image.png')), in debug mode
60 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
61 | *
62 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
63 | * // require('./image.png')), in release mode
64 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
65 | *
66 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
67 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
68 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
69 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
70 | * // for example, you might want to remove it from here.
71 | * inputExcludes: ["android/**", "ios/**"],
72 | *
73 | * // override which node gets called and with what additional arguments
74 | * nodeExecutableAndArgs: ["node"],
75 | *
76 | * // supply additional arguments to the packager
77 | * extraPackagerArgs: []
78 | * ]
79 | */
80 |
81 | project.ext.react = [
82 | enableHermes: false, // clean and rebuild if changing
83 | ]
84 |
85 | apply from: '../../node_modules/react-native/react.gradle'
86 |
87 | /**
88 | * Set this to true to create two separate APKs instead of one:
89 | * - An APK that only works on ARM devices
90 | * - An APK that only works on x86 devices
91 | * The advantage is the size of the APK is reduced by about 4MB.
92 | * Upload all the APKs to the Play Store and people will download
93 | * the correct one based on the CPU architecture of their device.
94 | */
95 | def enableSeparateBuildPerCPUArchitecture = false
96 |
97 | /**
98 | * Run Proguard to shrink the Java bytecode in release builds.
99 | */
100 | def enableProguardInReleaseBuilds = false
101 |
102 | /**
103 | * The preferred build flavor of JavaScriptCore.
104 | *
105 | * For example, to use the international variant, you can use:
106 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
107 | *
108 | * The international variant includes ICU i18n library and necessary data
109 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
110 | * give correct results when using with locales other than en-US. Note that
111 | * this variant is about 6MiB larger per architecture than default.
112 | */
113 | def jscFlavor = 'org.webkit:android-jsc:+'
114 |
115 | /**
116 | * Whether to enable the Hermes VM.
117 | *
118 | * This should be set on project.ext.react and that value will be read here. If it is not set
119 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
120 | * and the benefits of using Hermes will therefore be sharply reduced.
121 | */
122 | def enableHermes = project.ext.react.get('enableHermes', false);
123 |
124 | /**
125 | * Architectures to build native code for in debug.
126 | */
127 | def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures")
128 |
129 | android {
130 | ndkVersion rootProject.ext.ndkVersion
131 |
132 | compileSdkVersion rootProject.ext.compileSdkVersion
133 |
134 | defaultConfig {
135 | applicationId 'com.example'
136 | minSdkVersion rootProject.ext.minSdkVersion
137 | targetSdkVersion rootProject.ext.targetSdkVersion
138 | versionCode 1
139 | versionName '1.0'
140 | }
141 | splits {
142 | abi {
143 | reset()
144 | enable enableSeparateBuildPerCPUArchitecture
145 | universalApk false // If true, also generate a universal APK
146 | include 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
147 | }
148 | }
149 | signingConfigs {
150 | debug {
151 | storeFile file('debug.keystore')
152 | storePassword 'android'
153 | keyAlias 'androiddebugkey'
154 | keyPassword 'android'
155 | }
156 | }
157 | buildTypes {
158 | debug {
159 | signingConfig signingConfigs.debug
160 | if (nativeArchitectures) {
161 | ndk {
162 | abiFilters nativeArchitectures.split(',')
163 | }
164 | }
165 | }
166 | release {
167 | // Caution! In production, you need to generate your own keystore file.
168 | // see https://reactnative.dev/docs/signed-apk-android.
169 | signingConfig signingConfigs.debug
170 | minifyEnabled enableProguardInReleaseBuilds
171 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
172 | }
173 | }
174 |
175 | // applicationVariants are e.g. debug, release
176 | applicationVariants.all { variant ->
177 | variant.outputs.each { output ->
178 | // For each separate APK per architecture, set a unique version code as described here:
179 | // https://developer.android.com/studio/build/configure-apk-splits.html
180 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
181 | def versionCodes = ['armeabi-v7a': 1, 'x86': 2, 'arm64-v8a': 3, 'x86_64': 4]
182 | def abi = output.getFilter(OutputFile.ABI)
183 | if (abi != null) { // null for the universal-debug, universal-release variants
184 | output.versionCodeOverride =
185 | defaultConfig.versionCode * 1000 + versionCodes.get(abi)
186 | }
187 |
188 | }
189 | }
190 | }
191 |
192 | dependencies {
193 | implementation project(':react-native-basic-carousel')
194 | implementation fileTree(dir: 'libs', include: ['*.jar'])
195 | //noinspection GradleDynamicVersion
196 | implementation 'com.facebook.react:react-native:+' // From node_modules
197 |
198 | implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
199 |
200 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
201 | exclude group: 'com.facebook.fbjni'
202 | }
203 |
204 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
205 | exclude group: 'com.facebook.flipper'
206 | exclude group: 'com.squareup.okhttp3', module: 'okhttp'
207 | }
208 |
209 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
210 | exclude group: 'com.facebook.flipper'
211 | }
212 |
213 | if (enableHermes) {
214 | def hermesPath = '../../node_modules/hermes-engine/android/';
215 | debugImplementation files(hermesPath + 'hermes-debug.aar')
216 | releaseImplementation files(hermesPath + 'hermes-release.aar')
217 | } else {
218 | implementation jscFlavor
219 | }
220 | }
221 |
222 | // Run this once to be able to run the application with BUCK
223 | // puts all compile dependencies into folder libs for BUCK to use
224 | task copyDownloadableDepsToLibs(type: Copy) {
225 | from configurations.implementation
226 | into 'libs'
227 | }
228 |
229 | apply from: file('../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle'); applyNativeModulesAppBuildGradle(project)
230 |
--------------------------------------------------------------------------------
/ios/RNBasicCarouselModule.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | FA4F9FE82512AA42002DB4D5 /* RNBasicCarouselModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA4F9FE72512AA42002DB4D5 /* RNBasicCarouselModule.swift */; };
11 | FA4F9FEB2512ACC2002DB4D5 /* RNBasicCarouselModule.m in Sources */ = {isa = PBXBuildFile; fileRef = FA4F9FEA2512ACC2002DB4D5 /* RNBasicCarouselModule.m */; };
12 | /* End PBXBuildFile section */
13 |
14 | /* Begin PBXCopyFilesBuildPhase section */
15 | FA0EFF5E236CC8FB00069FA8 /* CopyFiles */ = {
16 | isa = PBXCopyFilesBuildPhase;
17 | buildActionMask = 2147483647;
18 | dstPath = "include/$(PRODUCT_NAME)";
19 | dstSubfolderSpec = 16;
20 | files = (
21 | );
22 | runOnlyForDeploymentPostprocessing = 0;
23 | };
24 | /* End PBXCopyFilesBuildPhase section */
25 |
26 | /* Begin PBXFileReference section */
27 | FA0EFF60236CC8FB00069FA8 /* libRNBasicCarouselModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNBasicCarouselModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
28 | FA4F9FE62512AA41002DB4D5 /* RNBasicCarouselModule-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNBasicCarouselModule-Bridging-Header.h"; sourceTree = ""; };
29 | FA4F9FE72512AA42002DB4D5 /* RNBasicCarouselModule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RNBasicCarouselModule.swift; sourceTree = ""; };
30 | FA4F9FEA2512ACC2002DB4D5 /* RNBasicCarouselModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNBasicCarouselModule.m; sourceTree = ""; };
31 | /* End PBXFileReference section */
32 |
33 | /* Begin PBXFrameworksBuildPhase section */
34 | FA0EFF5D236CC8FB00069FA8 /* Frameworks */ = {
35 | isa = PBXFrameworksBuildPhase;
36 | buildActionMask = 2147483647;
37 | files = (
38 | );
39 | runOnlyForDeploymentPostprocessing = 0;
40 | };
41 | /* End PBXFrameworksBuildPhase section */
42 |
43 | /* Begin PBXGroup section */
44 | FA0EFF57236CC8FB00069FA8 = {
45 | isa = PBXGroup;
46 | children = (
47 | FA4F9FE62512AA41002DB4D5 /* RNBasicCarouselModule-Bridging-Header.h */,
48 | FA4F9FEA2512ACC2002DB4D5 /* RNBasicCarouselModule.m */,
49 | FA4F9FE72512AA42002DB4D5 /* RNBasicCarouselModule.swift */,
50 | FA0EFF61236CC8FB00069FA8 /* Products */,
51 | );
52 | sourceTree = "";
53 | };
54 | FA0EFF61236CC8FB00069FA8 /* Products */ = {
55 | isa = PBXGroup;
56 | children = (
57 | FA0EFF60236CC8FB00069FA8 /* libRNBasicCarouselModule.a */,
58 | );
59 | name = Products;
60 | sourceTree = "";
61 | };
62 | /* End PBXGroup section */
63 |
64 | /* Begin PBXNativeTarget section */
65 | FA0EFF5F236CC8FB00069FA8 /* RNBasicCarouselModule */ = {
66 | isa = PBXNativeTarget;
67 | buildConfigurationList = FA0EFF69236CC8FB00069FA8 /* Build configuration list for PBXNativeTarget "RNBasicCarouselModule" */;
68 | buildPhases = (
69 | FA0EFF5C236CC8FB00069FA8 /* Sources */,
70 | FA0EFF5D236CC8FB00069FA8 /* Frameworks */,
71 | FA0EFF5E236CC8FB00069FA8 /* CopyFiles */,
72 | );
73 | buildRules = (
74 | );
75 | dependencies = (
76 | );
77 | name = RNBasicCarouselModule;
78 | productName = RNBasicCarouselModule;
79 | productReference = FA0EFF60236CC8FB00069FA8 /* libRNBasicCarouselModule.a */;
80 | productType = "com.apple.product-type.library.static";
81 | };
82 | /* End PBXNativeTarget section */
83 |
84 | /* Begin PBXProject section */
85 | FA0EFF58236CC8FB00069FA8 /* Project object */ = {
86 | isa = PBXProject;
87 | attributes = {
88 | LastUpgradeCheck = 1240;
89 | ORGANIZATIONNAME = "Macanthony Ahaotu";
90 | TargetAttributes = {
91 | FA0EFF5F236CC8FB00069FA8 = {
92 | CreatedOnToolsVersion = 11.1;
93 | LastSwiftMigration = 1170;
94 | };
95 | };
96 | };
97 | buildConfigurationList = FA0EFF5B236CC8FB00069FA8 /* Build configuration list for PBXProject "RNBasicCarouselModule" */;
98 | compatibilityVersion = "Xcode 9.3";
99 | developmentRegion = en;
100 | hasScannedForEncodings = 0;
101 | knownRegions = (
102 | en,
103 | Base,
104 | );
105 | mainGroup = FA0EFF57236CC8FB00069FA8;
106 | productRefGroup = FA0EFF61236CC8FB00069FA8 /* Products */;
107 | projectDirPath = "";
108 | projectRoot = "";
109 | targets = (
110 | FA0EFF5F236CC8FB00069FA8 /* RNBasicCarouselModule */,
111 | );
112 | };
113 | /* End PBXProject section */
114 |
115 | /* Begin PBXSourcesBuildPhase section */
116 | FA0EFF5C236CC8FB00069FA8 /* Sources */ = {
117 | isa = PBXSourcesBuildPhase;
118 | buildActionMask = 2147483647;
119 | files = (
120 | FA4F9FE82512AA42002DB4D5 /* RNBasicCarouselModule.swift in Sources */,
121 | FA4F9FEB2512ACC2002DB4D5 /* RNBasicCarouselModule.m in Sources */,
122 | );
123 | runOnlyForDeploymentPostprocessing = 0;
124 | };
125 | /* End PBXSourcesBuildPhase section */
126 |
127 | /* Begin XCBuildConfiguration section */
128 | FA0EFF67236CC8FB00069FA8 /* Debug */ = {
129 | isa = XCBuildConfiguration;
130 | buildSettings = {
131 | ALWAYS_SEARCH_USER_PATHS = NO;
132 | CLANG_ANALYZER_NONNULL = YES;
133 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
134 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
135 | CLANG_CXX_LIBRARY = "libc++";
136 | CLANG_ENABLE_MODULES = YES;
137 | CLANG_ENABLE_OBJC_ARC = YES;
138 | CLANG_ENABLE_OBJC_WEAK = YES;
139 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
140 | CLANG_WARN_BOOL_CONVERSION = YES;
141 | CLANG_WARN_COMMA = YES;
142 | CLANG_WARN_CONSTANT_CONVERSION = YES;
143 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
144 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
145 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
146 | CLANG_WARN_EMPTY_BODY = YES;
147 | CLANG_WARN_ENUM_CONVERSION = YES;
148 | CLANG_WARN_INFINITE_RECURSION = YES;
149 | CLANG_WARN_INT_CONVERSION = YES;
150 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
151 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
152 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
153 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
154 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
155 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
156 | CLANG_WARN_STRICT_PROTOTYPES = YES;
157 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
158 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
159 | CLANG_WARN_UNREACHABLE_CODE = YES;
160 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
161 | COPY_PHASE_STRIP = NO;
162 | DEBUG_INFORMATION_FORMAT = dwarf;
163 | ENABLE_STRICT_OBJC_MSGSEND = YES;
164 | ENABLE_TESTABILITY = YES;
165 | GCC_C_LANGUAGE_STANDARD = gnu11;
166 | GCC_DYNAMIC_NO_PIC = NO;
167 | GCC_NO_COMMON_BLOCKS = YES;
168 | GCC_OPTIMIZATION_LEVEL = 0;
169 | GCC_PREPROCESSOR_DEFINITIONS = (
170 | "DEBUG=1",
171 | "$(inherited)",
172 | );
173 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
174 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
175 | GCC_WARN_UNDECLARED_SELECTOR = YES;
176 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
177 | GCC_WARN_UNUSED_FUNCTION = YES;
178 | GCC_WARN_UNUSED_VARIABLE = YES;
179 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
180 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
181 | MTL_FAST_MATH = YES;
182 | ONLY_ACTIVE_ARCH = YES;
183 | SDKROOT = iphoneos;
184 | };
185 | name = Debug;
186 | };
187 | FA0EFF68236CC8FB00069FA8 /* Release */ = {
188 | isa = XCBuildConfiguration;
189 | buildSettings = {
190 | ALWAYS_SEARCH_USER_PATHS = NO;
191 | CLANG_ANALYZER_NONNULL = YES;
192 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
193 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
194 | CLANG_CXX_LIBRARY = "libc++";
195 | CLANG_ENABLE_MODULES = YES;
196 | CLANG_ENABLE_OBJC_ARC = YES;
197 | CLANG_ENABLE_OBJC_WEAK = YES;
198 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
199 | CLANG_WARN_BOOL_CONVERSION = YES;
200 | CLANG_WARN_COMMA = YES;
201 | CLANG_WARN_CONSTANT_CONVERSION = YES;
202 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
203 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
204 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
205 | CLANG_WARN_EMPTY_BODY = YES;
206 | CLANG_WARN_ENUM_CONVERSION = YES;
207 | CLANG_WARN_INFINITE_RECURSION = YES;
208 | CLANG_WARN_INT_CONVERSION = YES;
209 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
210 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
211 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
212 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
213 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
214 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
215 | CLANG_WARN_STRICT_PROTOTYPES = YES;
216 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
217 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
218 | CLANG_WARN_UNREACHABLE_CODE = YES;
219 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
220 | COPY_PHASE_STRIP = NO;
221 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
222 | ENABLE_NS_ASSERTIONS = NO;
223 | ENABLE_STRICT_OBJC_MSGSEND = YES;
224 | GCC_C_LANGUAGE_STANDARD = gnu11;
225 | GCC_NO_COMMON_BLOCKS = YES;
226 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
227 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
228 | GCC_WARN_UNDECLARED_SELECTOR = YES;
229 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
230 | GCC_WARN_UNUSED_FUNCTION = YES;
231 | GCC_WARN_UNUSED_VARIABLE = YES;
232 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
233 | MTL_ENABLE_DEBUG_INFO = NO;
234 | MTL_FAST_MATH = YES;
235 | SDKROOT = iphoneos;
236 | SWIFT_COMPILATION_MODE = wholemodule;
237 | VALIDATE_PRODUCT = YES;
238 | };
239 | name = Release;
240 | };
241 | FA0EFF6A236CC8FB00069FA8 /* Debug */ = {
242 | isa = XCBuildConfiguration;
243 | buildSettings = {
244 | CLANG_ENABLE_MODULES = YES;
245 | CODE_SIGN_STYLE = Automatic;
246 | HEADER_SEARCH_PATHS = (
247 | "$(inherited)",
248 | "$(SRCROOT)/../example/ios/Pods/Headers/Public/React-Core",
249 | "$(SRCROOT)/../../../ios/Pods/Headers/Public/React-Core",
250 | );
251 | LD_RUNPATH_SEARCH_PATHS = (
252 | "$(inherited)",
253 | "@executable_path/Frameworks",
254 | "@loader_path/Frameworks",
255 | );
256 | OTHER_LDFLAGS = "-ObjC";
257 | PRODUCT_NAME = "$(TARGET_NAME)";
258 | SKIP_INSTALL = YES;
259 | SWIFT_OBJC_BRIDGING_HEADER = "RNBasicCarouselModule-Bridging-Header.h";
260 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
261 | SWIFT_VERSION = 5.0;
262 | TARGETED_DEVICE_FAMILY = "1,2";
263 | };
264 | name = Debug;
265 | };
266 | FA0EFF6B236CC8FB00069FA8 /* Release */ = {
267 | isa = XCBuildConfiguration;
268 | buildSettings = {
269 | CLANG_ENABLE_MODULES = YES;
270 | CODE_SIGN_STYLE = Automatic;
271 | HEADER_SEARCH_PATHS = (
272 | "$(inherited)",
273 | "$(SRCROOT)/../example/ios/Pods/Headers/Public/React-Core",
274 | "$(SRCROOT)/../../../ios/Pods/Headers/Public/React-Core",
275 | );
276 | LD_RUNPATH_SEARCH_PATHS = (
277 | "$(inherited)",
278 | "@executable_path/Frameworks",
279 | "@loader_path/Frameworks",
280 | );
281 | OTHER_LDFLAGS = "-ObjC";
282 | PRODUCT_NAME = "$(TARGET_NAME)";
283 | SKIP_INSTALL = YES;
284 | SWIFT_OBJC_BRIDGING_HEADER = "RNBasicCarouselModule-Bridging-Header.h";
285 | SWIFT_VERSION = 5.0;
286 | TARGETED_DEVICE_FAMILY = "1,2";
287 | };
288 | name = Release;
289 | };
290 | /* End XCBuildConfiguration section */
291 |
292 | /* Begin XCConfigurationList section */
293 | FA0EFF5B236CC8FB00069FA8 /* Build configuration list for PBXProject "RNBasicCarouselModule" */ = {
294 | isa = XCConfigurationList;
295 | buildConfigurations = (
296 | FA0EFF67236CC8FB00069FA8 /* Debug */,
297 | FA0EFF68236CC8FB00069FA8 /* Release */,
298 | );
299 | defaultConfigurationIsVisible = 0;
300 | defaultConfigurationName = Release;
301 | };
302 | FA0EFF69236CC8FB00069FA8 /* Build configuration list for PBXNativeTarget "RNBasicCarouselModule" */ = {
303 | isa = XCConfigurationList;
304 | buildConfigurations = (
305 | FA0EFF6A236CC8FB00069FA8 /* Debug */,
306 | FA0EFF6B236CC8FB00069FA8 /* Release */,
307 | );
308 | defaultConfigurationIsVisible = 0;
309 | defaultConfigurationName = Release;
310 | };
311 | /* End XCConfigurationList section */
312 | };
313 | rootObject = FA0EFF58236CC8FB00069FA8 /* Project object */;
314 | }
315 |
--------------------------------------------------------------------------------
/example/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - boost (1.76.0)
3 | - CocoaAsyncSocket (7.6.5)
4 | - DoubleConversion (1.1.6)
5 | - FBLazyVector (0.69.7)
6 | - FBReactNativeSpec (0.69.7):
7 | - RCT-Folly (= 2021.06.28.00-v2)
8 | - RCTRequired (= 0.69.7)
9 | - RCTTypeSafety (= 0.69.7)
10 | - React-Core (= 0.69.7)
11 | - React-jsi (= 0.69.7)
12 | - ReactCommon/turbomodule/core (= 0.69.7)
13 | - Flipper (0.125.0):
14 | - Flipper-Folly (~> 2.6)
15 | - Flipper-RSocket (~> 1.4)
16 | - Flipper-Boost-iOSX (1.76.0.1.11)
17 | - Flipper-DoubleConversion (3.2.0.1)
18 | - Flipper-Fmt (7.1.7)
19 | - Flipper-Folly (2.6.10):
20 | - Flipper-Boost-iOSX
21 | - Flipper-DoubleConversion
22 | - Flipper-Fmt (= 7.1.7)
23 | - Flipper-Glog
24 | - libevent (~> 2.1.12)
25 | - OpenSSL-Universal (= 1.1.1100)
26 | - Flipper-Glog (0.5.0.5)
27 | - Flipper-PeerTalk (0.0.4)
28 | - Flipper-RSocket (1.4.3):
29 | - Flipper-Folly (~> 2.6)
30 | - FlipperKit (0.125.0):
31 | - FlipperKit/Core (= 0.125.0)
32 | - FlipperKit/Core (0.125.0):
33 | - Flipper (~> 0.125.0)
34 | - FlipperKit/CppBridge
35 | - FlipperKit/FBCxxFollyDynamicConvert
36 | - FlipperKit/FBDefines
37 | - FlipperKit/FKPortForwarding
38 | - SocketRocket (~> 0.6.0)
39 | - FlipperKit/CppBridge (0.125.0):
40 | - Flipper (~> 0.125.0)
41 | - FlipperKit/FBCxxFollyDynamicConvert (0.125.0):
42 | - Flipper-Folly (~> 2.6)
43 | - FlipperKit/FBDefines (0.125.0)
44 | - FlipperKit/FKPortForwarding (0.125.0):
45 | - CocoaAsyncSocket (~> 7.6)
46 | - Flipper-PeerTalk (~> 0.0.4)
47 | - FlipperKit/FlipperKitHighlightOverlay (0.125.0)
48 | - FlipperKit/FlipperKitLayoutHelpers (0.125.0):
49 | - FlipperKit/Core
50 | - FlipperKit/FlipperKitHighlightOverlay
51 | - FlipperKit/FlipperKitLayoutTextSearchable
52 | - FlipperKit/FlipperKitLayoutIOSDescriptors (0.125.0):
53 | - FlipperKit/Core
54 | - FlipperKit/FlipperKitHighlightOverlay
55 | - FlipperKit/FlipperKitLayoutHelpers
56 | - YogaKit (~> 1.18)
57 | - FlipperKit/FlipperKitLayoutPlugin (0.125.0):
58 | - FlipperKit/Core
59 | - FlipperKit/FlipperKitHighlightOverlay
60 | - FlipperKit/FlipperKitLayoutHelpers
61 | - FlipperKit/FlipperKitLayoutIOSDescriptors
62 | - FlipperKit/FlipperKitLayoutTextSearchable
63 | - YogaKit (~> 1.18)
64 | - FlipperKit/FlipperKitLayoutTextSearchable (0.125.0)
65 | - FlipperKit/FlipperKitNetworkPlugin (0.125.0):
66 | - FlipperKit/Core
67 | - FlipperKit/FlipperKitReactPlugin (0.125.0):
68 | - FlipperKit/Core
69 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.125.0):
70 | - FlipperKit/Core
71 | - FlipperKit/SKIOSNetworkPlugin (0.125.0):
72 | - FlipperKit/Core
73 | - FlipperKit/FlipperKitNetworkPlugin
74 | - fmt (6.2.1)
75 | - glog (0.3.5)
76 | - libevent (2.1.12)
77 | - OpenSSL-Universal (1.1.1100)
78 | - RCT-Folly (2021.06.28.00-v2):
79 | - boost
80 | - DoubleConversion
81 | - fmt (~> 6.2.1)
82 | - glog
83 | - RCT-Folly/Default (= 2021.06.28.00-v2)
84 | - RCT-Folly/Default (2021.06.28.00-v2):
85 | - boost
86 | - DoubleConversion
87 | - fmt (~> 6.2.1)
88 | - glog
89 | - RCTRequired (0.69.7)
90 | - RCTTypeSafety (0.69.7):
91 | - FBLazyVector (= 0.69.7)
92 | - RCTRequired (= 0.69.7)
93 | - React-Core (= 0.69.7)
94 | - React (0.69.7):
95 | - React-Core (= 0.69.7)
96 | - React-Core/DevSupport (= 0.69.7)
97 | - React-Core/RCTWebSocket (= 0.69.7)
98 | - React-RCTActionSheet (= 0.69.7)
99 | - React-RCTAnimation (= 0.69.7)
100 | - React-RCTBlob (= 0.69.7)
101 | - React-RCTImage (= 0.69.7)
102 | - React-RCTLinking (= 0.69.7)
103 | - React-RCTNetwork (= 0.69.7)
104 | - React-RCTSettings (= 0.69.7)
105 | - React-RCTText (= 0.69.7)
106 | - React-RCTVibration (= 0.69.7)
107 | - React-bridging (0.69.7):
108 | - RCT-Folly (= 2021.06.28.00-v2)
109 | - React-jsi (= 0.69.7)
110 | - React-callinvoker (0.69.7)
111 | - React-Codegen (0.69.7):
112 | - FBReactNativeSpec (= 0.69.7)
113 | - RCT-Folly (= 2021.06.28.00-v2)
114 | - RCTRequired (= 0.69.7)
115 | - RCTTypeSafety (= 0.69.7)
116 | - React-Core (= 0.69.7)
117 | - React-jsi (= 0.69.7)
118 | - React-jsiexecutor (= 0.69.7)
119 | - ReactCommon/turbomodule/core (= 0.69.7)
120 | - React-Core (0.69.7):
121 | - glog
122 | - RCT-Folly (= 2021.06.28.00-v2)
123 | - React-Core/Default (= 0.69.7)
124 | - React-cxxreact (= 0.69.7)
125 | - React-jsi (= 0.69.7)
126 | - React-jsiexecutor (= 0.69.7)
127 | - React-perflogger (= 0.69.7)
128 | - Yoga
129 | - React-Core/CoreModulesHeaders (0.69.7):
130 | - glog
131 | - RCT-Folly (= 2021.06.28.00-v2)
132 | - React-Core/Default
133 | - React-cxxreact (= 0.69.7)
134 | - React-jsi (= 0.69.7)
135 | - React-jsiexecutor (= 0.69.7)
136 | - React-perflogger (= 0.69.7)
137 | - Yoga
138 | - React-Core/Default (0.69.7):
139 | - glog
140 | - RCT-Folly (= 2021.06.28.00-v2)
141 | - React-cxxreact (= 0.69.7)
142 | - React-jsi (= 0.69.7)
143 | - React-jsiexecutor (= 0.69.7)
144 | - React-perflogger (= 0.69.7)
145 | - Yoga
146 | - React-Core/DevSupport (0.69.7):
147 | - glog
148 | - RCT-Folly (= 2021.06.28.00-v2)
149 | - React-Core/Default (= 0.69.7)
150 | - React-Core/RCTWebSocket (= 0.69.7)
151 | - React-cxxreact (= 0.69.7)
152 | - React-jsi (= 0.69.7)
153 | - React-jsiexecutor (= 0.69.7)
154 | - React-jsinspector (= 0.69.7)
155 | - React-perflogger (= 0.69.7)
156 | - Yoga
157 | - React-Core/RCTActionSheetHeaders (0.69.7):
158 | - glog
159 | - RCT-Folly (= 2021.06.28.00-v2)
160 | - React-Core/Default
161 | - React-cxxreact (= 0.69.7)
162 | - React-jsi (= 0.69.7)
163 | - React-jsiexecutor (= 0.69.7)
164 | - React-perflogger (= 0.69.7)
165 | - Yoga
166 | - React-Core/RCTAnimationHeaders (0.69.7):
167 | - glog
168 | - RCT-Folly (= 2021.06.28.00-v2)
169 | - React-Core/Default
170 | - React-cxxreact (= 0.69.7)
171 | - React-jsi (= 0.69.7)
172 | - React-jsiexecutor (= 0.69.7)
173 | - React-perflogger (= 0.69.7)
174 | - Yoga
175 | - React-Core/RCTBlobHeaders (0.69.7):
176 | - glog
177 | - RCT-Folly (= 2021.06.28.00-v2)
178 | - React-Core/Default
179 | - React-cxxreact (= 0.69.7)
180 | - React-jsi (= 0.69.7)
181 | - React-jsiexecutor (= 0.69.7)
182 | - React-perflogger (= 0.69.7)
183 | - Yoga
184 | - React-Core/RCTImageHeaders (0.69.7):
185 | - glog
186 | - RCT-Folly (= 2021.06.28.00-v2)
187 | - React-Core/Default
188 | - React-cxxreact (= 0.69.7)
189 | - React-jsi (= 0.69.7)
190 | - React-jsiexecutor (= 0.69.7)
191 | - React-perflogger (= 0.69.7)
192 | - Yoga
193 | - React-Core/RCTLinkingHeaders (0.69.7):
194 | - glog
195 | - RCT-Folly (= 2021.06.28.00-v2)
196 | - React-Core/Default
197 | - React-cxxreact (= 0.69.7)
198 | - React-jsi (= 0.69.7)
199 | - React-jsiexecutor (= 0.69.7)
200 | - React-perflogger (= 0.69.7)
201 | - Yoga
202 | - React-Core/RCTNetworkHeaders (0.69.7):
203 | - glog
204 | - RCT-Folly (= 2021.06.28.00-v2)
205 | - React-Core/Default
206 | - React-cxxreact (= 0.69.7)
207 | - React-jsi (= 0.69.7)
208 | - React-jsiexecutor (= 0.69.7)
209 | - React-perflogger (= 0.69.7)
210 | - Yoga
211 | - React-Core/RCTSettingsHeaders (0.69.7):
212 | - glog
213 | - RCT-Folly (= 2021.06.28.00-v2)
214 | - React-Core/Default
215 | - React-cxxreact (= 0.69.7)
216 | - React-jsi (= 0.69.7)
217 | - React-jsiexecutor (= 0.69.7)
218 | - React-perflogger (= 0.69.7)
219 | - Yoga
220 | - React-Core/RCTTextHeaders (0.69.7):
221 | - glog
222 | - RCT-Folly (= 2021.06.28.00-v2)
223 | - React-Core/Default
224 | - React-cxxreact (= 0.69.7)
225 | - React-jsi (= 0.69.7)
226 | - React-jsiexecutor (= 0.69.7)
227 | - React-perflogger (= 0.69.7)
228 | - Yoga
229 | - React-Core/RCTVibrationHeaders (0.69.7):
230 | - glog
231 | - RCT-Folly (= 2021.06.28.00-v2)
232 | - React-Core/Default
233 | - React-cxxreact (= 0.69.7)
234 | - React-jsi (= 0.69.7)
235 | - React-jsiexecutor (= 0.69.7)
236 | - React-perflogger (= 0.69.7)
237 | - Yoga
238 | - React-Core/RCTWebSocket (0.69.7):
239 | - glog
240 | - RCT-Folly (= 2021.06.28.00-v2)
241 | - React-Core/Default (= 0.69.7)
242 | - React-cxxreact (= 0.69.7)
243 | - React-jsi (= 0.69.7)
244 | - React-jsiexecutor (= 0.69.7)
245 | - React-perflogger (= 0.69.7)
246 | - Yoga
247 | - React-CoreModules (0.69.7):
248 | - RCT-Folly (= 2021.06.28.00-v2)
249 | - RCTTypeSafety (= 0.69.7)
250 | - React-Codegen (= 0.69.7)
251 | - React-Core/CoreModulesHeaders (= 0.69.7)
252 | - React-jsi (= 0.69.7)
253 | - React-RCTImage (= 0.69.7)
254 | - ReactCommon/turbomodule/core (= 0.69.7)
255 | - React-cxxreact (0.69.7):
256 | - boost (= 1.76.0)
257 | - DoubleConversion
258 | - glog
259 | - RCT-Folly (= 2021.06.28.00-v2)
260 | - React-callinvoker (= 0.69.7)
261 | - React-jsi (= 0.69.7)
262 | - React-jsinspector (= 0.69.7)
263 | - React-logger (= 0.69.7)
264 | - React-perflogger (= 0.69.7)
265 | - React-runtimeexecutor (= 0.69.7)
266 | - React-jsi (0.69.7):
267 | - boost (= 1.76.0)
268 | - DoubleConversion
269 | - glog
270 | - RCT-Folly (= 2021.06.28.00-v2)
271 | - React-jsi/Default (= 0.69.7)
272 | - React-jsi/Default (0.69.7):
273 | - boost (= 1.76.0)
274 | - DoubleConversion
275 | - glog
276 | - RCT-Folly (= 2021.06.28.00-v2)
277 | - React-jsiexecutor (0.69.7):
278 | - DoubleConversion
279 | - glog
280 | - RCT-Folly (= 2021.06.28.00-v2)
281 | - React-cxxreact (= 0.69.7)
282 | - React-jsi (= 0.69.7)
283 | - React-perflogger (= 0.69.7)
284 | - React-jsinspector (0.69.7)
285 | - React-logger (0.69.7):
286 | - glog
287 | - React-perflogger (0.69.7)
288 | - React-RCTActionSheet (0.69.7):
289 | - React-Core/RCTActionSheetHeaders (= 0.69.7)
290 | - React-RCTAnimation (0.69.7):
291 | - RCT-Folly (= 2021.06.28.00-v2)
292 | - RCTTypeSafety (= 0.69.7)
293 | - React-Codegen (= 0.69.7)
294 | - React-Core/RCTAnimationHeaders (= 0.69.7)
295 | - React-jsi (= 0.69.7)
296 | - ReactCommon/turbomodule/core (= 0.69.7)
297 | - React-RCTBlob (0.69.7):
298 | - RCT-Folly (= 2021.06.28.00-v2)
299 | - React-Codegen (= 0.69.7)
300 | - React-Core/RCTBlobHeaders (= 0.69.7)
301 | - React-Core/RCTWebSocket (= 0.69.7)
302 | - React-jsi (= 0.69.7)
303 | - React-RCTNetwork (= 0.69.7)
304 | - ReactCommon/turbomodule/core (= 0.69.7)
305 | - React-RCTImage (0.69.7):
306 | - RCT-Folly (= 2021.06.28.00-v2)
307 | - RCTTypeSafety (= 0.69.7)
308 | - React-Codegen (= 0.69.7)
309 | - React-Core/RCTImageHeaders (= 0.69.7)
310 | - React-jsi (= 0.69.7)
311 | - React-RCTNetwork (= 0.69.7)
312 | - ReactCommon/turbomodule/core (= 0.69.7)
313 | - React-RCTLinking (0.69.7):
314 | - React-Codegen (= 0.69.7)
315 | - React-Core/RCTLinkingHeaders (= 0.69.7)
316 | - React-jsi (= 0.69.7)
317 | - ReactCommon/turbomodule/core (= 0.69.7)
318 | - React-RCTNetwork (0.69.7):
319 | - RCT-Folly (= 2021.06.28.00-v2)
320 | - RCTTypeSafety (= 0.69.7)
321 | - React-Codegen (= 0.69.7)
322 | - React-Core/RCTNetworkHeaders (= 0.69.7)
323 | - React-jsi (= 0.69.7)
324 | - ReactCommon/turbomodule/core (= 0.69.7)
325 | - React-RCTSettings (0.69.7):
326 | - RCT-Folly (= 2021.06.28.00-v2)
327 | - RCTTypeSafety (= 0.69.7)
328 | - React-Codegen (= 0.69.7)
329 | - React-Core/RCTSettingsHeaders (= 0.69.7)
330 | - React-jsi (= 0.69.7)
331 | - ReactCommon/turbomodule/core (= 0.69.7)
332 | - React-RCTText (0.69.7):
333 | - React-Core/RCTTextHeaders (= 0.69.7)
334 | - React-RCTVibration (0.69.7):
335 | - RCT-Folly (= 2021.06.28.00-v2)
336 | - React-Codegen (= 0.69.7)
337 | - React-Core/RCTVibrationHeaders (= 0.69.7)
338 | - React-jsi (= 0.69.7)
339 | - ReactCommon/turbomodule/core (= 0.69.7)
340 | - React-runtimeexecutor (0.69.7):
341 | - React-jsi (= 0.69.7)
342 | - ReactCommon/turbomodule/core (0.69.7):
343 | - DoubleConversion
344 | - glog
345 | - RCT-Folly (= 2021.06.28.00-v2)
346 | - React-bridging (= 0.69.7)
347 | - React-callinvoker (= 0.69.7)
348 | - React-Core (= 0.69.7)
349 | - React-cxxreact (= 0.69.7)
350 | - React-jsi (= 0.69.7)
351 | - React-logger (= 0.69.7)
352 | - React-perflogger (= 0.69.7)
353 | - SocketRocket (0.6.0)
354 | - Yoga (1.14.0)
355 | - YogaKit (1.18.1):
356 | - Yoga (~> 1.14)
357 |
358 | DEPENDENCIES:
359 | - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
360 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
361 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
362 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
363 | - Flipper (= 0.125.0)
364 | - Flipper-Boost-iOSX (= 1.76.0.1.11)
365 | - Flipper-DoubleConversion (= 3.2.0.1)
366 | - Flipper-Fmt (= 7.1.7)
367 | - Flipper-Folly (= 2.6.10)
368 | - Flipper-Glog (= 0.5.0.5)
369 | - Flipper-PeerTalk (= 0.0.4)
370 | - Flipper-RSocket (= 1.4.3)
371 | - FlipperKit (= 0.125.0)
372 | - FlipperKit/Core (= 0.125.0)
373 | - FlipperKit/CppBridge (= 0.125.0)
374 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.125.0)
375 | - FlipperKit/FBDefines (= 0.125.0)
376 | - FlipperKit/FKPortForwarding (= 0.125.0)
377 | - FlipperKit/FlipperKitHighlightOverlay (= 0.125.0)
378 | - FlipperKit/FlipperKitLayoutPlugin (= 0.125.0)
379 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.125.0)
380 | - FlipperKit/FlipperKitNetworkPlugin (= 0.125.0)
381 | - FlipperKit/FlipperKitReactPlugin (= 0.125.0)
382 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.125.0)
383 | - FlipperKit/SKIOSNetworkPlugin (= 0.125.0)
384 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
385 | - OpenSSL-Universal (= 1.1.1100)
386 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
387 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
388 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
389 | - React (from `../node_modules/react-native/`)
390 | - React-bridging (from `../node_modules/react-native/ReactCommon`)
391 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
392 | - React-Codegen (from `build/generated/ios`)
393 | - React-Core (from `../node_modules/react-native/`)
394 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
395 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
396 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
397 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
398 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
399 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
400 | - React-logger (from `../node_modules/react-native/ReactCommon/logger`)
401 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
402 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
403 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
404 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
405 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
406 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
407 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
408 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
409 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
410 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
411 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
412 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
413 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
414 |
415 | SPEC REPOS:
416 | trunk:
417 | - CocoaAsyncSocket
418 | - Flipper
419 | - Flipper-Boost-iOSX
420 | - Flipper-DoubleConversion
421 | - Flipper-Fmt
422 | - Flipper-Folly
423 | - Flipper-Glog
424 | - Flipper-PeerTalk
425 | - Flipper-RSocket
426 | - FlipperKit
427 | - fmt
428 | - libevent
429 | - OpenSSL-Universal
430 | - SocketRocket
431 | - YogaKit
432 |
433 | EXTERNAL SOURCES:
434 | boost:
435 | :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
436 | DoubleConversion:
437 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
438 | FBLazyVector:
439 | :path: "../node_modules/react-native/Libraries/FBLazyVector"
440 | FBReactNativeSpec:
441 | :path: "../node_modules/react-native/React/FBReactNativeSpec"
442 | glog:
443 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
444 | RCT-Folly:
445 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
446 | RCTRequired:
447 | :path: "../node_modules/react-native/Libraries/RCTRequired"
448 | RCTTypeSafety:
449 | :path: "../node_modules/react-native/Libraries/TypeSafety"
450 | React:
451 | :path: "../node_modules/react-native/"
452 | React-bridging:
453 | :path: "../node_modules/react-native/ReactCommon"
454 | React-callinvoker:
455 | :path: "../node_modules/react-native/ReactCommon/callinvoker"
456 | React-Codegen:
457 | :path: build/generated/ios
458 | React-Core:
459 | :path: "../node_modules/react-native/"
460 | React-CoreModules:
461 | :path: "../node_modules/react-native/React/CoreModules"
462 | React-cxxreact:
463 | :path: "../node_modules/react-native/ReactCommon/cxxreact"
464 | React-jsi:
465 | :path: "../node_modules/react-native/ReactCommon/jsi"
466 | React-jsiexecutor:
467 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
468 | React-jsinspector:
469 | :path: "../node_modules/react-native/ReactCommon/jsinspector"
470 | React-logger:
471 | :path: "../node_modules/react-native/ReactCommon/logger"
472 | React-perflogger:
473 | :path: "../node_modules/react-native/ReactCommon/reactperflogger"
474 | React-RCTActionSheet:
475 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
476 | React-RCTAnimation:
477 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
478 | React-RCTBlob:
479 | :path: "../node_modules/react-native/Libraries/Blob"
480 | React-RCTImage:
481 | :path: "../node_modules/react-native/Libraries/Image"
482 | React-RCTLinking:
483 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
484 | React-RCTNetwork:
485 | :path: "../node_modules/react-native/Libraries/Network"
486 | React-RCTSettings:
487 | :path: "../node_modules/react-native/Libraries/Settings"
488 | React-RCTText:
489 | :path: "../node_modules/react-native/Libraries/Text"
490 | React-RCTVibration:
491 | :path: "../node_modules/react-native/Libraries/Vibration"
492 | React-runtimeexecutor:
493 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
494 | ReactCommon:
495 | :path: "../node_modules/react-native/ReactCommon"
496 | Yoga:
497 | :path: "../node_modules/react-native/ReactCommon/yoga"
498 |
499 | SPEC CHECKSUMS:
500 | boost: a7c83b31436843459a1961bfd74b96033dc77234
501 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
502 | DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
503 | FBLazyVector: 6b7f5692909b4300d50e7359cdefbcd09dd30faa
504 | FBReactNativeSpec: affcf71d996f6b0c01f68883482588297b9d5e6e
505 | Flipper: 26fc4b7382499f1281eb8cb921e5c3ad6de91fe0
506 | Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c
507 | Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30
508 | Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b
509 | Flipper-Folly: 584845625005ff068a6ebf41f857f468decd26b3
510 | Flipper-Glog: 70c50ce58ddaf67dc35180db05f191692570f446
511 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
512 | Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541
513 | FlipperKit: cbdee19bdd4e7f05472a66ce290f1b729ba3cb86
514 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
515 | glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85
516 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
517 | OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
518 | RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685
519 | RCTRequired: 54bff6aa61efd9598ab59d2a823c382b4fe13d27
520 | RCTTypeSafety: 47632bfa768df7befde08e339a9847e6cff6ff78
521 | React: 72a676de573cc5ee0e375e5535238af9a4bd435c
522 | React-bridging: 12b6677a30fbd46555a35aa6096331737a9af598
523 | React-callinvoker: bb574a923c2281d01be23ed3b5d405caa583f56d
524 | React-Codegen: a5e05592b65963a4a453808d2233a04edb7ac8cd
525 | React-Core: 138385d05068622b2b1873eee7dc5be9762f5383
526 | React-CoreModules: 3a9be624998677db102b19090b1c33c7564ead6d
527 | React-cxxreact: eb24a767b0b811259947f3d538e7c999467e7131
528 | React-jsi: 9c1cc1173fc8a24b094e01c54d8e3b567fed7edc
529 | React-jsiexecutor: a73bec0218ba959fc92f811b581ad6c2270c6b6f
530 | React-jsinspector: 8134ee22182b8dd98dc0973db6266c398103ce6c
531 | React-logger: 1e7ac909607ee65fd5c4d8bea8c6e644f66b8843
532 | React-perflogger: 8e832d4e21fdfa613033c76d58d7e617341e804b
533 | React-RCTActionSheet: 9ca778182a9523991bff6381045885b6e808bb73
534 | React-RCTAnimation: 9ced26ad20b96e532ac791a8ab92a7b1ce2266b8
535 | React-RCTBlob: 2ca3402386d6ab8e9a9a39117305c7601ba2a7f8
536 | React-RCTImage: 7be51899367082a49e7a7560247ab3961e4dd248
537 | React-RCTLinking: 262229106f181d8187a5a041fa0dffe6e9726347
538 | React-RCTNetwork: 428b6f17bf4684ede387422eb789ca89365e33d3
539 | React-RCTSettings: eaef83489b80045528f1fe1ea5daefaa586ed763
540 | React-RCTText: d197cff9d5d7f68bdb88468d94617bbf2aa6a48d
541 | React-RCTVibration: 600a9f8b3537db360563d50fab3d040c262567d4
542 | React-runtimeexecutor: 65cd2782a57e1d59a68aa5d504edf94278578e41
543 | ReactCommon: 1e783348b9aa73ae68236271df972ba898560a95
544 | SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
545 | Yoga: 0b84a956f7393ef1f37f3bb213c516184e4a689d
546 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
547 |
548 | PODFILE CHECKSUM: 24b0af26996e7bea7462ff32b05e3e3ac04d690d
549 |
550 | COCOAPODS: 1.11.2
551 |
--------------------------------------------------------------------------------
/example/ios/example.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0264ED890D079BB9A99DCA28 /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6AFBF5BFF5F2120C4BEF2749 /* libPods-example.a */; };
11 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
13 | FAA6DE282607FC1C0044CA6D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA6DE272607FC1C0044CA6D /* AppDelegate.swift */; };
14 | FAB9070E279B4A83008B1D17 /* libRNBasicCarouselModule.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FAB9070D279B4A6B008B1D17 /* libRNBasicCarouselModule.a */; };
15 | /* End PBXBuildFile section */
16 |
17 | /* Begin PBXContainerItemProxy section */
18 | FAB9070C279B4A6B008B1D17 /* PBXContainerItemProxy */ = {
19 | isa = PBXContainerItemProxy;
20 | containerPortal = FAB90708279B4A6B008B1D17 /* RNBasicCarouselModule.xcodeproj */;
21 | proxyType = 2;
22 | remoteGlobalIDString = FA0EFF60236CC8FB00069FA8;
23 | remoteInfo = RNBasicCarouselModule;
24 | };
25 | /* End PBXContainerItemProxy section */
26 |
27 | /* Begin PBXFileReference section */
28 | 13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
29 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = ""; };
30 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = ""; };
31 | 6AFBF5BFF5F2120C4BEF2749 /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-example.a"; sourceTree = BUILT_PRODUCTS_DIR; };
32 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example/LaunchScreen.storyboard; sourceTree = ""; };
33 | 97D2F575C9E1CCB8487D7A83 /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.debug.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.debug.xcconfig"; sourceTree = ""; };
34 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
35 | F9197C6B9DA65F8C6AC6D250 /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-example.release.xcconfig"; path = "Target Support Files/Pods-example/Pods-example.release.xcconfig"; sourceTree = ""; };
36 | FAA6DE272607FC1C0044CA6D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = example/AppDelegate.swift; sourceTree = ""; };
37 | FAA6DE2A2607FC480044CA6D /* example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "example-Bridging-Header.h"; path = "example/example-Bridging-Header.h"; sourceTree = ""; };
38 | FAB90708279B4A6B008B1D17 /* RNBasicCarouselModule.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNBasicCarouselModule.xcodeproj; path = ../../ios/RNBasicCarouselModule.xcodeproj; sourceTree = ""; };
39 | /* End PBXFileReference section */
40 |
41 | /* Begin PBXFrameworksBuildPhase section */
42 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
43 | isa = PBXFrameworksBuildPhase;
44 | buildActionMask = 2147483647;
45 | files = (
46 | FAB9070E279B4A83008B1D17 /* libRNBasicCarouselModule.a in Frameworks */,
47 | 0264ED890D079BB9A99DCA28 /* libPods-example.a in Frameworks */,
48 | );
49 | runOnlyForDeploymentPostprocessing = 0;
50 | };
51 | /* End PBXFrameworksBuildPhase section */
52 |
53 | /* Begin PBXGroup section */
54 | 13B07FAE1A68108700A75B9A /* example */ = {
55 | isa = PBXGroup;
56 | children = (
57 | FAA6DE272607FC1C0044CA6D /* AppDelegate.swift */,
58 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
59 | 13B07FB61A68108700A75B9A /* Info.plist */,
60 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
61 | FAA6DE2A2607FC480044CA6D /* example-Bridging-Header.h */,
62 | );
63 | name = example;
64 | sourceTree = "";
65 | };
66 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
67 | isa = PBXGroup;
68 | children = (
69 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
70 | 6AFBF5BFF5F2120C4BEF2749 /* libPods-example.a */,
71 | );
72 | name = Frameworks;
73 | sourceTree = "";
74 | };
75 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
76 | isa = PBXGroup;
77 | children = (
78 | FAB90708279B4A6B008B1D17 /* RNBasicCarouselModule.xcodeproj */,
79 | );
80 | name = Libraries;
81 | sourceTree = "";
82 | };
83 | 83CBB9F61A601CBA00E9B192 = {
84 | isa = PBXGroup;
85 | children = (
86 | 13B07FAE1A68108700A75B9A /* example */,
87 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
88 | 83CBBA001A601CBA00E9B192 /* Products */,
89 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
90 | B2C0F2FE6846CDF42A2E82AC /* Pods */,
91 | );
92 | indentWidth = 2;
93 | sourceTree = "";
94 | tabWidth = 2;
95 | usesTabs = 0;
96 | };
97 | 83CBBA001A601CBA00E9B192 /* Products */ = {
98 | isa = PBXGroup;
99 | children = (
100 | 13B07F961A680F5B00A75B9A /* example.app */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | B2C0F2FE6846CDF42A2E82AC /* Pods */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97D2F575C9E1CCB8487D7A83 /* Pods-example.debug.xcconfig */,
109 | F9197C6B9DA65F8C6AC6D250 /* Pods-example.release.xcconfig */,
110 | );
111 | path = Pods;
112 | sourceTree = "";
113 | };
114 | FAB90709279B4A6B008B1D17 /* Products */ = {
115 | isa = PBXGroup;
116 | children = (
117 | FAB9070D279B4A6B008B1D17 /* libRNBasicCarouselModule.a */,
118 | );
119 | name = Products;
120 | sourceTree = "";
121 | };
122 | /* End PBXGroup section */
123 |
124 | /* Begin PBXNativeTarget section */
125 | 13B07F861A680F5B00A75B9A /* example */ = {
126 | isa = PBXNativeTarget;
127 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */;
128 | buildPhases = (
129 | 752C8533A601AAC997D2EA70 /* [CP] Check Pods Manifest.lock */,
130 | FD10A7F022414F080027D42C /* Start Packager */,
131 | 13B07F871A680F5B00A75B9A /* Sources */,
132 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
133 | 13B07F8E1A680F5B00A75B9A /* Resources */,
134 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
135 | 0D351765F33AAFE9182EB942 /* [CP] Embed Pods Frameworks */,
136 | CF22FF45FAD6930B2B64F6DE /* [CP] Copy Pods Resources */,
137 | );
138 | buildRules = (
139 | );
140 | dependencies = (
141 | );
142 | name = example;
143 | productName = example;
144 | productReference = 13B07F961A680F5B00A75B9A /* example.app */;
145 | productType = "com.apple.product-type.application";
146 | };
147 | /* End PBXNativeTarget section */
148 |
149 | /* Begin PBXProject section */
150 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
151 | isa = PBXProject;
152 | attributes = {
153 | LastUpgradeCheck = 1240;
154 | TargetAttributes = {
155 | 13B07F861A680F5B00A75B9A = {
156 | LastSwiftMigration = 1240;
157 | };
158 | };
159 | };
160 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */;
161 | compatibilityVersion = "Xcode 12.0";
162 | developmentRegion = en;
163 | hasScannedForEncodings = 0;
164 | knownRegions = (
165 | en,
166 | Base,
167 | );
168 | mainGroup = 83CBB9F61A601CBA00E9B192;
169 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
170 | projectDirPath = "";
171 | projectReferences = (
172 | {
173 | ProductGroup = FAB90709279B4A6B008B1D17 /* Products */;
174 | ProjectRef = FAB90708279B4A6B008B1D17 /* RNBasicCarouselModule.xcodeproj */;
175 | },
176 | );
177 | projectRoot = "";
178 | targets = (
179 | 13B07F861A680F5B00A75B9A /* example */,
180 | );
181 | };
182 | /* End PBXProject section */
183 |
184 | /* Begin PBXReferenceProxy section */
185 | FAB9070D279B4A6B008B1D17 /* libRNBasicCarouselModule.a */ = {
186 | isa = PBXReferenceProxy;
187 | fileType = archive.ar;
188 | path = libRNBasicCarouselModule.a;
189 | remoteRef = FAB9070C279B4A6B008B1D17 /* PBXContainerItemProxy */;
190 | sourceTree = BUILT_PRODUCTS_DIR;
191 | };
192 | /* End PBXReferenceProxy section */
193 |
194 | /* Begin PBXResourcesBuildPhase section */
195 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
196 | isa = PBXResourcesBuildPhase;
197 | buildActionMask = 2147483647;
198 | files = (
199 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
200 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
201 | );
202 | runOnlyForDeploymentPostprocessing = 0;
203 | };
204 | /* End PBXResourcesBuildPhase section */
205 |
206 | /* Begin PBXShellScriptBuildPhase section */
207 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
208 | isa = PBXShellScriptBuildPhase;
209 | buildActionMask = 2147483647;
210 | files = (
211 | );
212 | inputPaths = (
213 | );
214 | name = "Bundle React Native code and images";
215 | outputPaths = (
216 | );
217 | runOnlyForDeploymentPostprocessing = 0;
218 | shellPath = /bin/sh;
219 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
220 | };
221 | 0D351765F33AAFE9182EB942 /* [CP] Embed Pods Frameworks */ = {
222 | isa = PBXShellScriptBuildPhase;
223 | buildActionMask = 2147483647;
224 | files = (
225 | );
226 | inputFileListPaths = (
227 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-input-files.xcfilelist",
228 | );
229 | name = "[CP] Embed Pods Frameworks";
230 | outputFileListPaths = (
231 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-output-files.xcfilelist",
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | shellPath = /bin/sh;
235 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks.sh\"\n";
236 | showEnvVarsInLog = 0;
237 | };
238 | 752C8533A601AAC997D2EA70 /* [CP] Check Pods Manifest.lock */ = {
239 | isa = PBXShellScriptBuildPhase;
240 | buildActionMask = 2147483647;
241 | files = (
242 | );
243 | inputFileListPaths = (
244 | );
245 | inputPaths = (
246 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
247 | "${PODS_ROOT}/Manifest.lock",
248 | );
249 | name = "[CP] Check Pods Manifest.lock";
250 | outputFileListPaths = (
251 | );
252 | outputPaths = (
253 | "$(DERIVED_FILE_DIR)/Pods-example-checkManifestLockResult.txt",
254 | );
255 | runOnlyForDeploymentPostprocessing = 0;
256 | shellPath = /bin/sh;
257 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/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# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
258 | showEnvVarsInLog = 0;
259 | };
260 | CF22FF45FAD6930B2B64F6DE /* [CP] Copy Pods Resources */ = {
261 | isa = PBXShellScriptBuildPhase;
262 | buildActionMask = 2147483647;
263 | files = (
264 | );
265 | inputFileListPaths = (
266 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-input-files.xcfilelist",
267 | );
268 | name = "[CP] Copy Pods Resources";
269 | outputFileListPaths = (
270 | "${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-output-files.xcfilelist",
271 | );
272 | runOnlyForDeploymentPostprocessing = 0;
273 | shellPath = /bin/sh;
274 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh\"\n";
275 | showEnvVarsInLog = 0;
276 | };
277 | FD10A7F022414F080027D42C /* Start Packager */ = {
278 | isa = PBXShellScriptBuildPhase;
279 | buildActionMask = 2147483647;
280 | files = (
281 | );
282 | inputFileListPaths = (
283 | );
284 | inputPaths = (
285 | );
286 | name = "Start Packager";
287 | outputFileListPaths = (
288 | );
289 | outputPaths = (
290 | );
291 | runOnlyForDeploymentPostprocessing = 0;
292 | shellPath = /bin/sh;
293 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
294 | showEnvVarsInLog = 0;
295 | };
296 | /* End PBXShellScriptBuildPhase section */
297 |
298 | /* Begin PBXSourcesBuildPhase section */
299 | 13B07F871A680F5B00A75B9A /* Sources */ = {
300 | isa = PBXSourcesBuildPhase;
301 | buildActionMask = 2147483647;
302 | files = (
303 | FAA6DE282607FC1C0044CA6D /* AppDelegate.swift in Sources */,
304 | );
305 | runOnlyForDeploymentPostprocessing = 0;
306 | };
307 | /* End PBXSourcesBuildPhase section */
308 |
309 | /* Begin XCBuildConfiguration section */
310 | 13B07F941A680F5B00A75B9A /* Debug */ = {
311 | isa = XCBuildConfiguration;
312 | baseConfigurationReference = 97D2F575C9E1CCB8487D7A83 /* Pods-example.debug.xcconfig */;
313 | buildSettings = {
314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
315 | CLANG_ENABLE_MODULES = YES;
316 | CURRENT_PROJECT_VERSION = 1;
317 | ENABLE_BITCODE = NO;
318 | INFOPLIST_FILE = example/Info.plist;
319 | LD_RUNPATH_SEARCH_PATHS = (
320 | "$(inherited)",
321 | "@executable_path/Frameworks",
322 | );
323 | OTHER_LDFLAGS = (
324 | "$(inherited)",
325 | "-ObjC",
326 | "-lc++",
327 | );
328 | PRODUCT_BUNDLE_IDENTIFIER = "com.$(PRODUCT_NAME:rfc1034identifier:lower)";
329 | PRODUCT_NAME = example;
330 | SWIFT_OBJC_BRIDGING_HEADER = "example/example-Bridging-Header.h";
331 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
332 | SWIFT_VERSION = 5.0;
333 | VERSIONING_SYSTEM = "apple-generic";
334 | };
335 | name = Debug;
336 | };
337 | 13B07F951A680F5B00A75B9A /* Release */ = {
338 | isa = XCBuildConfiguration;
339 | baseConfigurationReference = F9197C6B9DA65F8C6AC6D250 /* Pods-example.release.xcconfig */;
340 | buildSettings = {
341 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
342 | CLANG_ENABLE_MODULES = YES;
343 | CURRENT_PROJECT_VERSION = 1;
344 | INFOPLIST_FILE = example/Info.plist;
345 | LD_RUNPATH_SEARCH_PATHS = (
346 | "$(inherited)",
347 | "@executable_path/Frameworks",
348 | );
349 | OTHER_LDFLAGS = (
350 | "$(inherited)",
351 | "-ObjC",
352 | "-lc++",
353 | );
354 | PRODUCT_BUNDLE_IDENTIFIER = "com.$(PRODUCT_NAME:rfc1034identifier:lower)";
355 | PRODUCT_NAME = example;
356 | SWIFT_OBJC_BRIDGING_HEADER = "example/example-Bridging-Header.h";
357 | SWIFT_VERSION = 5.0;
358 | VERSIONING_SYSTEM = "apple-generic";
359 | };
360 | name = Release;
361 | };
362 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
363 | isa = XCBuildConfiguration;
364 | buildSettings = {
365 | ALWAYS_SEARCH_USER_PATHS = NO;
366 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
367 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
368 | CLANG_CXX_LIBRARY = "libc++";
369 | CLANG_ENABLE_MODULES = YES;
370 | CLANG_ENABLE_OBJC_ARC = YES;
371 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
372 | CLANG_WARN_BOOL_CONVERSION = YES;
373 | CLANG_WARN_COMMA = YES;
374 | CLANG_WARN_CONSTANT_CONVERSION = YES;
375 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
376 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
377 | CLANG_WARN_EMPTY_BODY = YES;
378 | CLANG_WARN_ENUM_CONVERSION = YES;
379 | CLANG_WARN_INFINITE_RECURSION = YES;
380 | CLANG_WARN_INT_CONVERSION = YES;
381 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
382 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
383 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
384 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
385 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
386 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
387 | CLANG_WARN_STRICT_PROTOTYPES = YES;
388 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
389 | CLANG_WARN_UNREACHABLE_CODE = YES;
390 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
391 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
392 | COPY_PHASE_STRIP = NO;
393 | ENABLE_STRICT_OBJC_MSGSEND = YES;
394 | ENABLE_TESTABILITY = YES;
395 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
396 | GCC_C_LANGUAGE_STANDARD = gnu99;
397 | GCC_DYNAMIC_NO_PIC = NO;
398 | GCC_NO_COMMON_BLOCKS = YES;
399 | GCC_OPTIMIZATION_LEVEL = 0;
400 | GCC_PREPROCESSOR_DEFINITIONS = (
401 | "DEBUG=1",
402 | "$(inherited)",
403 | );
404 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
405 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
406 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
407 | GCC_WARN_UNDECLARED_SELECTOR = YES;
408 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
409 | GCC_WARN_UNUSED_FUNCTION = YES;
410 | GCC_WARN_UNUSED_VARIABLE = YES;
411 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
412 | LD_RUNPATH_SEARCH_PATHS = (
413 | /usr/lib/swift,
414 | "$(inherited)",
415 | );
416 | LIBRARY_SEARCH_PATHS = (
417 | "\"$(SDKROOT)/usr/lib/swift\"",
418 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
419 | "\"$(inherited)\"",
420 | );
421 | MTL_ENABLE_DEBUG_INFO = YES;
422 | ONLY_ACTIVE_ARCH = YES;
423 | OTHER_SWIFT_FLAGS = "-D DEBUG";
424 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
425 | SDKROOT = iphoneos;
426 | };
427 | name = Debug;
428 | };
429 | 83CBBA211A601CBA00E9B192 /* Release */ = {
430 | isa = XCBuildConfiguration;
431 | buildSettings = {
432 | ALWAYS_SEARCH_USER_PATHS = NO;
433 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
434 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
435 | CLANG_CXX_LIBRARY = "libc++";
436 | CLANG_ENABLE_MODULES = YES;
437 | CLANG_ENABLE_OBJC_ARC = YES;
438 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
439 | CLANG_WARN_BOOL_CONVERSION = YES;
440 | CLANG_WARN_COMMA = YES;
441 | CLANG_WARN_CONSTANT_CONVERSION = YES;
442 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
443 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
444 | CLANG_WARN_EMPTY_BODY = YES;
445 | CLANG_WARN_ENUM_CONVERSION = YES;
446 | CLANG_WARN_INFINITE_RECURSION = YES;
447 | CLANG_WARN_INT_CONVERSION = YES;
448 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
449 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
450 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
451 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
452 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
453 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
454 | CLANG_WARN_STRICT_PROTOTYPES = YES;
455 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
456 | CLANG_WARN_UNREACHABLE_CODE = YES;
457 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
458 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
459 | COPY_PHASE_STRIP = YES;
460 | ENABLE_NS_ASSERTIONS = NO;
461 | ENABLE_STRICT_OBJC_MSGSEND = YES;
462 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
463 | GCC_C_LANGUAGE_STANDARD = gnu99;
464 | GCC_NO_COMMON_BLOCKS = YES;
465 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
466 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
467 | GCC_WARN_UNDECLARED_SELECTOR = YES;
468 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
469 | GCC_WARN_UNUSED_FUNCTION = YES;
470 | GCC_WARN_UNUSED_VARIABLE = YES;
471 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
472 | LD_RUNPATH_SEARCH_PATHS = (
473 | /usr/lib/swift,
474 | "$(inherited)",
475 | );
476 | LIBRARY_SEARCH_PATHS = (
477 | "\"$(SDKROOT)/usr/lib/swift\"",
478 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
479 | "\"$(inherited)\"",
480 | );
481 | MTL_ENABLE_DEBUG_INFO = NO;
482 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
483 | SDKROOT = iphoneos;
484 | SWIFT_COMPILATION_MODE = wholemodule;
485 | VALIDATE_PRODUCT = YES;
486 | };
487 | name = Release;
488 | };
489 | /* End XCBuildConfiguration section */
490 |
491 | /* Begin XCConfigurationList section */
492 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "example" */ = {
493 | isa = XCConfigurationList;
494 | buildConfigurations = (
495 | 13B07F941A680F5B00A75B9A /* Debug */,
496 | 13B07F951A680F5B00A75B9A /* Release */,
497 | );
498 | defaultConfigurationIsVisible = 0;
499 | defaultConfigurationName = Release;
500 | };
501 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "example" */ = {
502 | isa = XCConfigurationList;
503 | buildConfigurations = (
504 | 83CBBA201A601CBA00E9B192 /* Debug */,
505 | 83CBBA211A601CBA00E9B192 /* Release */,
506 | );
507 | defaultConfigurationIsVisible = 0;
508 | defaultConfigurationName = Release;
509 | };
510 | /* End XCConfigurationList section */
511 | };
512 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
513 | }
514 |
--------------------------------------------------------------------------------