Coder Social home page Coder Social logo

prscx / react-native-bottom-action-sheet Goto Github PK

View Code? Open in Web Editor NEW
633.0 9.0 48.0 1.18 MB

React Native: Native Bottom Action Sheet

License: Apache License 2.0

JavaScript 48.06% Java 28.72% Objective-C 15.73% Ruby 3.43% Starlark 4.07%
react-native android ios

react-native-bottom-action-sheet's Introduction

PRs Welcome

ReactNative: Native Bottom Action Sheet (Android/iOS)

If this project has helped you out, please support us with a star ๐ŸŒŸ

A simple library that creates native BottomSheet actions according to the Material Design Specs

Android

Sheet View: rubensousa/BottomSheetBuilder
Grid View: rubensousa/BottomSheetBuilder
Alert View: javiersantos/BottomDialogs

iOS

Sheet View: sagiwei/SGActionView
Grid View: sagiwei/SGActionView
Alert View: sagiwei/SGActionView

๐Ÿ“– Getting started

$ npm install react-native-bottom-action-sheet --save

RN61 >= RNBAS V2 >

  • Add react-native-image-helper your app package.json

$ npm install react-native-image-helper --save

  • Add react-native-vector-icons to your app package.json and configure it as per their installation steps

$ npm install react-native-vector-icons --save

  • iOS

    • Add the following to your Podfile -> ios/Podfile and run pod update:
     	pod 'SGActionView', :git => 'https://github.com/prscX/SGActionView.git'
    
       	use_native_modules!
    
     	pod 'RNBottomActionSheet', :path => '../node_modules/react-native-bottom-action-sheet/ios'
     	pod 'RNImageHelper', :path => '../node_modules/react-native-image-helper/ios'
    
  • Android

Please add below snippet into your app build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

RN61 >= RNBAS V1 >

RN61 above please use react-native-bottom-action-sheet V1 and above

  • iOS

    • Add the following to your Podfile -> ios/Podfile and run pod update:
     	pod 'SGActionView', :git => 'https://github.com/prscX/SGActionView.git'
    
       	use_native_modules!
    
     	pod 'RNBottomActionSheet', :path => '../node_modules/react-native-bottom-action-sheet/ios'
    
  • Android

Please add below snippet into your app build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

RN60 < RNBAS V1 <

RN60 below please use react-native-bottom-action-sheet V.0.*

$ react-native link react-native-bottom-action-sheet

$ react-native link react-native-vector-icons

  • iOS

    • After react-native link react-native-bottom-action-sheet, please verify node_modules/react-native-bottom-action-sheet/ios/ contains Pods folder. If does not exist please execute pod install command on node_modules/react-native-bottom-action-sheet/ios/, if any error => try pod repo update then pod install
  • Android

Please add below snippet into your app build.gradle

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
		maven { url "https://maven.google.com" }
		...
    }
}

Note: This library is support on Android 27 > above

๐Ÿ’ป Usage

import RNBottomActionSheet from 'react-native-bottom-action-sheet';

import Icon from 'react-native-vector-icons'

๐Ÿ’ก Example's

  • Sheet View

    • API Way
    let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />
    let instagram = <Icon family={'FontAwesome'} name={'instagram'} color={'#000000'} size={30} />
    let SheetView = RNBottomActionSheet.SheetView;
    
    SheetView.Show({
      title: "Awesome!",
      items: [
        { title: "Facebook", value: "fb", subTitle: "Facebook Description", icon: facebook },
        { title: "Instagram", value: "insta", subTitle: "Instagram Description", icon: instagram },
      ],
      theme: "light",
      selection: 3,
      onSelection: (index, value) => {
        // value is optional
        console.log("selection: " + index + " " + value);
      },
      onCancel: () => console.log('Closing the bottom SheetView!!!')
    });
    • React Way
     let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />
     let instagram = <Icon family={'FontAwesome'} name={'instagram'} color={'#000000'} size={30} />
    
     <RNBottomActionSheet.SheetView visible={this.state.sheetView} title={"Awesome!"} theme={"light"} onSelection={(index, value) => {
     	// value is optional
     	console.log("selection: " + index + " " + value);
     }}>
     	<RNBottomActionSheet.SheetView.Item title={"Facebook"} subTitle={"Facebook Description"} icon={facebook} />
     	<RNBottomActionSheet.SheetView.Item title={"Instagram"} subTitle={"Instagram Description"} icon={instagram} />
     </RNBottomActionSheet.SheetView>

Note:

  • We have added family prop for Icon class, please make sure that you pass the props
  • Grid View

    • API Way
     let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />
     let instagram = <Icon family={'FontAwesome'} name={'instagram'} color={'#000000'} size={30} />
    
     let GridView = RNBottomActionSheet.GridView
     	GridView.Show({
     		title: "Awesome!",
     		items: [
     		{ title: "Facebook", icon: facebook },
     		{ title: "Instagram", icon: instagram }
     		],
     		theme: 'light',
     		onSelection: (index, value) => {
     		console.log('selection: ' + index + ' ' + value)
     		}
     	});
    • React Way
     let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />
     let instagram = <Icon family={'FontAwesome'} name={'instagram'} color={'#000000'} size={30} />
    
     <RNBottomActionSheet.GridView visible={this.state.gridView} title={"Awesome!"} theme={"light"} selection={3} onSelection={(index, value) => {
     	console.log('selection: ' + index + ' ' + value);
     	}}>
     	<RNBottomActionSheet.GridView.Item title={"Facebook"} icon={facebook} />
     	<RNBottomActionSheet.GridView.Item title={"Instagram"} icon={instagram} />
     </RNBottomActionSheet.GridView>
  • Alert View

    • API Way
     let AlertView = RNBottomActionSheet.AlertView
     	AlertView.Show({
     	title: "Awesome!",
     	message: "What can we improve? Your feedback is always welcome.",
     	positiveText: "OK",
     	positiveBackgroundColor: "#eeffee",
     	positiveTextColor: "#006500",
     	negativeText: "Exit",
     	negativeBackgroundColor: "#ffebeb",
     	negativeTextColor: "#760000",
     	theme: 'light',
     	onPositive: () => {
     		console.log('positive clicked')
     	},
     	onNegative: () => {
     		console.log('negative clicked')
     	}
     	})
    • React Way
     <RNBottomActionSheet.AlertView
     	visible={this.state.alterView}
     	title={"Awesome!"}
     	message={"What can we improve? Your feedback is always welcome."}
     	positiveText={"OK"}
     	positiveBackgroundColor={"#eeffee"}
     	positiveTextColor={"#006500"}
     	negativeText={"Exit"}
     	negativeBackgroundColor={"#ffebeb"}
     	negativeTextColor={"#760000"}
     	theme={"light"}
     	onPositive={() => {
     		console.log("positive clicked");
     	}}
     	onNegative={() => {
     		console.log("negative clicked");
     	}} />

๐ŸŽจ APIs

  • Sheet View

    • Generic

      • title: string
      • items: Array<{ title: string, subTitle: string, icon?: image, value?: mixed }> - subTitle: iOS Only
      • onSelection: (index: number, value: ?mixed) => void
      • Show()
    • Android

      • titleTextColor: string
      • itemTextColor: string
      • itemTintColor: string
      • backgroundColor: string
      • delayDismissOnItemClick: bool
      • dividerItem(title: string)
    • iOS

      • theme: string
      • selection: int
  • Grid View

    • Generic

      • title: string
      • items: Array<{ title: string, icon?: image, value?: mixed }>
      • onSelection: (index: number, value: ?mixed) => void
      • Show()
    • Android

      • itemTextColor: string
      • itemTintColor: string
      • backgroundColor: string
      • delayDismissOnItemClick: bool
    • iOS

      • theme: string
  • Alert View

    • Generic

      • title string
      • message: string
      • positiveText: string
      • positiveBackgroundColor: string
      • positiveTextColor: string
      • negativeText: string
      • negativeBackgroundColor: string
      • negativeTextColor: string
      • onPositive: () => void
      • onNegative: () => void
      • Show()
    • Android

    • iOS

      • theme: string - iOS Only

Icons

	let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />

	<RNBottomActionSheet.GridView.Item title={"Facebook"} icon={facebook} />

Note:

  • We have added family prop for Icon class, please make sure that you pass the props
  • Custom Icons

Note: Since we are using native libraries, we have not found a solution in order to render RN Images in production, therefore please copy all your image assets in platform specific folders:

  • Android: Please copy your image assets in app resource drawable folder
  • iOS: Please copy your image assets in app resources folder

Please refer example application for the image usage.

โœจ Credits

๐Ÿค” How to contribute

Have an idea? Found a bug? Please raise to ISSUES. Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

๐Ÿ’ซ Where is this library used?

If you are using this library in one of your projects, add it in this list below. โœจ

๐Ÿ“œ License

This library is provided under the Apache 2 License.

RNBottomActionSheet @ prscX

๐Ÿ’– Support my projects

I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the projects you like ๐Ÿš€

  • If you're feeling especially charitable, please follow prscX on GitHub.

    Buy Me A Coffee

    Thanks! โค๏ธ
    prscX.github.io
    </ Pranav >

react-native-bottom-action-sheet's People

Contributors

doko-demo-doa avatar fgagneten avatar mars-lan avatar mtzfactory avatar prscms avatar prscx avatar sladek-jan avatar vonovak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-bottom-action-sheet's Issues

No PodFile created

Hi,
After simply executing
yarn add [email protected]
and
react-native link react-native-bottom-action-sheet
respectively,
it seems there is no PodFile in ios folder, so i can't execute pod install.

Could not resolve com.github.prscx:bottomsheetbuilder:fixes-SNAPSHOT.

Hi guys, I try to run my project today and get this error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.github.prscx:bottomsheetbuilder:fixes-SNAPSHOT.
  Required by:
      project :app > project :react-native-bottom-action-sheet
   > Skipped due to earlier error

React version:

"react": "16.6.1",
"react-native": "0.57.7",

My react-native-bottom-action-sheet:

react-native-bottom-action-sheet@^0.0.20:
  version "0.0.20"
  resolved "https://registry.yarnpkg.com/react-native-bottom-action-sheet/-/react-native-bottom-action-sheet-0.0.20.tgz#f0200ff4d6f92ed2616d602cddd183eeb5fd8308"
  integrity sha512-vrhkporSCESJARB8wiMKSJWrM4DzgyYu0j4zbNcaSa49m93B/SEmWu0lv3Rt9F//pYo0m5umxYWMBJH2sliLJw==
  dependencies:
    pod-installer "0.0.0"
    react-native-vector-icons "5.0.0"

How I can to fix?

iOS GridView item array out of bound

Hey @prscX

There is a problem regarding the item array when dealing with the ios GridView.

simulator_screen_shot_-iphone_6-_2018-07-19_at_11 39 48

I receive this error, because from my first issue #21 the Chinese cancel button is still taking up the item array[0] position. My Food Truck object should be items[0] but it is still considered to be items[1] and gives me errors.

simulator_screen_shot_-iphone_6-_2018-07-19_at_11 13 56

I see from your code from prscX/SGActionView@d3edaf1#diff-2cbd6bf6bd77be3bcd32e9a084a4a0c6 you have removed the button view but maybe not actual button implementation into the array.

I think I have found the lines that you need to remove. The cancel button that you commented out from has the following code
https://github.com/prscX/SGActionView/blob/d3edaf178de6f7281c26533683bf388612e4019f/SGActionView/SGGridMenu.m#L94-L96

I dont know much about the native swift code but could these lines be still associated with the cancel_button that you commented out?
https://github.com/prscX/SGActionView/blob/d3edaf178de6f7281c26533683bf388612e4019f/SGActionView/SGGridMenu.m#L123-L126

The cancel button is still being created functionally somewhere in the code and still being added to the item array here with items[0]

Android can't open sheet

Error Android only.

in build.gradle

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        maven { url 'https://jitpack.io' }
    }
}

screenshot_20180508-005952_gschool_react

onCancel handler never call on Android when swipe down GridView or SheetView

Platform: Android
RN: 0.59.0
react-native-bottom-action-sheet: 0.0.20

Example:

SheetView.Show({
      title: 'CHOOSE AN ACTION',
      items: [
        {
          title: 'Camera',
          value: 'camera',
        },
        {
          title: 'Files',
          value: 'gallery',
        },
      ],
      onSelection: (index, value) => { console.log("selection: " + index + " " + value); },
      // never  called when swipe down SheetView
      onCancel: () => console.log('Closing the bottom SheetView!!!') 
    });

Failed when running react-native link react-native-bottom-action-sheet

After I successfully ran:
npm install react-native-bottom-action-sheet --save
then I ran:
react-native link react-native-bottom-action-sheet
I got the following error:

/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:113
throw new ReferenceError(unknownOptErr);
^

ReferenceError: Unknown option: .caller. Check out http://babeljs.io/docs/usage/options/ for more information about options.
at buildUnknownError (/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:113:11)
at Object.keys.forEach.key (/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:99:57)
at Array.forEach ()
at validate (/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:69:21)
at loadPrivatePartialConfig (/Users/work/roadmap/node_modules/@babel/core/lib/config/partial.js:38:50)
at loadFullConfig (/Users/work/roadmap/node_modules/@babel/core/lib/config/full.js:43:39)
at loadOptions (/Users/work/roadmapnode_modules/@babel/core/lib/config/index.js:28:36)
at OptionManager.init (/Users/work/roadmap/node_modules/@babel/core/lib/config/index.js:34:12)
at compile (/Users/work/roadmap/node_modules/@babel/register/lib/node.js:61:42)
at compileHook (/Users/work/roadmap/node_modules/@babel/register/lib/node.js:102:12)

My package.json file has dependencies as following:

"dependencies": {
"axios": "0.18.0",
"ethers": "3.0.27",
"identicon.js": "2.3.2",
"mobx": "5.1.0",
"mobx-react": "5.2.5",
"moment": "2.22.2",
"react": "^16.6.1",
"react-native": "^0.57.5",
"react-native-bottom-action-sheet": "0.0.18",
"react-native-camera": "1.2.0",
"react-native-modal": "6.5.0",
"react-native-permissions": "1.1.1",
"react-native-qrcode-svg": "5.1.0",
"react-native-sensitive-info": "5.2.4",
"react-native-snackbar": "0.5.0",
"react-native-svg": "^5.5.1",
"react-native-vector-icons": "5.0.0",
"react-navigation": "2.12.1"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"@babel/plugin-proposal-decorators": "7.0.0-beta.47",
"@babel/plugin-transform-runtime": "7.0.0-beta.47",
"@babel/runtime": "7.0.0-beta.47",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "23.4.2",
"babel-plugin-module-resolver": "3.1.1",
"babel-preset-react-native": "5.0.2",
"enzyme": "3.5.0",
"enzyme-adapter-react-16": "1.3.0",
"eslint-config-rallycoding": "3.2.0",
"jest": "23.5.0",
"jsdom": "12.0.0",
"react-native-mock-render": "0.1.1",
"react-test-renderer": "16.4.2"
},
"jest": {
"preset": "react-native",
"transform": {
"^.+\.js$": "/node_modules/react-native/jest/preprocessor.js"
},
"setupTestFrameworkScriptFile": "/config/jest.config.js"
}

So would anybody be able to spot what is going on?
Thanks
IDoor

Multi select option

Is there a way to a multiselect option (with checkmarks) to RNbas ?
Here is my current code:

<RNBottomActionSheet.SheetView
          visible={true}
          title={'Awesome!'}
          theme={'light'}
          onSelection={(index, value) => {
            // value is optional
            console.log('selection: ' + index + ' ' + value);
          }}>
          <RNBottomActionSheet.SheetView.Item
            title={'Facebook'}
            value="facebook"
            subTitle={'Facebook Description'}
            icon={facebook}
          />
          <RNBottomActionSheet.SheetView.Item
            title={'Instagram'}
            value="Instagram"
            subTitle={'Instagram Description'}
            icon={instagram}
          />
        </RNBottomActionSheet.SheetView>

2 more questions:

  1. Why is value undefined in onSelection ?
  2. Is there a way to show custom images in sheet view ?

Custom Font

Is it at all possible to set a custom font for the action sheet menu items? Thanks!

Bugs on android 4.4.2

Icon does not appear in release build but works properly in debug. itemTintColor & itemTextColor doesn't works on android. I can only change backgroundColor

Use non-vector images as icons, or use no icon

Hi! Great component, install was a breeze and it's working perfectly.

The one thing I'm wondering is that my use case requires me to show custom images as icons in the Sheet View instead of the ones available in the compatible icon libraries. So far on Android returning null as an icon or removing icon altogether stops it from rendering. Is there a way I can use either a custom image or just use no icon?

Thanks!

Automatic pod install does not work

OS: macOS High Sierra 10.13.3
node -v: v8.11.1
yarn -v: 1.7.0

I need to manually cd node_modules/react-native-bottom-action-sheet/ios/ && pod install.

I ran react-native link and it has not helped.

Updating state when the bottom sheet is dismissed

Looking over the docs, I can't see how to tell when the bottom sheet is dismissed. I'm trying to take the React approach where the visibility state is managed in my component state, but I'm not sure how I'm supposed to update that visibility state to false when the user clicks the background to dismiss the bottom sheet without making a selection, and onSelection doesn't look like it gets called in that case.

How can I update my component state when the bottom sheet is dismissed?

theme dark doesn't work

hello, I'm trying to configure the Theme Dark in SheetView but it doesn't work... I put theme: "dark", and also theme: "Dark", but it always loads the Theme light, tested in Mobil and android emulator 9 and 10


EDIT..
I can configure a theme in a manual way sending by Props the desired values, but I can't find the way to configure the color of the Title, in this example it is: "Awesome Component!"

let facebook = <Icon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} />
let instagram = <Icon family={'FontAwesome'} name={'instagram'} color={'#000000'} size={30} />
let SheetView = RNBottomActionSheet.SheetView;

SheetView.Show({
  title: "Awesome Component!",
  items: [
    { title: "Facebook", value: "fb", subTitle: "Facebook Description", icon: facebook },
    { title: "Instagram", value: "insta", subTitle: "Instagram Description", icon: instagram },
  ],
  selection: 3,
  backgroundColor: "#353535", // color backcolor PROPS OK
  titleTextColor: "#dc0000", // color PROPS NO doesn't make any difference
  itemTextColor: "#1ecdcd", // color itemTextColor PROPS OK
  itemTintColor: "#1ecdcd", // color iconos PROPS OK
  onSelection: (index, value) => {
    // value is optional
    console.log("selection: " + index + " " + value);
  },
  onCancel: () => console.log('Closing the bottom SheetView!!!')
});

AndroidX build error

Getting this build error after enabling Android X support:

> Task :react-native-bottom-action-sheet:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-bottom-action-sheet:verifyReleaseResources'.
> 1 exception was raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values/values.xml:4034: error: resource android:attr/fontVariationSettings not found.
  /node_modules/react-native-bottom-action-sheet/android/build/intermediates/res/merged/release/values/values.xml:4035: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

Icons pixelated with poor quality

I've just downloaded the example project and it turned out that icons have a poor quality. (I will not paste code because is the same as the example project)

Info
SO: Android
Brand: Samsung S9
Version: 9.0
react-native Version: 0.58.6
react-native-bottom-action-sheet Version: 0.0.19
screenshot_20190305-194916_dondejuego

Is there any solution for that?

Thanks!

Unable to build for Android

When I try to build for android I get this error

Unable to find a matching configuration of project :react-native-bottom-action-sheet: None of the consumable configurations have attributes.

Any ideas?

These are my settings:

In android/build.gradle

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        // Google now hosts their latest API dependencies on their own maven  server.  
        // React Native will eventually add this to their app template.
        maven { url 'https://maven.google.com/' }
        maven {
            url "$rootDir/../node_modules/react-native-background-geolocation/android/libs"
        }
        maven {
            url "$rootDir/../node_modules/react-native-background-fetch/android/libs"
        }
    }
}

ext {
    buildToolsVersion = "27.0.3"
    minSdkVersion = 16
    compileSdkVersion = 27
    targetSdkVersion = 27
    supportLibVersion = "27.0.3"
    googlePlayServicesVersion = "11.8.0"
    androidMapsUtilsVersion = "0.5+"
}

In android/settings.gradle:

rootProject.name = 'wandelsport'
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
include ':react-native-background-fetch'
project(':react-native-background-fetch').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-fetch/android')
include ':react-native-background-geolocation'
project(':react-native-background-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-background-geolocation/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-bottom-action-sheet'
project(':react-native-bottom-action-sheet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-bottom-action-sheet/android')

include ':app'

And in android/app/build.gradle


android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion

    defaultConfig {
        applicationId "com.wandelsport"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        release {
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
            def versionCodes = ["armeabi-v7a":1, "x86":2]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }
}

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    compile project(':react-native-maps')
    compile project(':react-native-background-fetch')
    compile project(':react-native-background-geolocation')
    compile project(':react-native-vector-icons')
    compile project(':react-native-bottom-action-sheet')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    compile "com.facebook.react:react-native:+"  // From node_modules
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

iOS GridView Chinese characters

Hi, this is a great library!

I have a slight issue when showing a GridView on an ios simulator/device. My GridView displays just as I want but there is some strange chinese characters on the bottom of the view. Is there any way I can remove these? Its random and out of place. On my android device/emulator it doesnt display any chinese characters and works fine.

Also the chinese text button below is messing up my items array. I have 8 objects in the array,

items: [
        { title: "Food", icon: "food_icon.png" },
        { title: "Coffee Shops", icon: "coffee_icons.png" },
        { title: "Markets", icon: "market_icons.png" },
        { title: "Bus Stops", icon: "busstop_icons.png" },
        { title: "Libraries", icon: "libraries_icons.png" },
        { title: "Buildings", icon: "building_icons.png" },
        { title: "Parking", icon: "parking_icons.png" },
        { title: "Food Trucks", icon: "foodtruck_icons.png" },

      ]

I have a switch case as follows for my 8 objects, starting at case 0 since arrays start at 0

 switch (selection) {
            case 0:
            case 1:
                 ....
                 ....
            case 7
}

However the chinese text button below actually counts as a selection item and when I alerted a message when I press on it says 0. This means that the first object in the array is actually the chinese text button. And when I click on my last object in my array I initialized(this case Food Trucks) it goes out of bounds and gives me an error since the selection is technically considered as (selection === 8)

bottom

Move SGActionView.

SGActionView is in ios/podfile, every time install this module have to install SGActionView again.

Can user add it by himself? Not when install the module.

Custom icons

Now no opportunity to user custom or system icons!
like that:

// own flies
{ icon: require('./icon.png') }
// system assets
{ icon: {uri: 'asset:/app_icon.png'} }

Note: Since we are using native libraries, we have not found a solution in order to render RN Images in production, therefore please copy all your image assets in platform-specific folders:

We can find a solution in RNN implementation: ImageLoader.java

iOS build error: duplicate symbol...

Hi,

I'm having the following iOS build error with RN v0.60.5 and react-native-bottom-action-sheet v0.0.23:

duplicate symbol _OBJC_CLASS_$_PodsDummy_SGActionView in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView-dummy.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView-dummy.o)
duplicate symbol _OBJC_METACLASS_$_PodsDummy_SGActionView in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView-dummy.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView-dummy.o)
duplicate symbol _OBJC_CLASS_$_SGActionView in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_METACLASS_$_SGActionView in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_IVAR_$_SGActionView._menus in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_IVAR_$_SGActionView._showMenuAnimation in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_IVAR_$_SGActionView._dismissMenuAnimation in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_IVAR_$_SGActionView._lightingAnimation in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_IVAR_$_SGActionView._dimingAnimation in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_IVAR_$_SGActionView._tapGesture in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_IVAR_$_SGActionView._style in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGActionView.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGActionView.o)
duplicate symbol _OBJC_CLASS_$_SGAlertMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGAlertMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGAlertMenu.o)
duplicate symbol _OBJC_METACLASS_$_SGAlertMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGAlertMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGAlertMenu.o)
duplicate symbol _OBJC_IVAR_$_SGAlertMenu._actionButtons in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGAlertMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGAlertMenu.o)
duplicate symbol _OBJC_IVAR_$_SGAlertMenu._titleLabel in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGAlertMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGAlertMenu.o)
duplicate symbol _OBJC_IVAR_$_SGAlertMenu._messageLabel in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGAlertMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGAlertMenu.o)
duplicate symbol _OBJC_IVAR_$_SGAlertMenu._actionHandle in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGAlertMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGAlertMenu.o)
duplicate symbol _OBJC_CLASS_$_SGBaseMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGBaseMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGBaseMenu.o)
duplicate symbol _OBJC_METACLASS_$_SGBaseMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGBaseMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGBaseMenu.o)
duplicate symbol _OBJC_IVAR_$_SGBaseMenu._roundedCorner in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGBaseMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGBaseMenu.o)
duplicate symbol _OBJC_CLASS_$_SGButton in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGBaseMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGBaseMenu.o)
duplicate symbol _OBJC_METACLASS_$_SGButton in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGBaseMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGBaseMenu.o)
duplicate symbol _OBJC_IVAR_$_SGBaseMenu._style in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGBaseMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGBaseMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridMenu._contentScrollView in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridItem._menu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_CLASS_$_SGGridMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_METACLASS_$_SGGridMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridMenu._items in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridMenu._itemTitles in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridMenu._itemImages in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridMenu._cancelButton in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_CLASS_$_SGGridItem in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_METACLASS_$_SGGridItem in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridMenu._titleLabel in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGGridMenu._actionHandle in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGGridMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGGridMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._selectedItemIndex in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._tableView in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_CLASS_$_SGSheetMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_METACLASS_$_SGSheetMenu in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._items in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._subItems in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._titleLabel in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._actionHandle in:
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/mtz/Library/Developer/Xcode/DerivedData/bMark-axpkrtlfukjxbxebgkkllonxhshf/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
ld: 43 duplicate symbols for architecture x86_64

undefined is not an object (evaluating 'RNBottomActionSheet.SheetView')

Hey,

I just installed the package using the following npm command
npm install react-native-bottom-action-sheet --save --ignore-scripts
Because it was stuck on executing pod install command. Since i'll only use this plugin for Android, i guess the pods are not needed. But i did link the package and edit the build.gradle

So on Android, I get this error:
undefined is not an object (evaluating 'RNBottomActionSheet.SheetView') its coming from SheetView.js:76:24 according to my error message

This is my code:

/**
 * Determine how to show action sheet
 */
Platform.select({
  ios: () => ActionSheetIOS.showActionSheetWithOptions({
        options: ['See details', 'Preview', 'Copy Link', 'Delete', 'Cancel'],
        destructiveButtonIndex: 3,
        cancelButtonIndex: 4,
    }, (buttonIndex) => {

      /**
       * Determine what to do based on click of the button
       */
      switch (buttonIndex) {

          //

      }

  }),
  android: () => RNBottomActionSheet.SheetView.Show({
      title: "Options",
      items: [
          {
              title: "Testing",
              value: 'test',
              subTitle: "Testing Description",
              icon: (<Icon family={'FontAwesome'} name={'instagram'} color={'#000000'} size={30} />),
          },
      ],
      theme: "light",
      selection: 3,
      onSelection: (index) => {

        // value is optional
        console.log("selection: " + index + " ");

      }
  })
})();

Hopefully you can help me

iOS: Generated duplicate UUIDs

Can not run library on my project, because after react-native link react-native-bottom-action-sheet and pod install I sow strange output:

Pod installation complete! There are 38 dependencies from the Podfile and 58 total pods installed.

[!] Unable to read the license file `README.markdown` for the spec `SGActionView (0.0.1)`

[!] Unable to read the license file `README.markdown` for the spec `SGActionView (0.0.1)`

[!] [Xcodeproj] Generated duplicate UUIDs:

PBXBuildFile -- Pods.xcodeproj/targets/buildConfigurationList:buildConfigurations:baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,defaultConfigurationIsVisible:0,defaultConfigurationName:Release,displayName:ConfigurationList,isa:XCConfigurationList,,buildPhases:buildActionMask:2147483647,displayName:Headers,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Sources,files:|,|,|,|,|,|,|,|,|,isa:PBXSourcesBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Frameworks,files:,isa:PBXFrameworksBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildRules:,dependencies:displayName:React,isa:PBXTargetDependency,,displayName:SGActionView,isa:PBXTargetDependency,,displayName:RNBottomActionSheet,isa:PBXNativeTarget,name:RNBottomActionSheet,packageProductDependencies:,productName:RNBottomActionSheet,productReference:displayName:libRNBottomActionSheet.a,explicitFileType:archive.ar,includeInIndex:0,isa:PBXFileReference,name:libRNBottomActionSheet.a,path:libRNBottomActionSheet.a,sourceTree:BUILT_PRODUCTS_DIR,,productType:com.apple.product-type.library.static,/buildPhases/buildActionMask:2147483647,displayName:Headers,files:displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:RNBottomActionSheet.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,/files/displayName:SGActionView.h,fileRef:displayName:SGActionView.h,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:sourcecode.c.h,name:SGActionView.h,path:../../../SGActionView/SGActionView/SGActionView.h,sourceTree:<group>,,isa:PBXBuildFile,settings:ATTRIBUTES:Project,,
PBXBuildFile -- Pods.xcodeproj/targets/buildConfigurationList:buildConfigurations:baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,defaultConfigurationIsVisible:0,defaultConfigurationName:Release,displayName:ConfigurationList,isa:XCConfigurationList,,buildPhases:buildActionMask:2147483647,displayName:Headers,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Sources,files:|,|,|,|,|,|,|,|,|,isa:PBXSourcesBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Frameworks,files:,isa:PBXFrameworksBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildRules:,dependencies:displayName:React,isa:PBXTargetDependency,,displayName:SGActionView,isa:PBXTargetDependency,,displayName:RNBottomActionSheet,isa:PBXNativeTarget,name:RNBottomActionSheet,packageProductDependencies:,productName:RNBottomActionSheet,productReference:displayName:libRNBottomActionSheet.a,explicitFileType:archive.ar,includeInIndex:0,isa:PBXFileReference,name:libRNBottomActionSheet.a,path:libRNBottomActionSheet.a,sourceTree:BUILT_PRODUCTS_DIR,,productType:com.apple.product-type.library.static,/buildPhases/buildActionMask:2147483647,displayName:Headers,files:displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:RNBottomActionSheet.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,/files/displayName:SGAlertMenu.h,fileRef:displayName:SGAlertMenu.h,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:sourcecode.c.h,name:SGAlertMenu.h,path:../../../SGActionView/SGActionView/SGAlertMenu.h,sourceTree:<group>,,isa:PBXBuildFile,settings:ATTRIBUTES:Project,,
PBXBuildFile -- Pods.xcodeproj/targets/buildConfigurationList:buildConfigurations:baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,defaultConfigurationIsVisible:0,defaultConfigurationName:Release,displayName:ConfigurationList,isa:XCConfigurationList,,buildPhases:buildActionMask:2147483647,displayName:Headers,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Sources,files:|,|,|,|,|,|,|,|,|,isa:PBXSourcesBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Frameworks,files:,isa:PBXFrameworksBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildRules:,dependencies:displayName:React,isa:PBXTargetDependency,,displayName:SGActionView,isa:PBXTargetDependency,,displayName:RNBottomActionSheet,isa:PBXNativeTarget,name:RNBottomActionSheet,packageProductDependencies:,productName:RNBottomActionSheet,productReference:displayName:libRNBottomActionSheet.a,explicitFileType:archive.ar,includeInIndex:0,isa:PBXFileReference,name:libRNBottomActionSheet.a,path:libRNBottomActionSheet.a,sourceTree:BUILT_PRODUCTS_DIR,,productType:com.apple.product-type.library.static,/buildPhases/buildActionMask:2147483647,displayName:Headers,files:displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:RNBottomActionSheet.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,/files/displayName:SGBaseMenu.h,fileRef:displayName:SGBaseMenu.h,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:sourcecode.c.h,name:SGBaseMenu.h,path:../../../SGActionView/SGActionView/SGBaseMenu.h,sourceTree:<group>,,isa:PBXBuildFile,settings:ATTRIBUTES:Project,,
PBXBuildFile -- Pods.xcodeproj/targets/buildConfigurationList:buildConfigurations:baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,defaultConfigurationIsVisible:0,defaultConfigurationName:Release,displayName:ConfigurationList,isa:XCConfigurationList,,buildPhases:buildActionMask:2147483647,displayName:Headers,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Sources,files:|,|,|,|,|,|,|,|,|,isa:PBXSourcesBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Frameworks,files:,isa:PBXFrameworksBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildRules:,dependencies:displayName:React,isa:PBXTargetDependency,,displayName:SGActionView,isa:PBXTargetDependency,,displayName:RNBottomActionSheet,isa:PBXNativeTarget,name:RNBottomActionSheet,packageProductDependencies:,productName:RNBottomActionSheet,productReference:displayName:libRNBottomActionSheet.a,explicitFileType:archive.ar,includeInIndex:0,isa:PBXFileReference,name:libRNBottomActionSheet.a,path:libRNBottomActionSheet.a,sourceTree:BUILT_PRODUCTS_DIR,,productType:com.apple.product-type.library.static,/buildPhases/buildActionMask:2147483647,displayName:Headers,files:displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:RNBottomActionSheet.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,/files/displayName:SGGridMenu.h,fileRef:displayName:SGGridMenu.h,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:sourcecode.c.h,name:SGGridMenu.h,path:../../../SGActionView/SGActionView/SGGridMenu.h,sourceTree:<group>,,isa:PBXBuildFile,settings:ATTRIBUTES:Project,,
PBXBuildFile -- Pods.xcodeproj/targets/buildConfigurationList:buildConfigurations:baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,baseConfigurationReference:|,buildSettings:|,displayName:|,isa:|,name:|,,defaultConfigurationIsVisible:0,defaultConfigurationName:Release,displayName:ConfigurationList,isa:XCConfigurationList,,buildPhases:buildActionMask:2147483647,displayName:Headers,files:|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,|,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Sources,files:|,|,|,|,|,|,|,|,|,isa:PBXSourcesBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildActionMask:2147483647,displayName:Frameworks,files:,isa:PBXFrameworksBuildPhase,runOnlyForDeploymentPostprocessing:0,,buildRules:,dependencies:displayName:React,isa:PBXTargetDependency,,displayName:SGActionView,isa:PBXTargetDependency,,displayName:RNBottomActionSheet,isa:PBXNativeTarget,name:RNBottomActionSheet,packageProductDependencies:,productName:RNBottomActionSheet,productReference:displayName:libRNBottomActionSheet.a,explicitFileType:archive.ar,includeInIndex:0,isa:PBXFileReference,name:libRNBottomActionSheet.a,path:libRNBottomActionSheet.a,sourceTree:BUILT_PRODUCTS_DIR,,productType:com.apple.product-type.library.static,/buildPhases/buildActionMask:2147483647,displayName:Headers,files:displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,name:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGActionView.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGAlertMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGBaseMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGGridMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:SGSheetMenu.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,displayName:RNBottomActionSheet.h,fileRef:displayName:|,includeInIndex:|,isa:|,lastKnownFileType:|,path:|,sourceTree:|,,isa:PBXBuildFile,settings:ATTRIBUTES:|,,,isa:PBXHeadersBuildPhase,runOnlyForDeploymentPostprocessing:0,/files/displayName:SGSheetMenu.h,fileRef:displayName:SGSheetMenu.h,includeInIndex:1,isa:PBXFileReference,lastKnownFileType:sourcecode.c.h,name:SGSheetMenu.h,path:../../../SGActionView/SGActionView/SGSheetMenu.h,sourceTree:<group>,,isa:PBXBuildFile,settings:ATTRIBUTES:Project,,

after that, when I trying to react-native run-ios I got tons of errors like this:

    /Users/whalemare/ReactNativeProjects/vkc/ios/build/vkc/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._subItems in:
    /Users/whalemare/ReactNativeProjects/vkc/ios/build/vkc/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/whalemare/ReactNativeProjects/vkc/ios/build/vkc/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._titleLabel in:
    /Users/whalemare/ReactNativeProjects/vkc/ios/build/vkc/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/whalemare/ReactNativeProjects/vkc/ios/build/vkc/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
duplicate symbol _OBJC_IVAR_$_SGSheetMenu._actionHandle in:
    /Users/whalemare/ReactNativeProjects/vkc/ios/build/vkc/Build/Products/Debug-iphonesimulator/RNBottomActionSheet/libRNBottomActionSheet.a(SGSheetMenu.o)
    /Users/whalemare/ReactNativeProjects/vkc/ios/build/vkc/Build/Products/Debug-iphonesimulator/SGActionView/libSGActionView.a(SGSheetMenu.o)
ld: 43 duplicate symbols for architecture x86_64
clang: error:
linker command failed with exit code 1 (use -v to see invocation)


** BUILD FAILED **

If I remove this lib from my project all is fine.

My project setup:

"dependencies": {
    "react-native": "0.60.4",
    "react-native-bottom-action-sheet": "0.0.23"
}

Podfile

platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'vkc' do
  # Pods for vkc
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

  pod 'react-native-vkontakte-login', :path => '../node_modules/react-native-vkontakte-login'

  pod 'react-native-config', :path => '../node_modules/react-native-config'

  pod 'RNSVG', :path => '../node_modules/react-native-svg'

  pod 'ReactNativeLocalization', :path => '../node_modules/react-native-localization'

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'

  pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'
  pod 'Firebase/Core', '~> 6.3.0'
  pod 'Firebase/Messaging', '~> 6.3.0'
  pod 'Firebase/Firestore', '~> 6.3.0'
  pod 'Firebase/Analytics'

  pod 'RNDevMenu', :path => '../node_modules/react-native-dev-menu'

  pod 'RNBottomActionSheet', :path => '../node_modules/react-native-bottom-action-sheet/ios'

  target 'vkcTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

target 'vkc-tvOS' do
  # Pods for vkc-tvOS

  target 'vkc-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

post_install do |installer|
  installer.pods_project.targets.each do |target|

    # The following is needed to ensure the "archive" step works in XCode.
    # It removes React & Yoga from the Pods project, as it is already included in the main project.
    # Without this, you'd see errors when you archive like:
    # "Multiple commands produce ... libReact.a"
    # "Multiple commands produce ... libyoga.a"

    # targets_to_ignore = %w(React yoga)

    # if targets_to_ignore.include? target.name
    #   target.remove_from_project
    # end

    if target.name == 'react-native-config'
      phase = target.project.new(Xcodeproj::Project::Object::PBXShellScriptBuildPhase)
      phase.shell_script = "cd ../../"\
                           " && RNC_ROOT=./node_modules/react-native-config/"\
                           " && export SYMROOT=$RNC_ROOT/ios/ReactNativeConfig"\
                           " && export BUILD_DIR=$RNC_ROOT/ios/ReactNativeConfig"\
                           " && ruby $RNC_ROOT/ios/ReactNativeConfig/BuildDotenvConfig.ruby"

      target.build_phases << phase
      target.build_phases.move(phase,0)
    end

  end
end

Can't run on Android

Getting this error and not able to perform run-android

Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find com.github.javiersantos:BottomDialogs:1.2.1.
     Required by:
         myApp:app:unspecified > myApp:react-native-bottom-action-sheet:unspecified

react native 0.62.2 ios use it has something error -> __NSPlaceholderDictionary initWithObjects:forKeys:count

when I use it in RN 0.62.2
ONLY gridView has problem
GridView.Show({ title: 'Awesome!', items: [ {title: 'Facebook', icon: facebook}, {title: 'Instagram', icon: instagram}, ], theme: 'light', onSelection: (index, value) => { console.log('selection: ' + index + ' ' + value); }, });

'*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]' was thrown while invoking GridView on target RNBottomActionSheet with params

the debugger has something error happen.
please help.

Android build error

I get this error:

Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:design' has different version for the compile (27.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution
    buildToolsVersion = "27.0.3"
    minSdkVersion = 21
    compileSdkVersion = 27
    targetSdkVersion = 27
    supportLibVersion = "27.0.2"
    googlePlayServicesVersion = "16.0.0"

Sometimes it's open up automatically for no reason

Sometimes the bottom action sheet show up for no reason. This happen on other action, something like on button click.

And I pretty sure that the value of variable for visible props is false.

May I know why this happen and how to fix it ?

titleTextColor not working for Android

RN 55.4
react-native-bottom-action-sheet: "0.0.20" (installed via yarn today - assuming most recent version)

itemTextColor works....
titleTextColor does not

Also onCancel doesn't seem to fire either for Android.

const BottomSheet = ({ isVisible }) => (
    <RNBottomActionSheet.SheetView
        visible={isVisible}
        title="Set Break"
        theme="dark"
        backgroundColor='black'
        titleTextColor='red'
        itemTextColor='red'
        onSelection={(index, value) => {
            // value is optional
            console.log("selection: " + index + " " + value); 
        }}
        onCancel={() => console.log ('canceled')}
    >
        <RNBottomActionSheet.SheetView.Item title="Lunch" />
        <RNBottomActionSheet.SheetView.Item title="Appointment" />
        <RNBottomActionSheet.SheetView.Item title="Errands" />
        <RNBottomActionSheet.SheetView.Item title="Vacation / Holiday" />
        <RNBottomActionSheet.SheetView.Item title="End of Work Day" />
    </RNBottomActionSheet.SheetView>
);

While I am at it is there a way to change the styling of each of the line items. There is waaaay too much padding between items for our liking.

Error when install on Ubuntu

I have this error when try to install react-native-bottom-action-sheet:

> [email protected] postinstall /home/<my-project-dir>/node_modules/react-native-bottom-action-sheet
> cd ./ios && pod install

sh: 1: pod: not found
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] postinstall: `cd ./ios && pod install`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

But i'm on Ubuntu, not on iOS

[Android] bottomactionsheet/RNBottomActionSheetModule.java:138: error: cannot find symbol

Hi - I'm trying to do an Android build but I'm getting this error. Any ideas?

The package is linked and this seems to be a problem with the lib?

> Task :react-native-bottom-action-sheet:compileReleaseJavaWithJavac FAILED
/Users/.../node_modules/react-native-bottom-action-sheet/android/src/main/java/ui/bottomactionsheet/RNBottomActionSheetModule.java:138: error: cannot find symbol
        if (icon == null || icon.toHashMap().size() == 0) {
                                ^
  symbol:   method toHashMap()
  location: variable icon of type ReadableMap
/Users/.../node_modules/react-native-bottom-action-sheet/android/src/main/java/ui/bottomactionsheet/RNBottomActionSheetModule.java:190: error: cannot find symbol
      if (icon == null || icon.toHashMap().size() == 0) {
                              ^
  symbol:   method toHashMap()
  location: variable icon of type ReadableMap
2 errors

FAILURE: Build failed with an exception.

Custom Tick mark option #ios

Right now, bottom sheet opens with first item as selected by default โˆš.
It could be made optional to use.

buildToolsVersion is not specified

react-native run-android:

Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-bottom-action-sheet'.
> buildToolsVersion is not specified.

Error in podspec file

Hi,

Your podspec is pointing to another source...

s.source = { :git => 'https://github.com/yonahforst/react-native-permissions.git', :tag => s.version }

Illegal callback invocation

I noticed the native module uses callbacks to pass information back to JS. The problem with callbacks is that you can only call them once.

Reproduction:
build example app for ios, show alert of grid view, and tap on an item fast two times.

rsz_simulator_screen_shot_-iphone_6-_2018-04-02_at_131915

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.