Comments (8)
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.
hmmm i tried this code and it works fine...
from react-native-action-button.
I got the same error!
from react-native-action-button.
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.
+1 Works on iOS, not on Android.
from react-native-action-button.
but why... i didnt develop for android, yet..
from react-native-action-button.
What might be the case then that it works for iOS and not for Android?
from react-native-action-button.
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)
- how to style the button shadow
- Enable scroll on Action Button Items HOT 1
- ActionButton Item click event not working HOT 1
- active opacity does not change
- How to change position a little bit up from default.? HOT 1
- Transparent Background color for ActionButton.Item HOT 1
- Please publish current 2.9.0 version to npmjs.com HOT 2
- Documentation needs to be updated
- Problem with componentWillReceiveProps and ActionButton HOT 4
- Cannot read property 'props' of null HOT 2
- You may need an appropriate loader to handle this file type, currently no loader s are configured to process this fil
- How to place action button above react-navigation tab bar HOT 1
- Centered action button item labels shown on left
- componentWillReceiveProps throws warning HOT 1
- Crashes React Native 0.69.x HOT 6
- Is the library still maintained? HOT 3
- Issues on Android 13? HOT 1
- Invariant Violation: ViewPropTypes has been removed from React Native HOT 1
- onReset property does not exist
- componentWillReceiveProps has been renamed + useNativeDriver HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-action-button.