InsertForm.js 980 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. import Library from 'trapilib/dist/lib';
  6. let {
  7. CoreSystem,
  8. ViewSystem,
  9. ViewNode
  10. } = Library;
  11. const styles = StyleSheet.create({
  12. container: {
  13. flex: 1,
  14. borderRadius: 4,
  15. borderWidth: 1,
  16. borderColor: '#d6d7da',
  17. alignItems: 'center',
  18. justifyContent: 'center',
  19. },
  20. text:{
  21. flex:1,
  22. backgroundColor:'red'
  23. }
  24. });
  25. export default class InsertForm extends Tool{
  26. constructor(){
  27. super()
  28. }
  29. editViewNode(CS,node){
  30. }
  31. render(){
  32. let selectStyle;
  33. if(this.active){
  34. selectStyle = {backgroundColor:"#a6a6a6"}
  35. }else{
  36. selectStyle = {backgroundColor:"#F1F1F1"}
  37. }
  38. return(
  39. <View>
  40. <Button
  41. color="#f1f1f1"
  42. title={<Icon name='comment'
  43. color="#606060"
  44. containerStyle={selectStyle}
  45. />}
  46. />
  47. </View>
  48. )
  49. }
  50. }