1.0.6 • Published 7 months ago

react-native-4tsistemas v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

react-native-4tsistemas

Getting started

$ npm install react-native-4tsistemas --save

Mostly automatic installation

$ react-native link react-native-4tsistemas

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-4tsistemas and add RNReactNative4tSistemas.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNReactNative4tSistemas.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNReactNative4tSistemasPackage; to the imports at the top of the file
  • Add new RNReactNative4tSistemasPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-4tsistemas'
    project(':react-native-4tsistemas').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-4tsistemas/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-4tsistemas')

Windows

Read it! :D

  1. In Visual Studio add the RNReactNative4tSistemas.sln in node_modules/react-native-4tsistemas/windows/RNReactNative4tSistemas.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using React.Native.Calendar_4t.RNReactNative4tSistemas; to the usings at the top of the file
  • Add new RNReactNative4tSistemasPackage() to the List<IReactPackage> returned by the Packages method

Usage

import { View, Text, TouchableOpacity } from 'react-native'
import { AutoComplete, Calendar } from './lib/react-native-4tsistemas';

function App() {
    return (
        <View style={{ alignItems: 'center', justifyContent: 'center', width: '100%', height: '100%' }}>
            <AutoComplete
                data={[{"id":134, "titulo":"oi", "movel":"armario"}]} // ONDE VOCE CONFIGURA O DATA
                ItemSearch={['titulo', 'movel', 'id']} // OS CAMPOS DO OBJETO QUE SERVIRA PARA FILTRAR
                ItemValue={['id']} // ONDE VOCE CONFIGURA AS CHAVES QUE SERVIRA PARA MONTAR O VALUE ITEM
                valueSelect={{"id":134, "titulo":"oi", "movel":"armario"}} // ONDE VOCE IRA CONFIGURAR O VALUE
                onSelect={(e)=>console.log(e)} // ONDE RETORNA O ITEM SELECIONADO
            />
            <Calendar onSelectDate={(e)=>console.log(e)} RenderButton={(props) => <TouchableOpacity onPress={() => {
                props.setOpen()
            }} style={{ width: 50, height: 50, backgroundColor: "green" }}>

            </TouchableOpacity>} />

        </View>
    );
};

export default App

// TODO: What to do with the module?
RNReactNative4tSistemas;
1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago