npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kodif/kodif-rn-sdk

v0.0.1

Published

an sdk to render kodif cx flows

Downloads

2

Readme

Kodif React Native SDK

About

comming soon ...

Here are brief instructions on how to integrate this SDK with other react native projects.

Installation Guide

  1. make sure to have the following dependencies installed. run npm install or yarn add followed by (install the ones that you don't have only) @react-native-async-storage/async-storage @react-native-community/datetimepicker axios uuid react-native-flash-message react-native-get-random-values react-native-modern-datepicker react-native-paper react-native-render-html react-native-svg rollbar-react-native react-native-vector-icons.

For un-managed react native bare workflow

  1. install pods
  • run cd ios
  • then run pod install or npx pod-install
  1. add support for .jsx and other extensions.
  • create metro.config.js to the root directory if you don't have one already.
  • add the following to metro.config.js so support extensions.
    module.exports = {
      // ...other config,
      resolver: {
        sourceExts: ['jsx', 'js', 'ts', 'tsx', 'cjs']
      },
    };
  1. add icons support 'react-native-vector-icons'
  • required icons: MaterialIcons.ttf and ios/MaterialCommunityIcons.ttf
  • ios https://www.youtube.com/watch?v=fVoEojORQyQ
  • android ``
  • if react-native link is used, it can be undone by running react-native unlink react-native-vector-icons
  • ios: make sure NOT to have target set for fonts in info.plist in 'xcode' under project tree while they are added under Copy bundle resources inside Build Phases of the project. possible error: Multiple commands produce ...
  1. add custom fonts support

For expo-managed workflow

  1. add support for .jsx and other extensions.
  • create metro.config.js to the root directory if you don't have one already.
  • add the following to metro.config.js so support extensions.
    module.exports = {
      // ...other config,
      resolver: {
        sourceExts: ['jsx', 'js', 'ts', 'tsx', 'cjs']
      },
    };
  1. add icons support 'react-native-vector-icons'
  • required icons: MaterialIcons.ttf and ios/MaterialCommunityIcons.ttf
  1. add custom fonts support
  • use expo's loadAsync or any other way you prefer
  • if fonts required by your flow are not installed, errors are most likely to occur
import {loadAsync} from 'expo-font';
// ...
  await loadAsync({
    'font-name': require('{font_path}/{font_filename}'),
    //...
  })
// ...

Rest comming soon ...

Usage Guide

import {Kodif} from "@kodif/kodif-rn-sdk";

const ExampleScreenOrComponent = () => {
  return (
    <Kodif
      // available props
      flowUuid="" /* @required: to fetch the flow */
      handler={() =>{/* @required: to navigate the user after the flow execution ends */}}
      initialParams={{/* @optional: add it, ONLY if your flow depends on them. eg.{email:"[email protected]", id:"7128"}  */}}
      loading={{ /* @optional: if you want to customize the loading component */
        // available options
        backgroundColor: `${COLOR_CODE}`,
        text: <CustomLoadingTextComponent/>,
        component: <CustomLoadingComponent/>,
        indicator: <CustomLoadingIndicatorComponent/>,

      }}
    />
  );
}