react-native-my-survey-sdk 1.0.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ReadMe.md CHANGED
@@ -1 +1 @@
1
- # survey sdk react
1
+ # Survey access through url in our react native app.
package/index.js CHANGED
@@ -1,20 +1,13 @@
1
- // src/SurveyWebView.js (inside your NPM package)
2
1
  import React from 'react';
3
- import { TouchableOpacity, SafeAreaView, Image } from 'react-native';
2
+ import {SafeAreaView} from 'react-native';
4
3
  import { WebView } from 'react-native-webview';
5
- import { useNavigation, useRoute } from '@react-navigation/native';
6
4
 
7
- const SurveyWebView = () => {
8
- const navigation = useNavigation();
9
- const route = useRoute();
10
- const { url } = route.params; // Get the URL passed from MainScreen
11
5
 
6
+ const SurveyWebView = ({ url }) => {
7
+ const SURVEY_URL = url
12
8
  return (
13
9
  <SafeAreaView style={{ flex: 1 }}>
14
- <TouchableOpacity style={{ alignItems: 'flex-end', right: 15 }} onPress={() => navigation.goBack()}>
15
- <Image source={require('./assets/close.png')} style={{ height: 15, width: 20 }} />
16
- </TouchableOpacity>
17
- <WebView style={{ height: '20%', width: '40%' }} source={{ uri: url }} />
10
+ <WebView source={{ uri: SURVEY_URL }} />
18
11
  </SafeAreaView>
19
12
  );
20
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-my-survey-sdk",
3
- "version": "1.0.7",
3
+ "version": "2.0.0",
4
4
  "description": "For xebo.ai",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,9 +11,5 @@
11
11
  "peerDependencies": {
12
12
  "react": "18.3.1",
13
13
  "react-native": "0.75.4"
14
- },
15
- "dependencies": {
16
- "@react-navigation/native": "^6.1.18",
17
- "@react-navigation/native-stack": "^6.11.0"
18
14
  }
19
15
  }
package/assets/close.png DELETED
Binary file