Git Product home page Git Product logo

Comments (8)

leeight avatar leeight commented on May 30, 2024
import React from 'react-native';
import ActionButton from 'react-native-action-button';
import Icon from 'react-native-vector-icons/Ionicons';

let {Component, StyleSheet, View} = React;

export default
class Action extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <View style={{flex: 1, backgroundColor: '#f3f3f3'}}>
        <ActionButton buttonColor="rgba(231,76,60,1)">
          <ActionButton.Item buttonColor='#9b59b6' title="New Task" onPress={() => console.log("notes tapped!")}>
            <Icon name="android-create" style={styles.actionButtonIcon} />
          </ActionButton.Item>
          <ActionButton.Item buttonColor='#3498db' title="Notifications" onPress={() => {}}>
            <Icon name="android-notifications-none" style={styles.actionButtonIcon} />
          </ActionButton.Item>
          <ActionButton.Item buttonColor='#1abc9c' title="All Tasks" onPress={() => {}}>
            <Icon name="android-done-all" style={styles.actionButtonIcon} />
          </ActionButton.Item>
        </ActionButton>
      </View>
    );
  }
}

var styles = StyleSheet.create({
  actionButtonIcon: {
    fontSize: 20,
    height: 22,
    color: 'white',
  },
});

from react-native-action-button.

mastermoo avatar mastermoo commented on May 30, 2024

hmmm i tried this code and it works fine...

from react-native-action-button.

chenchen1008 avatar chenchen1008 commented on May 30, 2024

I got the same error!

from react-native-action-button.

mastermoo avatar mastermoo commented on May 30, 2024

Seems to be a platform dependent bug...

Am 20.11.2015 um 10:01 schrieb chenchen1008 [email protected]:

I got the same error!


Reply to this email directly or view it on GitHub.

from react-native-action-button.

sankhadeeproy007 avatar sankhadeeproy007 commented on May 30, 2024

+1 Works on iOS, not on Android.

from react-native-action-button.

mastermoo avatar mastermoo commented on May 30, 2024

but why... i didnt develop for android, yet..

from react-native-action-button.

sankhadeeproy007 avatar sankhadeeproy007 commented on May 30, 2024

What might be the case then that it works for iOS and not for Android?

from react-native-action-button.

gs-akhan avatar gs-akhan commented on May 30, 2024

I dont see breaking on my end . @leeight can you share what version on RN you are on .

Thanks

from react-native-action-button.

Related Issues (20)

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.