0.1.0 • Published 4 years ago

@empire-software/react-native-caen v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@empire-software/react-native-caen

@empire-software/react-native-caen

Installation

npm install @empire-software/react-native-caen

Usage

import * as React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { 
  Provider, 
  Context 
} from '@empire-software/react-native-caen';
function Screen() {
  const { authenticated } = React.useContext(Context)
  console.log(authenticated)
  return (
    <View style={styles.container}>
      <Text> Auth </Text>
    </View>
  );
}
export default function App() {
  return (
    <Provider>
      <Screen />
    </Provider>
  );
}
const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  box: {
    width: 60,
    height: 60,
    marginVertical: 20,
  },
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.1.0

4 years ago