add.js 628 B

1234567891011121314151617181920212223242526272829303132333435
  1. import Tool from '../Systems/Tool';
  2. import { View , Text , Button , TextInput , StyleSheet} from 'react-native';
  3. import { Icon } from 'react-native-elements'
  4. import React from 'react';
  5. export default class Add extends Tool{
  6. constructor(){
  7. super()
  8. }
  9. editViewNode(node){
  10. console.log("I have the node here now i can manipulate the Dom by addind")
  11. console.log(node)
  12. }
  13. render(){
  14. return(
  15. <View style={mStyle.container}>
  16. <Button
  17. title={<Icon name='add'
  18. />}
  19. />
  20. <Text>Add Item</Text>
  21. </View>
  22. )
  23. }
  24. }
  25. const mStyle = StyleSheet.create({
  26. container:{
  27. flex:1,
  28. flexDirection:'row'
  29. }
  30. })